diff --git a/desktopenvs/hyprland/hypr-usr/idle.conf b/desktopenvs/hyprland/hypr-usr/idle.conf new file mode 100644 index 0000000..60bc7d7 --- /dev/null +++ b/desktopenvs/hyprland/hypr-usr/idle.conf @@ -0,0 +1,4 @@ +listener { + timeout = 300 # 5min + on-timeout = hyprlock # lock screen when timeout has passed +} diff --git a/desktopenvs/hyprland/hypr/hypridle.conf b/desktopenvs/hyprland/hypr/hypridle.conf new file mode 100644 index 0000000..bbcf110 --- /dev/null +++ b/desktopenvs/hyprland/hypr/hypridle.conf @@ -0,0 +1,6 @@ +source ~/.config/idle.conf +general { + lock_cmd = pidof hyprlock || hyprlock # avoid starting multiple hyprlock instances. + before_sleep_cmd = loginctl lock-session # lock before suspend. + after_sleep_cmd = hyprctl dispatch dpms on # to avoid having to press a key twice to turn on the display. +} diff --git a/setup/modules/Desktop-Enviroments/hyprland.sh b/setup/modules/Desktop-Enviroments/hyprland.sh index 1ac78d0..535b279 100644 --- a/setup/modules/Desktop-Enviroments/hyprland.sh +++ b/setup/modules/Desktop-Enviroments/hyprland.sh @@ -2,7 +2,7 @@ echo "Uninstalling conflicting Packages" sudo pacman -Rns hyprland-git hyprcursor-git hyprland-qtutils-git hyprutils-git hyprgraphics-git hyprland-workspaces hyprwayland-scanner-git hyprland-workspaces-debug hyprland-qt-support-git hyprlang-git hyprgraphics-git hyprland-qtutils-git hyprlang-git; echo "uninstall completed, now installing" echo "Installing required Packages" -sudo pacman -Syu --noconfirm hyprland hyprcursor wl-clipboard hyprpaper hyprlock wofi kitty alacritty dunst nwg-dock-hyprland nwg-drawer nwg-menu nwg-look python cmake meson cpio pkgconf ruby-pkg-config hyprsunset ksshaskpass nm-connection-editor network-manager-applet blueman bluez pipewire alsa-utils firefox greetd-tuigreet grim slurp gst-plugin-pipewire imagemagick nerd-fonts otf-font-awesome pipewire-alsa pipewire-jack pipewire-pulse qt5-wayland qt6-wayland swww ttf-jetbrains-mono wireplumber wofi qt6ct xdg-desktop-portal-hyprland xdg-utils xorg-server xorg-xinit papirus-icon-theme +sudo pacman -Syu --noconfirm hyprland hyprcursor wl-clipboard hyprpaper hyprlock wofi kitty alacritty dunst nwg-dock-hyprland nwg-drawer nwg-menu nwg-look python cmake meson cpio pkgconf ruby-pkg-config hyprsunset hypridle ksshaskpass nm-connection-editor network-manager-applet blueman bluez pipewire alsa-utils firefox greetd-tuigreet grim slurp gst-plugin-pipewire imagemagick nerd-fonts otf-font-awesome pipewire-alsa pipewire-jack pipewire-pulse qt5-wayland qt6-wayland swww ttf-jetbrains-mono wireplumber wofi qt6ct xdg-desktop-portal-hyprland xdg-utils xorg-server xorg-xinit papirus-icon-theme echo "Installing AUR packages" yay -Syu --answerdiff None --answerclean All hyprland-workspaces bluetuith wvkbd kew