summary refs log tree commit diff
path: root/bin/luxnox-menu
blob: 8d2f95fc1c8fe08da80d0c53c9935ce65d0eaf54 (plain)
1
2
3
4
5
6
7
#!/bin/sh
# wmenu in the current luxnox mode's colours (wmenu has no config file).
# Takes wmenu's other arguments: luxnox-menu -i -l 5 -p Power
flags="${XDG_STATE_HOME:-$HOME/.local/state}/luxnox/current/wmenu"
# shellcheck disable=SC2046 # the flags file is one line of words
[ -r "$flags" ] && exec wmenu $(cat "$flags") "$@"
exec wmenu "$@"