diff --git a/.config/wayland/swayidle.sh b/.config/wayland/swayidle.sh new file mode 100755 index 0000000..8f90721 --- /dev/null +++ b/.config/wayland/swayidle.sh @@ -0,0 +1,7 @@ +#!/bin/sh +exec swayidle -w \ + timeout 20 'systemctl suspend-then-hibernate' + before-sleep 'swaylock' + # timeout 1500 "notify-send -u critical 'Power' 'Laptop will suspend in 5 minutes!'"\ + # timeout 1740 "notify-send -u critical 'Power' 'System will suspend in 1 minute!'"\ + # timeout 1800 "systemctl suspend-then-hibernate" diff --git a/.config/wayland/wayland.conf b/.config/wayland/wayland.conf index cf6b750..c2fdbd1 100755 --- a/.config/wayland/wayland.conf +++ b/.config/wayland/wayland.conf @@ -1,9 +1,11 @@ #!/bin/sh exec systemctl --user import-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP & exec dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP & +nmcli radio wifi on & + +~/.config/wayland/swayidle.sh & $STATUSBAR & # use environment variable -# unclutter & # hide cursor xss-lock -- swaylock & # enable locking the screen upon sleep swaybg -i ~/.local/share/bg & dunst & @@ -18,10 +20,10 @@ keepassxc & zen-browser & discord & signal-desktop & -telegram-desktop & +Telegram & threema-beta & thunderbird & -mattermost-desktop & +# mattermost-desktop & # monitor toggle & # touchpad off &