qs: add replay functionality (yet disabled)

This commit is contained in:
2026-03-09 22:58:23 +01:00
parent 9fc7ab92ff
commit 5a0f7f3ef3
8 changed files with 152 additions and 29 deletions
@@ -3,11 +3,16 @@
pid=$(pgrep -x quickshell)
[ -z "$pid" ] && exit 1
for child in $(pgrep -P "$pid" 2>/dev/null); do
kill "$child"
done
# for child in $(pgrep -P "$pid" 2>/dev/null); do
# kill "$child"
# done
sleep 0.3
children=$(pgrep -P "$pid" 2>/dev/null)
kill "$pid"
sleep 0.5
for child in $children; do
kill "$child" || true
done
+1 -1
View File
@@ -9,7 +9,7 @@
# Constants
niri_config_file="$HOME/.config/niri/config/misc.kdl"
prefer_order=(intel nvidia)
prefer_order=(nvidia intel)
# Get vendor and path of each GPU
default_card_path="$(find /dev/dri/card* 2>/dev/null | head -n 1)"