summaryrefslogtreecommitdiffstats
path: root/.local
diff options
context:
space:
mode:
authormokulus <36231852+mokulus@users.noreply.github.com>2020-04-28 14:50:57 +0200
committerGitHub <noreply@github.com>2020-04-28 08:50:57 -0400
commitea61ca6366e5aa611b6c02a8c0d36455a260fe7b (patch)
treeeb9fcb9ba85127b12931c5db79725ebc522910a1 /.local
parentdf3009aade15ed96a914065d6aebfe90f3a87f1c (diff)
downloadeibhear-ea61ca6366e5aa611b6c02a8c0d36455a260fe7b.tar.gz
eibhear-ea61ca6366e5aa611b6c02a8c0d36455a260fe7b.tar.zst
eibhear-ea61ca6366e5aa611b6c02a8c0d36455a260fe7b.zip
Squashed commit of the following: (#600)
commit 8f7b5b2e1e0c93db6620f163e944a14558fba652 Author: MateuszOkulus <mateusz.okulus@protonmail.com> Date: Sun Apr 26 07:23:41 2020 +0200 Fix sysact when there are multiple spaces. commit dd0133304c55eec117c4e03f38317f332ad8970f Author: MateuszOkulus <mateusz.okulus@protonmail.com> Date: Sun Apr 26 07:22:55 2020 +0200 Remove trailing newline So there is no empty selection at the end in dmenu. commit 2ab45df225695f9c64031d52ff48d837bb9a6e72 Author: MateuszOkulus <mateusz.okulus@protonmail.com> Date: Sun Apr 26 07:22:22 2020 +0200 Exit when escaping dmenu. commit e8209da3e809ac830844b89e7638d695cd61240f Author: MateuszOkulus <mateusz.okulus@protonmail.com> Date: Sun Apr 26 07:19:18 2020 +0200 Revert "Fix sysact" This reverts commit 90a2147c0a2463122a5f0cc3ff14de0cceb66135. commit 8dba47f7462d04a49282be33ae9ce68eb7d8d476 Author: MateuszOkulus <mateusz.okulus@protonmail.com> Date: Sun Apr 26 07:18:57 2020 +0200 Revert "Change tab to spaces." This reverts commit 2e480b32ba90c793771d87d47d7273bcdc180e12. commit 2e480b32ba90c793771d87d47d7273bcdc180e12 Author: MateuszOkulus <mateusz.okulus@protonmail.com> Date: Sat Apr 25 11:35:55 2020 +0200 Change tab to spaces. commit 90a2147c0a2463122a5f0cc3ff14de0cceb66135 Author: MateuszOkulus <mateusz.okulus@protonmail.com> Date: Sat Apr 25 11:25:50 2020 +0200 Fix sysact See #584. It now uses # so it's clearly visible.
Diffstat (limited to '.local')
-rwxr-xr-x.local/bin/sysact7
1 files changed, 3 insertions, 4 deletions
diff --git a/.local/bin/sysact b/.local/bin/sysact
index 6bf1a56..aaef469 100755
--- a/.local/bin/sysact
+++ b/.local/bin/sysact
@@ -7,9 +7,8 @@ lock screen slock
leave dwm kill -TERM $(pidof -s dwm)
refresh dwm kill -HUP $(pidof -s dwm)
reboot sudo -A reboot
-shutdown sudo -A shutdown -h now
-"
+shutdown sudo -A shutdown -h now"
-choice="$(echo "$cmds" | cut -d' ' -f 1 | dmenu)"
+choice="$(echo "$cmds" | cut -d' ' -f 1 | dmenu)" || exit 1
-`echo "$cmds" | grep "^$choice " | cut -d ' ' -f2`
+`echo "$cmds" | grep "^$choice " | cut -d ' ' -f2-`