]> Freerunner's - dotfiles.git/commitdiff
hypr: update config for 0.39.1
authorAndre Ramnitz <tux.rising@gmail.com>
Fri, 31 May 2024 21:09:39 +0000 (23:09 +0200)
committerAndre Ramnitz <tux.rising@gmail.com>
Sun, 18 Aug 2024 16:18:53 +0000 (18:18 +0200)
config/hypr/hypridle.conf [new file with mode: 0644]
config/hypr/hyprland.conf
config/hypr/hyprlock.conf [new file with mode: 0644]
config/hypr/scripts/gamemode.sh

diff --git a/config/hypr/hypridle.conf b/config/hypr/hypridle.conf
new file mode 100644 (file)
index 0000000..f4e719d
--- /dev/null
@@ -0,0 +1,35 @@
+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.
+}
+
+# listener {
+#     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 = 150                                          # 2.5min.
+#     on-timeout = brightnessctl -sd rgb:kbd_backlight set 0 # turn off keyboard backlight.
+#     on-resume = brightnessctl -rd rgb:kbd_backlight        # turn on keyboard backlight.
+# }
+
+listener {
+    timeout = 900                                 # 15min
+    on-timeout = loginctl lock-session            # lock screen when timeout has passed
+}
+
+listener {
+    timeout = 1200                                 # 20min
+    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 = 3600                                # 60min
+    on-timeout = loginctl suspend                # suspend pc
+}
+
index 5a54d0b69f74d2602e07dd8a83221a36df58af46..a72473464cfc9a5dbbdc314ff780704354d30e62 100644 (file)
@@ -31,17 +31,17 @@ env = GTK_USE_PORTAL,1
 
 env = MOZ_ENABLE_WAYLAND,1
 
-# use older kernel DRM API (allow-tearing)
-env = WLR_DRM_NO_ATOMIC,1
+# use older kernel DRM API (allow-tearing), not necessary above Linux 6.8
+# env = WLR_DRM_NO_ATOMIC,0
 
 # set cursor
 env = XCURSOR_THEME,breeze_cursors
-env = XCURSOR_SIZE,28
-exec-once = hyprctl setcursor breeze_cursors 28
+env = XCURSOR,24
+env = HYPRCURSOR_THEME,breeze_cursors
+env = HYPRCURSOR,24
 
 # Execute your favorite apps at launch
-exec-once = ~/.config/hypr/scripts/startup.sh
-exec-once = ~/.config/hypr/scripts/sleep.sh
+exec-once = hypridle
 
 # Source a file (multi-file configs)
 # source = ~/.config/hypr/myColors.conf
