I DONLT KNOW ANYMORE!!

This commit is contained in:
Chris Cochrun 2022-01-03 12:27:41 -06:00
parent 5729629ba7
commit ed8d575d18
18 changed files with 88 additions and 55 deletions

View file

@ -1,4 +1,6 @@
#!/bin/sh
export MOZ_ENABLE_WAYLAND=1
echo $MOZ_ENABLE_WAYLAND
# Check to see if firefox is running
if [ $(pgrep -c GeckoMain) -gt 0 ]; then
@ -16,14 +18,19 @@ if [ $(pgrep -c GeckoMain) -gt 0 ]; then
exit
fi
else
# WAYLAND
ffrg=$(wlrctl window list | rg firefox)
if [ $KDE_FULL_SESSION = "true" ]; then
ww -f firefox -c firefox
exit
else
# WAYLAND
ffrg=$(wlrctl window list | rg firefox)
ffwin=$(echo $ffrg | sed 's/.*\: //')
# echo $ffwin
ffwin=$(echo $ffrg | sed 's/.*\: //')
# echo $ffwin
wlrctl toplevel focus title:"$ffwin"
exit
wlrctl toplevel focus title:"$ffwin"
exit
fi
fi
else
firefox