configuration form the arch linux stored
This commit is contained in:
12
polybar/scripts/toggle_module_label.sh
Executable file
12
polybar/scripts/toggle_module_label.sh
Executable file
@@ -0,0 +1,12 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# The argument $1 should be the name of the module you want to toggle
|
||||
TOGGLE_FILE="$HOME/.toggle_${1}_label"
|
||||
|
||||
if [ -f "$TOGGLE_FILE" ]; then
|
||||
rm "$TOGGLE_FILE"
|
||||
else
|
||||
touch "$TOGGLE_FILE"
|
||||
fi
|
||||
|
||||
polybar-msg hook $1 1
|
||||
Reference in New Issue
Block a user