From d3b03472ae3107e09e117def65c739aa9aaf00bf Mon Sep 17 00:00:00 2001 From: Maximilian Friedersdorff Date: Mon, 3 Oct 2022 11:38:40 +0100 Subject: [PATCH] Some more configuration --- states/conky/files/conkyrc | 2 +- states/sway/files/config.jinja | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) 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 -- 2.45.2