From e58fd2b158686e7911f68dafa1dc1d71f789c4a4 Mon Sep 17 00:00:00 2001 From: ZachIR Date: Wed, 25 Sep 2024 14:50:17 -0500 Subject: Remove swaylock from hypridle and stop hyprlock fades Before, hypridle would launch swaylock before sleeping, but hyprlock when receiving the loginctl lock-session command. This has been fixed. In addition, hyprlock no longer fades. --- hypr/hypridle.conf | 2 +- hypr/hyprlock.conf | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'hypr') diff --git a/hypr/hypridle.conf b/hypr/hypridle.conf index 9b6ea02..39ed177 100644 --- a/hypr/hypridle.conf +++ b/hypr/hypridle.conf @@ -1,7 +1,7 @@ general { lock_cmd = hyprlock # dbus/sysd lock command (loginctl lock-session) unlock_cmd = # same as above, but unlock - before_sleep_cmd = swaylock # command ran before sleep + before_sleep_cmd = hyprlock # command ran before sleep after_sleep_cmd = # command ran after sleep ignore_dbus_inhibit = false # whether to ignore dbus-sent idle-inhibit requests (used by e.g. firefox or steam) } diff --git a/hypr/hyprlock.conf b/hypr/hyprlock.conf index 84d08ae..24208d6 100644 --- a/hypr/hyprlock.conf +++ b/hypr/hyprlock.conf @@ -2,8 +2,8 @@ general { disable_loading_bar = false hide_cursor = false grace = 0 - no_fade_in = false - no_fade_out = false + no_fade_in = true + no_fade_out = true ignore_empty_input = false } -- cgit v1.2.3 From 98c3c50c85ea56eff874e20ded11f22eaa2fa401 Mon Sep 17 00:00:00 2001 From: ZachIR Date: Wed, 25 Sep 2024 14:51:14 -0500 Subject: Remove deprecated hyprland windowrules The Hyprland rules windowdance and forceinput seem to have been deprecated, and now cause an error in the newest version of Hyprland, so this removes those lines. --- hypr/hyprland.conf | 5 ----- 1 file changed, 5 deletions(-) (limited to 'hypr') diff --git a/hypr/hyprland.conf b/hypr/hyprland.conf index 652d4e1..2eac30c 100644 --- a/hypr/hyprland.conf +++ b/hypr/hyprland.conf @@ -182,9 +182,6 @@ plugin { # Example windowrule v2 # windowrulev2 = float, class:^(kitty)$, title:^(kitty)$ # See https://wiki.hyprland.org/Configuring/Window-Rules/ for more -windowrule = windowdance, ^(oneshot)$ -windowrule = windowdance, title:^(UNDERTALE)$ -windowrule = windowdance, title:^(Rhythm Doctor)$ windowrule = fullscreen, ^(Xephyr)$ windowrule = float, title:^(LibreWolf - Choose User Profile)$ windowrule = float, ^(xdg-desktop-portal-gtk) @@ -197,8 +194,6 @@ windowrulev2 = stayfocused, title:^(menu)$,class:^(yabridge-host.exe.so)$ windowrulev2 = minsize 1 1, title:^(menu)$,class:^(yabridge-host.exe.so)$ windowrulev2 = float, class:^(yabridge-host.exe.so)$, title:^(menu)$ windowrulev2 = float, floating:0, title:^(menu*) -windowrulev2 = forceinput, title:^(menu*) -windowrulev2 = windowdance, title:^(menu*) windowrule = workspace 2, title:^(REAPER .*initializing.*)$ windowrulev2 = tile, class:^(REAPER)$, title:^(.*REAPER v[0-9.]* - Licensed for personal/small business use)$ windowrule = tile, ^(WebApp-Qobuz[0-9]*)$ -- cgit v1.2.3 From 4adc7a808f10ec4133bf16fbceea49ec6ed1560a Mon Sep 17 00:00:00 2001 From: ZachIR Date: Thu, 31 Oct 2024 12:05:06 -0500 Subject: Add suspend timeout to hypridle --- hypr/hypridle.conf | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'hypr') diff --git a/hypr/hypridle.conf b/hypr/hypridle.conf index 39ed177..df2b123 100644 --- a/hypr/hypridle.conf +++ b/hypr/hypridle.conf @@ -7,7 +7,13 @@ general { } listener { - timeout = 600 # in seconds + timeout = 300 # in seconds on-timeout = loginctl lock-session # command to run when timeout has passed on-resume = # command to run when activity is detected after timeout has fired. } + +listener { + timeout = 360 # in seconds + on-timeout = systemctl suspend # command to run when timeout has passed + on-resume = # command to run when activity is detected after timeout has fired. +} -- cgit v1.2.3 From 5c939654efcbf64c57812d9e670f6f6566ae8be0 Mon Sep 17 00:00:00 2001 From: ZachIR Date: Thu, 31 Oct 2024 12:05:37 -0500 Subject: Change hypridle, dunst, mpd hypr autostart to sysd I have accepted the systemd suck, so these are now mpd user services (although dunst and hypridle still have to be started by Hyprland). --- hypr/hyprland.conf | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'hypr') diff --git a/hypr/hyprland.conf b/hypr/hyprland.conf index 2eac30c..9f1d55f 100644 --- a/hypr/hyprland.conf +++ b/hypr/hyprland.conf @@ -14,7 +14,7 @@ monitor = DP-1, 1920x1080@60, 1920x0, 1 exec-once = xdph exec-once = hyprpm reload -n exec-once = hyprpaper -exec-once = hypridle +#exec-once = hypridle exec-once = waybar exec-once = pypr exec-once = lxqt-policykit-agent @@ -23,7 +23,9 @@ exec-once = import-gsettings icon-theme 'Mint-X-Grey' exec-once = import-gsettings cursor-theme 'Breeze' exec-once = xrdb -load "$XDG_CONFIG_HOME"/X11/xresources exec-once = com.github.wwmm.easyeffects -exec-once = mpd +exec-once = systemctl --user start dunst +exec-once = systemctl --user start hypridle +#exec-once = mpd #}}} #{{{ env -- cgit v1.2.3 From 76b662c7b576f5af9294a1dbdc8b94b35a1059ab Mon Sep 17 00:00:00 2001 From: ZachIR Date: Thu, 31 Oct 2024 12:07:14 -0500 Subject: Float kdenlive popup in Hyprland --- hypr/hyprland.conf | 1 + 1 file changed, 1 insertion(+) (limited to 'hypr') diff --git a/hypr/hyprland.conf b/hypr/hyprland.conf index 9f1d55f..40b1ade 100644 --- a/hypr/hyprland.conf +++ b/hypr/hyprland.conf @@ -190,6 +190,7 @@ windowrule = float, ^(xdg-desktop-portal-gtk) windowrule = float, title:^(UNDERTALE)$ windowrule = float, ^(Tk)$ windowrule = float, ^(lxqt-policykit-agent)$ +windowrule = float, ^(Kdenlive)$ windowrulev2 = stayfocused, title:^()$, class:^(steam)$ windowrulev2 = minsize 1 1, title:^()$, class:^(steam)$ windowrulev2 = stayfocused, title:^(menu)$,class:^(yabridge-host.exe.so)$ -- cgit v1.2.3 From c2595192b158918d570f87dec01c697b7db90d2f Mon Sep 17 00:00:00 2001 From: ZachIR Date: Thu, 31 Oct 2024 12:07:52 -0500 Subject: Add acpi-notify script shortcut to hypr --- hypr/hyprland.conf | 1 + 1 file changed, 1 insertion(+) (limited to 'hypr') diff --git a/hypr/hyprland.conf b/hypr/hyprland.conf index 40b1ade..7b2d664 100644 --- a/hypr/hyprland.conf +++ b/hypr/hyprland.conf @@ -346,6 +346,7 @@ bind = $mainMod, Q, exec, loginctl lock-session bind = $mainMod $secdMod CONTROL, Q, exec, systemctl suspend bind = $mainMod SHIFT, G, exec, get-app-id bind = $mainMod Control, M, exec, volsv -m +bind = $mainMod, Comma, exec, acpi-notify.sh #bind = $mainMod CONTROL, R, exec, startx -- /usr/bin/Xephyr -screen 1920x1080 :1 #}}} -- cgit v1.2.3 From 1aeb6934e5cd1babd19a56417d35b6fa1904f934 Mon Sep 17 00:00:00 2001 From: ZachIR Date: Tue, 19 Nov 2024 12:43:33 -0600 Subject: Updates hypridle based on upstream The example config file works better than mine did, so I yoinked a bunch of stuff from it. --- hypr/hypridle.conf | 37 ++++++++++++++++++++++++++----------- 1 file changed, 26 insertions(+), 11 deletions(-) (limited to 'hypr') diff --git a/hypr/hypridle.conf b/hypr/hypridle.conf index df2b123..f25f081 100644 --- a/hypr/hypridle.conf +++ b/hypr/hypridle.conf @@ -1,19 +1,34 @@ general { - lock_cmd = hyprlock # dbus/sysd lock command (loginctl lock-session) - unlock_cmd = # same as above, but unlock - before_sleep_cmd = hyprlock # command ran before sleep - after_sleep_cmd = # command ran after sleep - ignore_dbus_inhibit = false # whether to ignore dbus-sent idle-inhibit requests (used by e.g. firefox or steam) + 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. } listener { - timeout = 300 # in seconds - on-timeout = loginctl lock-session # command to run when timeout has passed - on-resume = # command to run when activity is detected after timeout has fired. + timeout = 150 # 2.5min. + on-timeout = brightnessctl -s set 10 # set monitor backlight to minimum, avoid 0 on OLED monitor. + on-resume = brightnessctl -r # monitor backlight restore. } +# turn off keyboard backlight, comment out this section if you dont have a keyboard backlight. listener { - timeout = 360 # in seconds - on-timeout = systemctl suspend # command to run when timeout has passed - on-resume = # command to run when activity is detected after timeout has fired. + timeout = 150 # 2.5min. + on-timeout = brightnessctl -sd led::kbd_backlight set 0 # turn off keyboard backlight. + on-resume = brightnessctl -rd led::kbd_backlight # turn on keyboard backlight. +} + +listener { + timeout = 300 # 5min + on-timeout = loginctl lock-session # lock screen when timeout has passed +} + +listener { + timeout = 330 # 5.5min + on-timeout = hyprctl dispatch dpms off # screen off when timeout has passed + on-resume = hyprctl dispatch dpms on # screen on when activity is detected after timeout has fired. +} + +listener { + timeout = 1800 # 30min + on-timeout = systemctl suspend # suspend pc } -- cgit v1.2.3 From 01432500285b3f0440edddbd3020524f02647701 Mon Sep 17 00:00:00 2001 From: ZachIR Date: Tue, 19 Nov 2024 12:45:02 -0600 Subject: Updates hyprland config to the latest version Shadow became its own category in Decorations, and an option in master disappeared, and a new one got added. --- hypr/hyprland.conf | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) (limited to 'hypr') diff --git a/hypr/hyprland.conf b/hypr/hyprland.conf index 7b2d664..097aa8a 100644 --- a/hypr/hyprland.conf +++ b/hypr/hyprland.conf @@ -110,10 +110,6 @@ misc { decoration { # See https://wiki.hyprland.org/Configuring/Variables/ for more rounding = 10 - drop_shadow = no - shadow_range = 4 - shadow_render_power = 3 - col.shadow = rgba(1a1a1aee) #{{{ Blur options blur { enabled = true @@ -123,6 +119,14 @@ decoration { xray = true } #}}} + #{{{ Shadow options + shadow { + enabled = false + range = 4 + render_power = 3 + color = 0xee1a1a1a + } + #}}} } #}}} @@ -157,9 +161,10 @@ master { # See https://wiki.hyprland.org/Configuring/Master-Layout/ for more new_status = inherit new_on_top = true - no_gaps_when_only = false + #no_gaps_when_only = false orientation = left inherit_fullscreen = true + drop_at_cursor = true } #}}} -- cgit v1.2.3 From bc4303e0ff999fec14463f9405a7fc7add325477 Mon Sep 17 00:00:00 2001 From: ZachIR Date: Tue, 19 Nov 2024 12:46:49 -0600 Subject: Modify hyprlock behavior Hide cursor and loading bar, and ignore empty input. --- hypr/hyprlock.conf | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'hypr') diff --git a/hypr/hyprlock.conf b/hypr/hyprlock.conf index 24208d6..57f9fdd 100644 --- a/hypr/hyprlock.conf +++ b/hypr/hyprlock.conf @@ -1,10 +1,10 @@ general { - disable_loading_bar = false - hide_cursor = false + disable_loading_bar = true + hide_cursor = true grace = 0 no_fade_in = true no_fade_out = true - ignore_empty_input = false + ignore_empty_input = true } background { -- cgit v1.2.3