From 4222c4795a5b8e0315fd3c2dae69437738214e4e Mon Sep 17 00:00:00 2001 From: David Thurstenson Date: Tue, 9 Jun 2020 13:37:33 -0500 Subject: [PATCH] Added locker to keybindings, various bar and output tweaks --- .../common/{11-idle_lock.conf.bak => 11-idle_lock.conf} | 2 +- .config/sway/common/20-keybindings.conf | 4 ++++ .config/sway/kd-laptop/40-output.conf | 7 +++++++ .config/sway/kd-laptop/py3status.py | 7 +++++++ 4 files changed, 19 insertions(+), 1 deletion(-) rename .config/sway/common/{11-idle_lock.conf.bak => 11-idle_lock.conf} (90%) diff --git a/.config/sway/common/11-idle_lock.conf.bak b/.config/sway/common/11-idle_lock.conf similarity index 90% rename from .config/sway/common/11-idle_lock.conf.bak rename to .config/sway/common/11-idle_lock.conf index aa75189..81a5a3c 100644 --- a/.config/sway/common/11-idle_lock.conf.bak +++ b/.config/sway/common/11-idle_lock.conf @@ -12,7 +12,7 @@ set $locker "swaylock -f -F -l -c 000000" exec swayidle -w \ timeout $lock-time $locker \ - timeout $dispsleep-time $dispsleep \ +# timeout $dispsleep-time $dispsleep \ resume $dispwake \ after-resume $dispwake \ before-sleep $locker \ diff --git a/.config/sway/common/20-keybindings.conf b/.config/sway/common/20-keybindings.conf index 102aef0..0b6e561 100644 --- a/.config/sway/common/20-keybindings.conf +++ b/.config/sway/common/20-keybindings.conf @@ -27,6 +27,10 @@ bindsym $mod+Shift+c reload # Exit sway (logs you out of your Wayland session) bindsym $mod+Shift+e exit +# Lock Screen +# See 11-idle_lock.conf for locker definition +bindsym $mod+Mod1+l exec "$locker" + ## Display brightness # Requires light(1) diff --git a/.config/sway/kd-laptop/40-output.conf b/.config/sway/kd-laptop/40-output.conf index 41565c2..d7814e2 100644 --- a/.config/sway/kd-laptop/40-output.conf +++ b/.config/sway/kd-laptop/40-output.conf @@ -20,6 +20,12 @@ set $o-docklg-mode "1920x1080@60Hz" set $o-docklg-pos-x "4480" set $o-docklg-pos-y "0" +# Setup for personal ultrawide monitor +set $o-puwide-id "Unknown ASUS VP348 0x0000CA5D" +set $o-puwide-mode "3440x1440@59Hz" +set $o-puwide-pos-x "1920" +set $o-puwide-pos-y "0" + # Sane default of 1080p60 output * mode 1920x1080@60Hz @@ -33,3 +39,4 @@ exec "light -N 6" output $o-internal-id pos $o-internal-pos-x $o-internal-pos-y mode $o-internal-mode output $o-dock4k-id pos $o-dock4k-pos-x $o-dock4k-pos-y mode $o-dock4k-mode output $o-docklg-id pos $o-docklg-pos-x $o-docklg-pos-y mode $o-docklg-mode +output $o-puwide-id pos $o-puwide-pos-x $o-puwide-pos-y mode $o-puwide-mode diff --git a/.config/sway/kd-laptop/py3status.py b/.config/sway/kd-laptop/py3status.py index bafe760..e669b7a 100644 --- a/.config/sway/kd-laptop/py3status.py +++ b/.config/sway/kd-laptop/py3status.py @@ -1,3 +1,4 @@ +order += "dropboxd_status" order += "arch_updates" order += "volume_status" order += "sysdata" @@ -17,6 +18,7 @@ arch_updates { battery_level { format = "🔋{percent}% ({time_remaining})" hide_seconds = true + threshold_full = 80 } keyboard_locks { @@ -32,3 +34,8 @@ sysdata { format = "[\?color=cpu CPU: {cpu_used_percent}%], [\?color=mem Mem: {mem_used_percent}%], [\?color=load L1: {load1}], [\?color=load L5: {load5}], [\?color=load L15: {load15}]" } +dropboxd_status { + format = "KD_DB: {status}" + status_on = "✓" + status_off = "DOWN" +}