restructure some scripts + make new init script

This commit is contained in:
pika 2025-06-22 11:10:47 +02:00
parent a0d20383c3
commit ff563f2e0d
5 changed files with 197 additions and 124 deletions

View file

@ -24,28 +24,24 @@ barsetup() {
proc-kill-if "$bar"
# case "$bar" in
# hyprpanel)
# pkill hyprpanel
# hyprpanel &
# ;;
# gBar)
# pkill gBar
# gBar bar 0 &
# ;;
# waybar)
# pkill waybar
# waybar &
# ;;
# quickshell)
# pkill qs
# qs &
# ;;
# *)
# pkill $bar
# $bar &
# ;;
# esac
case "$bar" in
hyprpanel)
hyprpanel &
;;
gBar)
gBar bar 0 &
;;
waybar)
waybar &
;;
quickshell)
proc-kill-if "qs"
qs &
;;
*)
$bar &
;;
esac
}
if barsetup "$@"; then