Merge Arch config as main #1

Closed
baobeld wants to merge 228 commits from arch(btw) into master
Showing only changes of commit bb41d9ca40 - Show all commits

View file

@ -18,13 +18,13 @@ uptime="$(uptime -p | sed -e 's/up //g')"
host=$(hostname) host=$(hostname)
# Options # Options
shutdown=' Shutdown' shutdown=' Shutdown'
reboot=' Reboot' reboot='󰜉 Reboot'
lock=' Lock' lock=' Lock'
suspend=' Suspend' suspend='󰤄 Suspend'
logout=' Logout' logout='󰍃 Logout'
yes=' Yes' yes=' Yes'
no=' No' no=' No'
# Rofi CMD # Rofi CMD
rofi_cmd() { rofi_cmd() {
@ -70,18 +70,8 @@ run_cmd() {
amixer set Master mute amixer set Master mute
systemctl suspend systemctl suspend
elif [[ $1 == '--logout' ]]; then 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 hyprctl dispatch exit
fi fi
fi
else else
exit 0 exit 0
fi fi