From: Maximilian Friedersdorff Date: Mon, 3 Oct 2022 10:38:40 +0000 (+0100) Subject: Some more configuration X-Git-Url: https://git.friedersdorff.com/?a=commitdiff_plain;h=d3b03472ae3107e09e117def65c739aa9aaf00bf;p=max%2Fsaltfiles.git Some more configuration --- diff --git a/states/conky/files/conkyrc b/states/conky/files/conkyrc index ede13d7..dc051ab 100644 --- a/states/conky/files/conkyrc +++ b/states/conky/files/conkyrc @@ -11,7 +11,7 @@ {% elif grains['host'] == 'rhenium' %} {% set ifdev = ['wlp2s0'] %} {% elif grains['host'] == 'baryte' %} - {% set ifdev = ['enx00f001e00121'] %} + {% set ifdev = ['enp0s20f0u4u2c2'] %} {% else %} {% set ifdev = ['eth0'] %} {% endif %} diff --git a/states/sway/files/config.jinja b/states/sway/files/config.jinja index 6a3a8e0..ac0da0f 100644 --- a/states/sway/files/config.jinja +++ b/states/sway/files/config.jinja @@ -74,6 +74,14 @@ output * bg /usr/share/backgrounds/sway/Sway_Wallpaper_Blue_1920x1080.png fill # your displays after another 300 seconds, and turn your screens back on when # resumed. It will also lock your screen before your computer goes to sleep. +{% set lockcmd = "swaylock -e -f -i ~/Pictures/Backgrounds/DSC02113.jpg" %} + +exec swayidle -w \ +timeout 300 "{{lockcmd}}" \ + timeout 600 'systemctl suspend' \ + before-sleep "{{lockcmd}}" + + ### Input configuration # # Example configuration: @@ -260,6 +268,8 @@ mode "resize" { } bindsym $mod+r mode "resize" +bindsym $mod+Alt+l exec '{{ lockcmd }}' + include /etc/sway/config.d/* # host specific section