summary refs log tree commit diff
path: root/.config/sway/hibiki
diff options
context:
space:
mode:
authorRobert Günzler <r@gnzler.io>2020-02-28 20:10:18 +0100
committerRobert Günzler <r@gnzler.io>2020-02-28 20:10:18 +0100
commit7bebd3af5c64c3a680d0f3ab881c202c861eb924 (patch)
treec7a4d5405f07d115e9e646489e78a95fc2b5a50d /.config/sway/hibiki
parentf73eeab226a7219bc4da0c83967bbc5d92173926 (diff)
sway: fixup tablet inputs and swayidle command
Diffstat (limited to '.config/sway/hibiki')
-rw-r--r--.config/sway/hibiki25
1 files changed, 15 insertions, 10 deletions
diff --git a/.config/sway/hibiki b/.config/sway/hibiki
index 8658494..2363366 100644
--- a/.config/sway/hibiki
+++ b/.config/sway/hibiki
@@ -1,5 +1,9 @@
 # vim: ft=i3
 
+set $laptop eDP-1
+set $desk "Dell Inc. DELL U2518D 3C4YP87AAK3L"
+set $side "Samsung Electric Company SyncMaster H9XQ502424"
+
 output * scale 1
 output * bg $HOME/.background fill
 
@@ -12,7 +16,8 @@ for_window [app_id=firefox] max_render_time 3
 input "1:1:AT_Translated_Set_2_keyboard" {
     xkb_options 'caps:hyper,lvl3:ralt_switch_multikey,grp:alt_space_toggle,eurosign:5'
 }
-input "2:7:SynPS/2_Synaptics_TouchPad" {
+set $trackpad "2:7:SynPS/2_Synaptics_TouchPad"
+input $trackpad {
     natural_scroll enabled
     dwt enabled
     tap enabled
@@ -34,12 +39,12 @@ bar {
 exec redshift -l 52.52:13.40
 exec mako
 exec kanshi
-exec swayidle \
-	timeout 540 'notify-send swayidle "screen off in 60s"' \
-	timeout 600 'sway output * dpms off' \
-		resume 'sway output * dpms on' \
-	timeout 800 suspend \
-	before-sleep lock
-
-bindswitch --locked lid:on output $laptop disable; exec notify-send clamshell-mode enabled
-bindswitch --locked lid:off output $laptop enable; exec notify-send clamshell-mode disabled
+exec swayidle -w \
+	timeout 540 'lock' \
+	timeout 600 'swaymsg "output * dpms off"' \
+	     resume 'swaymsg "output * dpms on"' \
+	before-sleep 'swaylock -f -c 000000' \
+	lock lock
+
+bindswitch --locked lid:on output $laptop disable
+bindswitch --locked lid:off output $laptop enable