Merge Arch config as main #1
1 changed files with 8 additions and 18 deletions
|
|
@ -18,13 +18,13 @@ uptime="$(uptime -p | sed -e 's/up //g')"
|
|||
host=$(hostname)
|
||||
|
||||
# Options
|
||||
shutdown=' Shutdown'
|
||||
reboot=' Reboot'
|
||||
lock=' Lock'
|
||||
suspend=' Suspend'
|
||||
logout=' Logout'
|
||||
yes=' Yes'
|
||||
no=' No'
|
||||
shutdown=' Shutdown'
|
||||
reboot=' Reboot'
|
||||
lock=' Lock'
|
||||
suspend=' Suspend'
|
||||
logout=' Logout'
|
||||
yes=' Yes'
|
||||
no=' No'
|
||||
|
||||
# Rofi CMD
|
||||
rofi_cmd() {
|
||||
|
|
@ -70,17 +70,7 @@ 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
|
||||
elif [[ "$DESKTOP_SESSION" == 'hyprland' ]]; then
|
||||
hyprctl dispatch exit
|
||||
fi
|
||||
hyprctl dispatch exit
|
||||
fi
|
||||
else
|
||||
exit 0
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue