From: Andre Ramnitz Date: Sun, 24 Dec 2023 16:58:28 +0000 (+0100) Subject: hypr: update config, add sleep script X-Git-Tag: v0.2~274 X-Git-Url: https://git.ramnitz.eu/?a=commitdiff_plain;h=f4c8c0bfb8241b5ac0480c1578c201544fee31ab;p=dotfiles.git hypr: update config, add sleep script --- diff --git a/config/hypr/hyprland.conf b/config/hypr/hyprland.conf index 348ac1e8..1d869be5 100644 --- a/config/hypr/hyprland.conf +++ b/config/hypr/hyprland.conf @@ -24,20 +24,24 @@ env = XDG_SESSION_DESKTOP, Hyprland exec-once = ~/.config/hypr/scripts/startup.sh exec-once = ~/.config/hypr/scripts/daemons.sh +exec-once = ~/.config/hypr/scripts/sleep.sh # Source a file (multi-file configs) # source = ~/.config/hypr/myColors.conf # Some default env vars. -env = GDK_SCALE=1 # scaling XWayland clients -env = XCURSOR_SIZE,24 -env = QT_QPA_PLATFORM,wayland +#env = QT_QPA_PLATFORM,wayland,xcb +#env = QT_AUTO_SCREEN_SCALE_FACTOR,1 env = QT_QPA_PLATFORMTHEME,qt6ct -env = GDK_BACKEND=wayland -env = QT_AUTO_SCREEN_SCALE_FACTOR,1 -env = MOZ_ENABLE_WAYLAND,1 + +#env = GDK_BACKEND=wayland,xcb +#env = GDK_SCALE=1 # scaling XWayland clients env = GTK_USE_PORTAL,1 +env = XCURSOR_SIZE,28 +env = XCURSOR_THEME,BreezeX-Dark +env = MOZ_ENABLE_WAYLAND,1 + # For all categories, see https://wiki.hyprland.org/Configuring/Variables/ input { kb_layout = us diff --git a/config/hypr/scripts/sleep-dpms.sh b/config/hypr/scripts/sleep-dpms.sh new file mode 100755 index 00000000..c1ffc732 --- /dev/null +++ b/config/hypr/scripts/sleep-dpms.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +swayidle -w timeout 600 'swaylock -f -c 000000' \ + timeout 900 'hyprctl dispatch dpms off' \ + resume 'hyprctl dispatch dpms on' \ + timeout 1200 'loginctl suspend' \ + before-sleep 'swaylock -f -c 000000' & + + diff --git a/config/hypr/scripts/sleep.sh b/config/hypr/scripts/sleep.sh new file mode 100755 index 00000000..84a09cb2 --- /dev/null +++ b/config/hypr/scripts/sleep.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +swayidle -w timeout 600 'swaylock -f -c 000000' \ + timeout 1200 'loginctl suspend' \ + before-sleep 'swaylock -f -c 000000' & + +