From: Andre Ramnitz Date: Sun, 17 Nov 2024 12:30:56 +0000 (+0100) Subject: hypr: rework config for hyprland 0.45.0 X-Git-Url: https://git.ramnitz.eu/?a=commitdiff_plain;h=24a089e75399a28349a4e209f04bee337d919008;p=dotfiles.git hypr: rework config for hyprland 0.45.0 --- diff --git a/dot-config/hypr/hyprland.conf b/dot-config/hypr/hyprland.conf index f10646d1..1933be2a 100644 --- a/dot-config/hypr/hyprland.conf +++ b/dot-config/hypr/hyprland.conf @@ -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 diff --git a/dot-config/hypr/scripts/gammarelay-auto-temp.py b/dot-config/hypr/scripts/gammarelay-auto-temp.py index ded2bed2..9fac7e38 100755 --- a/dot-config/hypr/scripts/gammarelay-auto-temp.py +++ b/dot-config/hypr/scripts/gammarelay-auto-temp.py @@ -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 diff --git a/dot-config/hypr/scripts/startup.sh b/dot-config/hypr/scripts/startup.sh index 52e83f6e..7379699c 100755 --- a/dot-config/hypr/scripts/startup.sh +++ b/dot-config/hypr/scripts/startup.sh @@ -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 &