init
This commit is contained in:
11
scripts/bar_toggle
Executable file
11
scripts/bar_toggle
Executable file
@ -0,0 +1,11 @@
|
||||
#!/bin/bash
|
||||
|
||||
bar_config=$(swaymsg -t get_bar_config "bar-0")
|
||||
|
||||
mode=$(echo "$bar_config" | jq -r '.mode')
|
||||
|
||||
if [ "$mode" == "dock" ]; then
|
||||
swaymsg "bar mode invisible"
|
||||
elif [ "$mode" == "invisible" ]; then
|
||||
swaymsg "bar mode dock"
|
||||
fi
|
Reference in New Issue
Block a user