From c8108fe9ad3394d0a6f5a59ca3231b1705174481 Mon Sep 17 00:00:00 2001 From: VDuchauffour Date: Sun, 16 Oct 2022 13:56:12 +0200 Subject: [PATCH] Add xsel case for session locking --- files/powermenu/type-1/powermenu.sh | 2 ++ files/powermenu/type-2/powermenu.sh | 2 ++ files/powermenu/type-3/powermenu.sh | 2 ++ files/powermenu/type-4/powermenu.sh | 2 ++ files/powermenu/type-5/powermenu.sh | 2 ++ files/powermenu/type-6/powermenu.sh | 2 ++ 6 files changed, 12 insertions(+) diff --git a/files/powermenu/type-1/powermenu.sh b/files/powermenu/type-1/powermenu.sh index dd978af..a7faca9 100755 --- a/files/powermenu/type-1/powermenu.sh +++ b/files/powermenu/type-1/powermenu.sh @@ -99,6 +99,8 @@ case ${chosen} in betterlockscreen -l elif [[ -x '/usr/bin/i3lock' ]]; then i3lock + elif [[ -x '/usr/bin/xsel' ]]; then + xset s activate fi ;; $suspend) diff --git a/files/powermenu/type-2/powermenu.sh b/files/powermenu/type-2/powermenu.sh index 23d0795..8e969cb 100755 --- a/files/powermenu/type-2/powermenu.sh +++ b/files/powermenu/type-2/powermenu.sh @@ -100,6 +100,8 @@ case ${chosen} in betterlockscreen -l elif [[ -x '/usr/bin/i3lock' ]]; then i3lock + elif [[ -x '/usr/bin/xsel' ]]; then + xset s activate fi ;; $suspend) diff --git a/files/powermenu/type-3/powermenu.sh b/files/powermenu/type-3/powermenu.sh index 8c1e47f..969d2e0 100755 --- a/files/powermenu/type-3/powermenu.sh +++ b/files/powermenu/type-3/powermenu.sh @@ -94,6 +94,8 @@ case ${chosen} in betterlockscreen -l elif [[ -x '/usr/bin/i3lock' ]]; then i3lock + elif [[ -x '/usr/bin/xsel' ]]; then + xset s activate fi ;; $suspend) diff --git a/files/powermenu/type-4/powermenu.sh b/files/powermenu/type-4/powermenu.sh index 17f20c7..ac4dd03 100755 --- a/files/powermenu/type-4/powermenu.sh +++ b/files/powermenu/type-4/powermenu.sh @@ -94,6 +94,8 @@ case ${chosen} in betterlockscreen -l elif [[ -x '/usr/bin/i3lock' ]]; then i3lock + elif [[ -x '/usr/bin/xsel' ]]; then + xset s activate fi ;; $suspend) diff --git a/files/powermenu/type-5/powermenu.sh b/files/powermenu/type-5/powermenu.sh index 561e30c..12ac23e 100755 --- a/files/powermenu/type-5/powermenu.sh +++ b/files/powermenu/type-5/powermenu.sh @@ -106,6 +106,8 @@ case ${chosen} in betterlockscreen -l elif [[ -x '/usr/bin/i3lock' ]]; then i3lock + elif [[ -x '/usr/bin/xsel' ]]; then + xset s activate fi ;; $suspend) diff --git a/files/powermenu/type-6/powermenu.sh b/files/powermenu/type-6/powermenu.sh index ad93faf..be2abea 100755 --- a/files/powermenu/type-6/powermenu.sh +++ b/files/powermenu/type-6/powermenu.sh @@ -106,6 +106,8 @@ case ${chosen} in betterlockscreen -l elif [[ -x '/usr/bin/i3lock' ]]; then i3lock + elif [[ -x '/usr/bin/xsel' ]]; then + xset s activate fi ;; $suspend)