summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmin Bandali <amin@gnu.org>2018-09-16 13:10:11 -0400
committerAmin Bandali <amin@gnu.org>2018-09-16 13:12:08 -0400
commitad65bea00265c8766030931b8dd244fe27dedf27 (patch)
treed42a40a4c7ef42caa1f559097967ba0ed5cfe7de
parent67023528a1c34cb86fd749b9aeeb847d98ac1373 (diff)
downloadconfigs-ad65bea00265c8766030931b8dd244fe27dedf27.tar.gz
configs-ad65bea00265c8766030931b8dd244fe27dedf27.tar.xz
configs-ad65bea00265c8766030931b8dd244fe27dedf27.zip
[rc] add swaylock configuration and lock screen when idle
-rw-r--r--rc.org28
1 files changed, 16 insertions, 12 deletions
diff --git a/rc.org b/rc.org
index 16741cd..dcce8ab 100644
--- a/rc.org
+++ b/rc.org
@@ -3795,18 +3795,12 @@ output * bg /usr/share/backgrounds/sway/Sway_Wallpaper_Blue_1920x1080.png fill
# You can get the names of your outputs by running: swaymsg -t get_outputs
### Idle configuration
-#
-# Example configuration:
-#
-#exec swayidle \
-# timeout 300 'swaylock -c 000000' \
-# timeout 600 'swaymsg "output * dpms off"' \
-# resume 'swaymsg "output * dpms on"' \
-# before-sleep 'swaylock -c 000000'
-#
-# This will lock your screen after 300 seconds of inactivity, then turn off
-# your displays after another 600 seconds, and turn your screens back on when
-# resumed. It will also lock your screen before your computer goes to sleep.
+
+exec swayidle \
+ timeout 60 swaylock \
+ timeout 120 'swaymsg "output * dpms off"' \
+ resume 'swaymsg "output * dpms on"' \
+ before-sleep swaylock
### Input configuration
@@ -4005,6 +3999,16 @@ bar {
include /etc/sway/config.d/*
#+end_src
+** swaylock
+:PROPERTIES:
+:header-args+: :tangle ~/.config/swaylock/config
+:END:
+
+#+begin_src conf
+image=/home/amin/usr/pics/wp/wp2445784-blurred-wallpapers.jpg
+scaling=fill
+#+end_src
+
** TLP
*** langa