]> Freerunner's - dotfiles.git/commitdiff
hypr: rework config for hyprland 0.45.0
authorAndre Ramnitz <tux.rising@gmail.com>
Sun, 17 Nov 2024 12:30:56 +0000 (13:30 +0100)
committerAndre Ramnitz <tux.rising@gmail.com>
Sun, 17 Nov 2024 12:57:10 +0000 (13:57 +0100)
dot-config/hypr/hyprland.conf
dot-config/hypr/scripts/gammarelay-auto-temp.py
dot-config/hypr/scripts/startup.sh

index f10646d1f633f6d2186bafa653b3060deef092d3..1933be2abe05f5b38fcfc221630b442bf8377f99 100644 (file)
@@ -10,8 +10,8 @@ source=./base16-colors.conf
 debug:disable_logs = true # file logging. defaults to 1 for production
 
 # See https://wiki.hyprland.org/Configuring/Monitors/
-#monitor=DP-3,preferred,auto,1,vrr,2
-monitor=DP-3,preferred,auto,1,vrr,2,bitdepth,8
+# monitor=DP-2,preferred,auto,1.25,vrr,2,bitdepth,8
+monitor=DP-2,preferred,auto,1.066667,vrr,2,bitdepth,8
 
 # unscale XWayland
 xwayland {
@@ -46,10 +46,10 @@ env = SWWW_TRANSITION_STEP,2
 #env = QT_AUTO_SCREEN_SCALE_FACTOR,1
 
 # set cursor
-env = XCURSOR_THEME,Bibata-Original-Amber
-env = XCURSOR_SIZE,32
-env = HYPRCURSOR_THEME,Bibata-Original-Amber
-env = HYPRCURSOR_SIZE,32
+env = XCURSOR_THEME,Bibata_Spirit
+env = XCURSOR_SIZE,40
+# env = HYPRCURSOR_THEME,Bibata_Spirit
+# env = HYPRCURSOR_SIZE,40
 
 # Execute your favorite apps at launch
 exec-once = hyprpm enable hyprbars
@@ -121,6 +121,10 @@ master {
 decoration {
     # See https://wiki.hyprland.org/Configuring/Variables/ for more
     rounding = 8
+       dim_special = 0.3
+       dim_inactive = true
+       dim_strength = 0.2
+       # screen_shader = ~/.config/hypr/shaders/bluefilter.frag
     blur {
         enabled = true
         size = 3
@@ -128,16 +132,17 @@ decoration {
         vibrancy = 0.1696
                ignore_opacity = true
     }
-
-    drop_shadow = true
-    shadow_range = 8
-       rounding = 8
-    shadow_render_power = 2
-    col.shadow = 0xee1a1a1a
-       dim_special = 0.3
-       dim_inactive = true
-       dim_strength = 0.2
-       # screen_shader = ~/.config/hypr/shaders/bluefilter.frag
+    shadow {
+        enabled = true
+        range = 8
+        render_power = 1
+        sharp = false
+        ignore_window = true
+        color = 0x77$base05
+        color_inactive = 0xee$base00
+        offset = 0, 0
+        scale = 1.00
+    }
 }
 
 dwindle {
@@ -146,11 +151,6 @@ dwindle {
     preserve_split = true # you probably want this
 }
 
-master {
-    # See https://wiki.hyprland.org/Configuring/Master-Layout/ for more
-    # new_is_master = true
-}
-
 gestures {
     # See https://wiki.hyprland.org/Configuring/Variables/ for more
     workspace_swipe = false
index ded2bed23c7c9304ffc5daa4380f49cef255742e..9fac7e38945f5a878d989053a787a7659dddbe61 100755 (executable)
@@ -12,9 +12,9 @@ def mk_time(hours, minutes, seconds=0):
 TEMP_DAY = 6500.0
 TEMP_NIGHT = 3800.0
 
-DAWN_TIME = mk_time( 7, 25) # 9:00 (Should be > WINDOW)
-DUSK_TIME = mk_time(17,  10) # 19:00 (Shoulbe be > WINDOW + DAWN_TIME)
-WINDOW =    mk_time( 0, 15) # 15m (The time during which the temperature changes gradually until it reaches the desired value)
+DAWN_TIME = mk_time( 7, 48) # 9:00 (Should be > WINDOW)
+DUSK_TIME = mk_time(16,  45) # 19:00 (Shoulbe be > WINDOW + DAWN_TIME)
+WINDOW =    mk_time( 0, 21) # 15m (The time during which the temperature changes gradually until it reaches the desired value)
 
 temp = None
 
index 52e83f6e09a309c3fd26e1572a192817ff590c44..7379699c2d75e04fae98141f178e5800b918b94e 100755 (executable)
@@ -37,6 +37,9 @@ else
     logger 'polkit-kde already running'
 fi
 
+#------------------------------------------------------ legacy scaling
+test -f ~/.Xresources && xrdb ~/.Xresources
+
 #------------------------------------------------------ waybar and tray apps
 if [[ ! $(pidof pipewire) ]]; then
     gentoo-pipewire-launcher &