vimrc and powermenu shared

This commit is contained in:
wt committed 2024-05-03 12:29:41 +07:00
1 parent 0b0463c08a
commit 19d2602a25
5 files changed
+128 -17

No files matched your search

+3 -17
View File
@@ -65,16 +65,8 @@ run_cmd() {
amixer set Master mute
systemctl suspend
elif [[ $1 == '--logout' ]]; then
if [[ "$DESKTOP_SESSION" == 'openbox' ]]; then
openbox --exit
elif [[ "$DESKTOP_SESSION" == 'bspwm' ]]; then
bspc quit
elif [[ "$DESKTOP_SESSION" == 'i3' ]]; then
i3-msg exit
elif [[ "$DESKTOP_SESSION" == 'plasma' ]]; then
qdbus org.kde.ksmserver /KSMServer logout 0 0 0
fi
fi
systemctl restart ly
fi
else
exit 0
fi
@@ -90,13 +82,7 @@ case ${chosen} in
run_cmd --reboot
;;
$lock)
#if [[ -x '/usr/bin/betterlockscreen' ]]; then
# betterlockscreen -l
#elif [[ -x '/usr/bin/i3lock' ]]; then
# i3lock
#elif [[ -x '/usr/bin/swaylock' ]]; then
swaylock
#fi
hyprlock
;;
$suspend)
run_cmd --suspend