@@ -66,11 +66,11 @@ input {
 general {
     # See https://wiki.hyprland.org/Configuring/Variables/ for more
 
-    gaps_in = 20
-    gaps_out = 40
+    gaps_in = 12
+    gaps_out = 20
     border_size = 2
     col.active_border = rgba(2394ccee) rgba(638cacee) 45deg
-    col.inactive_border = rgba(2394cc77) rgba(638cac77) 45deg
+    col.inactive_border = rgba(aaaaaa77) rgba(33333377) 45deg
     col.nogroup_border_active = rgba(993399ee) rgba(663399ee) 45deg
     col.nogroup_border = rgba(73267377) rgba(4c267377) 45deg
 
@@ -96,7 +96,7 @@ decoration {
         vibrancy = 0.1696
     }
 
-    drop_shadow = yes
+    drop_shadow = true
     shadow_range = 8
     shadow_render_power = 3
     col.shadow = rgba(1a1a1aee)
@@ -120,8 +120,8 @@ animations {
 
 dwindle {
     # See https://wiki.hyprland.org/Configuring/Dwindle-Layout/ for more
-    pseudotile = yes # master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below
-    preserve_split = yes # you probably want this
+    pseudotile = yes # master switch for pseudotiling. Enabling is bound to mainMod + A in the keybinds section below
+    preserve_split = no # you probably want this
 }
 
 master {
@@ -188,6 +188,7 @@ windowrulev2 = float, opacity 1.0 override 0.8 override, class:^(popup)$
 windowrulev2 = float, noanim, stayfocused, maxsize 1280 800, center, opacity 1.0 override, class:^(kakpopup)$
 windowrule = float, ^(openrgb)$
 windowrule = float, ^(org.kde.*)$
+windowrule = float, ^(vlc.*)$
 # windowrule = float, ^(org.kde.okular)$
 # windowrule = float, ^(org.kde.gwenview)$
 # windowrule = float, ^(org.kde.skanlite)$
@@ -199,26 +200,25 @@ $suremod = SUPER ALT CTRL
 $mainmod = SUPER
 
 # binds that don't want to get fat-fingered
-bind = $suremod, Q, killactive,
 bind = $suremod, M, exit,
 bind = $suremod, F, fullscreen,0
 bind = $suremod, Return, exec, konsole # backup terminal app
 bind = $suremod, D, denywindowfromgroup, toggle
 bind = $suremod, V, togglefloating,
-bind = $suremod, C, exec, ~/.config/hypr/scripts/gamemode.sh
+bind = $suremod, G, exec, ~/dotfiles/config/hypr/scripts/gamemode.sh
 
 # Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more
 bind = $mainmod, Return, exec, foot
+bind = $mainmod Shift, Q, killactive,
 bind = $mainmod Shift, Return, exec, foot -w 1280x800 -a popup
-bind = $mainmod, C, exec, foot -w 640x400 -a popup -H hyprpicker
+bind = $mainmod, P, exec, foot -w 640x400 -a popup -H hyprpicker #color Pipette
 bind = $mainmod, E, exec, dolphin
 bind = $mainmod, F, fullscreen,1
 bind = $mainmod, V, exec, killall fuzzel || cliphist list | fuzzel -d -w 100 | cliphist decode | wl-copy
 bind = $mainmod, R, exec, killall fuzzel || fuzzel
 bind = $mainmod Shift, R, exec, killall rofi || rofi -show run # rofi installed for keepassxc-browser script
 bind = $mainmod, A, pseudo, # dwindle, A for Artificial
-bind = $mainmod, S, togglesplit, # dwindle
-bind = ALT SHIFT, F12, exec, ~/.config/hypr/scripts/gamemode.sh
+bind = $mainmod, S, swapsplit, # dwindle
 bind = $mainmod, G, togglegroup
 bind = $mainmod SHIFT, G, lockactivegroup, toggle
 bind = ALT,      TAB, focuscurrentorlast
diff --git a/config/hypr/hyprlock.conf b/config/hypr/hyprlock.conf
new file mode 100644 (file)
index 0000000..1d2b077
--- /dev/null
@@ -0,0 +1,45 @@
+background {
+    monitor =
+    # path = '/home/andy/Bilder/Wallpapers/5120x1440 aerjl345234.webp'   # supports png, jpg, webp (no animations, though)
+    color = rgba(25, 20, 20, 1.0)
+
+    # all these options are taken from hyprland, see https://wiki.hyprland.org/Configuring/Variables/#blur for explanations
+    blur_passes = 3 # 0 disables blurring
+    blur_size = 7
+    noise = 0.0117
+    contrast = 0.8916
+    brightness = 0.8172
+    vibrancy = 0.1696
+    vibrancy_darkness = 0.0
+}
+
+input-field {
+    monitor =
+    size = 300, 50
+    outline_thickness = 3
+    dots_size = 0.33 # Scale of input-field height, 0.2 - 0.8
+    dots_spacing = 0.15 # Scale of dots' absolute size, 0.0 - 1.0
+    dots_center = false
+    dots_rounding = -1 # -1 default circle, -2 follow input-field rounding
+    outer_color = rgb(151515)
+    inner_color = rgb(200, 200, 200)
+    font_color = rgb(10, 10, 10)
+    fade_on_empty = true
+    fade_timeout = 1000 # Milliseconds before fade_on_empty is triggered.
+    placeholder_text = <i>$PROMPT </i> # Text rendered in the input box when it's empty.
+    hide_input = false
+    rounding = -1 # -1 means complete rounding (circle/oval)
+    check_color = rgb(204, 136, 34)
+    fail_color = rgb(204, 34, 34) # if authentication failed, changes outer_color and fail message color
+    fail_text = <i>$FAIL <b>($ATTEMPTS)</b></i> # can be set to empty
+    fail_transition = 300 # transition time in ms between normal outer_color and fail_color
+    capslock_color = -1
+    numlock_color = -1
+    bothlock_color = -1 # when both locks are active. -1 means don't change outer color (same for above)
+    invert_numlock = false # change color if numlock is off
+    swap_font_color = false # see below
+
+    position = 0, -20
+    halign = center
+    valign = center
+}
index 5de4329ed0d85c19fb1708407588329f19376322..486d75e96103fc28da7d7c116984efe3df05b25e 100755 (executable)
@@ -1,15 +1,14 @@
 #!/usr/bin/env sh
-HYPRGAMEMODE=$(hyprctl getoption animations:enabled | sed -n '2p' | awk '{print $2}')
+HYPRGAMEMODE=$(hyprctl getoption animations:enabled | awk 'NR==1{print $2}')
 if [ "$HYPRGAMEMODE" = 1 ] ; then
     hyprctl --batch "\
         keyword animations:enabled 0;\
         keyword decoration:drop_shadow 0;\
-        keyword decoration:blur 0;\
+        keyword decoration:blur:enabled 0;\
         keyword general:gaps_in 0;\
         keyword general:gaps_out 0;\
         keyword general:border_size 1;\
-        keyword decoration:rounding 0; \
-        keyword monitor DP-3,preferred,auto,1,vrr,2"
+        keyword decoration:rounding 0"
     exit
 fi
 hyprctl reload