summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHekuran <62762955+narukeh@users.noreply.github.com>2020-04-22 18:34:43 +0200
committerGitHub <noreply@github.com>2020-04-22 12:34:43 -0400
commit933e4149d350f0c73a003a94a6cee45f277a6c17 (patch)
tree7cd11670fc1bf72fc63b6f1785b0eaf469a84026
parent2c02c85aae3f0ade67d26d7e87c0c57c10b591cd (diff)
downloadeibhear-933e4149d350f0c73a003a94a6cee45f277a6c17.tar.gz
eibhear-933e4149d350f0c73a003a94a6cee45f277a6c17.tar.zst
eibhear-933e4149d350f0c73a003a94a6cee45f277a6c17.zip
i3 to use slock (#590)
it could only work with '&&' and only in this order. i see that it would be logical to "slock" even if a preceding command will fail, though like i said it would only run in this order. i've tried using a script (even in this order) with " ; " it would not run. the audios would mute and the screen would turn off, but it would not lock.
-rw-r--r--.config/i3/config2
1 files changed, 1 insertions, 1 deletions
diff --git a/.config/i3/config b/.config/i3/config
index ea24277..ed7e7a5 100644
--- a/.config/i3/config
+++ b/.config/i3/config
@@ -134,7 +134,7 @@ bindsym $mod+Ctrl+l move workspace to output right
bindsym $mod+z gaps outer current plus 5
bindsym $mod+Shift+z gaps outer current minus 5
-bindsym $mod+x exec --no-startup-id mpc pause; exec --no-startup-id pauseallmpv ; exec --no-startup-id i3lock -e -f -c 1d2021 ; exec --no-startup-id xset dpms force off
+bindsym $mod+x exec --no-startup-id xset dpms force off && mpc pause && pauseallmpv && slock &
bindsym $mod+Shift+x exec --no-startup-id prompt "Shutdown computer?" "$shutdown"
bindsym $mod+c exec --no-startup-id cabl