restructure some scripts + make new init script
This commit is contained in:
parent
a0d20383c3
commit
ff563f2e0d
5 changed files with 197 additions and 124 deletions
40
scripts/bar
40
scripts/bar
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue