moved hypr scripts

This commit is contained in:
djaidjai committed 2026-10-02 02:06:46 +02:00
1 parent 37fb63549e
commit f338147907
22 files changed
+610 -5

No files matched your search

+16
View File
@@ -0,0 +1,16 @@
#!/usr/bin/env nix-shell
#! nix-shell -i bash --packages killall envsubst waybar
#kill old instance
kill $(ps aux | grep '[w]aybar -c /tmp/waybar-config' | awk -F' ' '{print $2}')
while pgrep -u $UID -x waybar > /dev/null; do
sleep 1;
killall -q waybar
kill $(ps aux | grep '[w]aybar -c /tmp/waybar-config' | awk -F' ' '{print $2}')
done
IFS=$'\t\n'
MONITOR=$(hyprctl monitors -j | jq -r '.[] | select(.x==0 and .y==0) | .name') envsubst < ~/.config/waybar/config > /tmp/waybar-config
unset IFS
waybar -c /tmp/waybar-config &
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.