trying to fix
This commit is contained in:
parent
fa407dfeb6
commit
e013d7569e
22945 changed files with 447936 additions and 0 deletions
30
var/backup/!home!chris!scripts!qblof~
Normal file
30
var/backup/!home!chris!scripts!qblof~
Normal file
|
@ -0,0 +1,30 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Check to see if firefox is running
|
||||
if [ $(pgrep -c firefox) -gt 0 ]; then
|
||||
|
||||
if [ $XDG_SESSION_TYPE = "x11" ]; then
|
||||
#X11
|
||||
ffrg=$(wmctrl -lx | rg firefox | awk '{print $1}')
|
||||
# echo $emacsrg
|
||||
|
||||
if [ -z $ffrg ]; then
|
||||
firefox
|
||||
exit
|
||||
else
|
||||
wmctrl -ia $ffrg
|
||||
exit
|
||||
fi
|
||||
else
|
||||
# WAYLAND
|
||||
ffrg=$(wlrctl window list | rg firefox)
|
||||
|
||||
ffwin=$(echo $ffrg | sed 's/.*\: //')
|
||||
# echo $ffwin
|
||||
|
||||
wlrctl toplevel focus title:"$ffwin"
|
||||
exit
|
||||
fi
|
||||
else
|
||||
firefox
|
||||
fi
|
Loading…
Add table
Add a link
Reference in a new issue