turning back to qutebrowser because mozilla pooped
This commit is contained in:
parent
9b76f34c09
commit
5f36e31953
6 changed files with 85 additions and 63 deletions
|
@ -1,39 +1,10 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Check to see if qb is running
|
||||
if [ $(pgrep -c qutebrowser) -gt 0 ]; then
|
||||
if [ $(pgrep -c -f '.qutebrowser-wrapped') -gt 0 ]; then
|
||||
|
||||
echo "qb running"
|
||||
|
||||
if [ $XDG_SESSION_TYPE = "x11" ]; then
|
||||
#X11
|
||||
echo "X11"
|
||||
qbrg=$(wmctrl -lx | rg qutebrowser | awk '{print $1}')
|
||||
# echo $emacsrg
|
||||
|
||||
if [ -z $qbrg ]; then
|
||||
exec env QT_QPA_PLATFORMTHEME="" qutebrowser
|
||||
exit
|
||||
else
|
||||
exec wmctrl -ia $qbrg
|
||||
exit
|
||||
fi
|
||||
else
|
||||
if [ $KDE_FULL_SESSION = "true" ]; then
|
||||
exec /home/chris/bin/ww -f org.qutebrowser.qutebrowser -c qutebrowser
|
||||
exit
|
||||
else
|
||||
echo "other wayland"
|
||||
# WAYLAND
|
||||
qbrg=$(wlrctl window list | rg qutebrowser)
|
||||
|
||||
qbwin=$(echo $qbrg | sed 's/\(.*r\)\:.*/\1/')
|
||||
# echo $ffwin
|
||||
|
||||
exec hyprctl dispatch focuswindow qutebrowser
|
||||
exit
|
||||
fi
|
||||
fi
|
||||
exec hyprctl dispatch focuswindow qutebrowser
|
||||
else
|
||||
exec env QT_QPA_PLATFORMTHEME="" qutebrowser
|
||||
qutebrowser
|
||||
fi
|
||||
|
|
|
@ -1,16 +1,8 @@
|
|||
#!/bin/sh
|
||||
|
||||
# killall volup
|
||||
# killall voldown
|
||||
dunstctl close
|
||||
pamixer --allow-boost -d 5
|
||||
pw-play /run/current-system/sw/share/sounds/freedesktop/stereo/audio-volume-change.oga &
|
||||
volume=$(pulsemixer --get-volume | awk '{print $1}')
|
||||
echo $volume > /tmp/vol
|
||||
notify-send $volume
|
||||
|
||||
# eww open volume &
|
||||
|
||||
# sleep 3
|
||||
|
||||
# eww close volume
|
||||
dunstify -i audio-volume-low $volume
|
||||
|
|
|
@ -1,16 +1,8 @@
|
|||
#!/bin/sh
|
||||
|
||||
# killall volup
|
||||
# killall voldown
|
||||
dunstctl close
|
||||
pamixer --allow-boost -i 5
|
||||
pw-play /run/current-system/sw/share/sounds/freedesktop/stereo/audio-volume-change.oga &
|
||||
volume=$(pulsemixer --get-volume | awk '{print $1}')
|
||||
echo $volume > /tmp/vol
|
||||
notify-send $volume
|
||||
|
||||
# eww open volume &
|
||||
|
||||
# sleep 3
|
||||
|
||||
# eww close volume
|
||||
dunstify -i audio-volume-high $volume
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue