fxi: waybar restart script

This commit is contained in:
DACHXY 2025-01-01 16:28:52 +08:00
parent bb9a5b8122
commit 4b6451294b
3 changed files with 23 additions and 7 deletions

View file

@ -1,7 +1,7 @@
#!/usr/bin/env bash
#Restart Waybar and swaync
XDG_CONFIG_HOME="$HOME/.dummy" # Prevent swaync use default gtk theme
killall .waybar-wrapped
killall .swaync-wrapped
waybar -c ~/.config/waybar/config.json -s ~/.config/waybar/style.css &

View file

@ -59,8 +59,11 @@
"offscreen-css-text": "(inactive)",
"rewrite": {
"nvim . (.*)": " $1",
"(.*) - Discord": " $1",
"(.*) — Mozilla Firefox": " $1"
"\\(\\d+\\) Discord (.*)": " $1",
"(.*) - YouTube — Mozilla Firefox": " $1",
"(.*) — Mozilla Firefox": " $1",
"(.*) - VLC media player": " $1",
"(.*) - YouTube Music — Mozilla Firefox": "󰎆 $1"
}
},