Compare commits

...

2 Commits

Author SHA1 Message Date
Jedsek
61b7f48a33
Merge 90c271292b into f3835e7f72 2024-10-24 15:09:18 +05:30
Jedsek
90c271292b Add support for Hyprland-wm 2022-12-03 18:13:39 +08:00
6 changed files with 24 additions and 0 deletions

View File

@ -78,6 +78,8 @@ run_cmd() {
i3-msg exit i3-msg exit
elif [[ "$DESKTOP_SESSION" == 'plasma' ]]; then elif [[ "$DESKTOP_SESSION" == 'plasma' ]]; then
qdbus org.kde.ksmserver /KSMServer logout 0 0 0 qdbus org.kde.ksmserver /KSMServer logout 0 0 0
elif [[ "$DESKTOP_SESSION" == 'hyprland' ]]; then
hyprctl dispatch exit 1
fi fi
fi fi
else else
@ -99,6 +101,8 @@ case ${chosen} in
betterlockscreen -l betterlockscreen -l
elif [[ -x '/usr/bin/i3lock' ]]; then elif [[ -x '/usr/bin/i3lock' ]]; then
i3lock i3lock
elif [[ -x '/usr/bin/swaylock' ]]; then
swaylock
fi fi
;; ;;
$suspend) $suspend)

View File

@ -79,6 +79,8 @@ run_cmd() {
i3-msg exit i3-msg exit
elif [[ "$DESKTOP_SESSION" == 'plasma' ]]; then elif [[ "$DESKTOP_SESSION" == 'plasma' ]]; then
qdbus org.kde.ksmserver /KSMServer logout 0 0 0 qdbus org.kde.ksmserver /KSMServer logout 0 0 0
elif [[ "$DESKTOP_SESSION" == 'hyprland' ]]; then
hyprctl dispatch exit 1
fi fi
fi fi
else else
@ -100,6 +102,8 @@ case ${chosen} in
betterlockscreen -l betterlockscreen -l
elif [[ -x '/usr/bin/i3lock' ]]; then elif [[ -x '/usr/bin/i3lock' ]]; then
i3lock i3lock
elif [[ -x '/usr/bin/swaylock' ]]; then
swaylock
fi fi
;; ;;
$suspend) $suspend)

View File

@ -73,6 +73,8 @@ run_cmd() {
i3-msg exit i3-msg exit
elif [[ "$DESKTOP_SESSION" == 'plasma' ]]; then elif [[ "$DESKTOP_SESSION" == 'plasma' ]]; then
qdbus org.kde.ksmserver /KSMServer logout 0 0 0 qdbus org.kde.ksmserver /KSMServer logout 0 0 0
elif [[ "$DESKTOP_SESSION" == 'hyprland' ]]; then
hyprctl dispatch exit 1
fi fi
fi fi
else else
@ -94,6 +96,8 @@ case ${chosen} in
betterlockscreen -l betterlockscreen -l
elif [[ -x '/usr/bin/i3lock' ]]; then elif [[ -x '/usr/bin/i3lock' ]]; then
i3lock i3lock
elif [[ -x '/usr/bin/swaylock' ]]; then
swaylock
fi fi
;; ;;
$suspend) $suspend)

View File

@ -73,6 +73,8 @@ run_cmd() {
i3-msg exit i3-msg exit
elif [[ "$DESKTOP_SESSION" == 'plasma' ]]; then elif [[ "$DESKTOP_SESSION" == 'plasma' ]]; then
qdbus org.kde.ksmserver /KSMServer logout 0 0 0 qdbus org.kde.ksmserver /KSMServer logout 0 0 0
elif [[ "$DESKTOP_SESSION" == 'hyprland' ]]; then
hyprctl dispatch exit 1
fi fi
fi fi
else else
@ -94,6 +96,8 @@ case ${chosen} in
betterlockscreen -l betterlockscreen -l
elif [[ -x '/usr/bin/i3lock' ]]; then elif [[ -x '/usr/bin/i3lock' ]]; then
i3lock i3lock
elif [[ -x '/usr/bin/swaylock' ]]; then
swaylock
fi fi
;; ;;
$suspend) $suspend)

View File

@ -82,6 +82,8 @@ run_cmd() {
i3-msg exit i3-msg exit
elif [[ "$DESKTOP_SESSION" == 'plasma' ]]; then elif [[ "$DESKTOP_SESSION" == 'plasma' ]]; then
qdbus org.kde.ksmserver /KSMServer logout 0 0 0 qdbus org.kde.ksmserver /KSMServer logout 0 0 0
elif [[ "$DESKTOP_SESSION" == 'hyprland' ]]; then
hyprctl dispatch exit 1
fi fi
fi fi
else else
@ -106,6 +108,8 @@ case ${chosen} in
betterlockscreen -l betterlockscreen -l
elif [[ -x '/usr/bin/i3lock' ]]; then elif [[ -x '/usr/bin/i3lock' ]]; then
i3lock i3lock
elif [[ -x '/usr/bin/swaylock' ]]; then
swaylock
fi fi
;; ;;
$suspend) $suspend)

View File

@ -82,6 +82,8 @@ run_cmd() {
i3-msg exit i3-msg exit
elif [[ "$DESKTOP_SESSION" == 'plasma' ]]; then elif [[ "$DESKTOP_SESSION" == 'plasma' ]]; then
qdbus org.kde.ksmserver /KSMServer logout 0 0 0 qdbus org.kde.ksmserver /KSMServer logout 0 0 0
elif [[ "$DESKTOP_SESSION" == 'hyprland' ]]; then
hyprctl dispatch exit 1
fi fi
fi fi
else else
@ -106,6 +108,8 @@ case ${chosen} in
betterlockscreen -l betterlockscreen -l
elif [[ -x '/usr/bin/i3lock' ]]; then elif [[ -x '/usr/bin/i3lock' ]]; then
i3lock i3lock
elif [[ -x '/usr/bin/swaylock' ]]; then
swaylock
fi fi
;; ;;
$suspend) $suspend)