I got a little crazy here. a lot of laptop poop
This commit is contained in:
parent
263d10c080
commit
fab3b36dec
47 changed files with 3726 additions and 189 deletions
30
scripts/qblof
Executable file
30
scripts/qblof
Executable file
|
@ -0,0 +1,30 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Check to see if firefox is running
|
||||
if [ $(pgrep -c qutebrowser) -gt 0 ]; then
|
||||
|
||||
if [ $XDG_SESSION_TYPE = "x11" ]; then
|
||||
#X11
|
||||
qbrg=$(wmctrl -lx | rg qutebrowser | awk '{print $1}')
|
||||
# echo $emacsrg
|
||||
|
||||
if [ -z $qbrg ]; then
|
||||
qutebrowser
|
||||
exit
|
||||
else
|
||||
wmctrl -ia $qbrg
|
||||
exit
|
||||
fi
|
||||
else
|
||||
# WAYLAND
|
||||
qbrg=$(wlrctl window list | rg qutebrowser)
|
||||
|
||||
qbwin=$(echo $qbrg | sed 's/.*\: //')
|
||||
# echo $ffwin
|
||||
|
||||
wlrctl toplevel focus title:"$qbwin"
|
||||
exit
|
||||
fi
|
||||
else
|
||||
qutebrowser
|
||||
fi
|
Loading…
Add table
Add a link
Reference in a new issue