feat: implement new hyprland plugins (hyprfocus, hyprbars, dynamic-cursors); refactor: reorganize hyprland autostart with delay staging and plugin configuration; feat: add notification urgency-based sound system to swaync; feat: enhance waybar with battery module, mpd controls, and dock bar; refactor: update waybar taskbar with active window indicators and sorting; feat: add hyprland shutdown sound and login audio greeting; fix: adjust cava sleep timer and mpd sticker database configuration; feat: update rmpc keybindings for improved playlist management; fix: modify rofi keybindings for better navigation; chore: add zsh aliases and misspell corrections; refactor: update styling across swaync, waybar, and hyprland with new border radii and accent colors.
48 lines
853 B
Bash
Executable File
48 lines
853 B
Bash
Executable File
#!/bin/bash
|
|
|
|
DIR="$HOME/.config/waybar"
|
|
|
|
TOP_CONFIG="$DIR/config_top.jsonc"
|
|
TOP_STYLE="$DIR/style/style_top.css"
|
|
|
|
BOTTOM_CONFIG="$DIR/config_bottom.jsonc"
|
|
BOTTOM_STYLE="$DIR/style/style_bottom.css"
|
|
|
|
DOCK_CONFIG="$DIR/config_dock.jsonc"
|
|
DOCK_STYLE="$DIR/style/style_dock.css"
|
|
|
|
kill_bars() {
|
|
if pgrep waybar > /dev/null; then
|
|
pkill waybar
|
|
return 0
|
|
fi
|
|
return 1
|
|
}
|
|
|
|
run_bars() {
|
|
waybar -c "$TOP_CONFIG" -s "$TOP_STYLE" &
|
|
waybar -c "$BOTTOM_CONFIG" -s "$BOTTOM_STYLE" &
|
|
waybar -c "$DOCK_CONFIG" -s "$DOCK_STYLE" &
|
|
return 0
|
|
}
|
|
|
|
case "$1" in
|
|
"")
|
|
kill_bars
|
|
run_bars
|
|
;;
|
|
toggle)
|
|
kill_bars
|
|
if [ $? -eq 1 ]; then
|
|
run_bars
|
|
fi
|
|
;;
|
|
kill)
|
|
kill_bars
|
|
;;
|
|
*)
|
|
echo "Usage: $0 [toggle | kill]"
|
|
exit 1
|
|
;;
|
|
esac
|