From a92906b244496251dbada6571f16d86b7db08063 Mon Sep 17 00:00:00 2001 From: tiyn Date: Sun, 6 Jul 2025 06:30:51 +0200 Subject: [PATCH] wayland: unclutter not needed due to patched dwl & changed some autostart programs --- .config/wayland/swayidle.sh | 7 +++++++ .config/wayland/wayland.conf | 8 +++++--- 2 files changed, 12 insertions(+), 3 deletions(-) create mode 100755 .config/wayland/swayidle.sh 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 &