I DONLT KNOW ANYMORE!!
This commit is contained in:
parent
5729629ba7
commit
ed8d575d18
18 changed files with 88 additions and 55 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue