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

# Source settings from .bemenurc
. $HOME/.bemenurc

action=$(printf "logout\nsuspend\nreboot\nshutdown\n" | bemenu -p "What to do?" $BEMENU_OPTIONS)

swaysession $action