aboutsummaryrefslogtreecommitdiff
path: root/dotfiles/.local/bin/menusession
blob: de4d60252d1855da5a7c04ca4747a35e54dc045b (plain)
1
2
3
4
5
6
7
8
#!/bin/sh

# Source settings from .bemenurc
. ~/.config/bemenurc

action=$(printf "logout\nsuspend\nreboot\npoweroff\n" | bemenu -p "What to do?" --tf="$BEMENU_TF" --tb="$BEMENU_NB" --fb="$BEMENU_NB" --fn="$BEMENU_FN" --nb="$BEMENU_NB" --nf="$BEMENU_NF" --hf="$BEMENU_HF" --hb="$BEMENU_HB" --monitor="$BEMENU_MONITOR")

swaysession $action