Add swayidle script

This commit is contained in:
Stephan Raabe 2023-09-18 19:46:41 +02:00
parent eeccb67f44
commit 2e8afef36d
3 changed files with 10 additions and 0 deletions

View File

@ -6,6 +6,7 @@ https://gitlab.com/stephan-raabe/dotfiles/-/releases/2.2
- Hyprland: Prefer dark theme for gtk3 applications e.g., nautilus
- Hyprland: Add keybinding for filemanager.sh SUPER, CTRL, F to start nautilus (if installed) or thunar
- Installation: Add nautilus package to become new default file manager
- Hyprland install script: Add swayidle to 2-install-hyprland.sh
- Waybar: Add quickstart icon for filemanager.sh
- Waybar: Style improvements

View File

@ -30,6 +30,7 @@ exec-once = ~/dotfiles/waybar/launch.sh
exec-once = ~/dotfiles/scripts/updatewal-swww.sh
exec-once = dunst
exec-once = ~/dotfiles/hypr/gtk.sh
exec-once = ~/dotfiles/scripts/lockscreentime.sh
# -----------------------------------------------------
# Load pywal color file

8
scripts/lockscreentime.sh Executable file
View File

@ -0,0 +1,8 @@
#/bin/sh
if [ -f "/usr/bin/swayidle" ]; then
echo "swayidle is installed."
swayidle -w timeout 60 'swaylock -f' timeout 100 'hyprctl dispatch dpms off' resume 'hyprctl dispatch dpms on'
else
echo "swayidle not installed."
fi;