Files
dotfiles_i3_notebook_arch/polybar/scripts/toggle_module_label.sh
2025-09-22 08:27:51 +02:00

13 lines
236 B
Bash
Executable File

#!/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