From: Andre Ramnitz Date: Mon, 3 Feb 2025 05:27:09 +0000 (+0100) Subject: hypr: many tweaks in different locations X-Git-Url: https://git.ramnitz.eu/?a=commitdiff_plain;h=708e7999d0c1b95e063ec5fa20e4356ba0b0d516;p=dotfiles.git hypr: many tweaks in different locations --- diff --git a/dot-config/hypr/fragments/animations.conf b/dot-config/hypr/fragments/animations.conf index 35e98f83..648590f7 100644 --- a/dot-config/hypr/fragments/animations.conf +++ b/dot-config/hypr/fragments/animations.conf @@ -4,7 +4,7 @@ animations { bezier = myBezier, 0.05, 0.9, 0.1, 1.00 bezier = overshoot, 0.05, 0.9, 0.2, 1.00 bezier = easeOutQuad, 0.5, 1, 0.89, 1 - animation = windows, 1, 3, easeOutQuad + animation = windows, 1, 2, easeOutQuad animation = borderangle, 1, 5, default animation = fade, 1, 5, default animation = fadeShadow, 1, 1, default @@ -14,8 +14,8 @@ animations { bezier = winIn, 0.1, 1.1, 0.1, 1.1 bezier = winOut, 0.3, -0.3, 0, 1 bezier = liner, 1, 1, 1, 1 - animation = windowsIn, 1, 6, overshoot, slide - animation = windowsOut, 1, 5, winOut, slide + animation = windowsIn, 1, 2, overshoot, slide + animation = windowsOut, 1, 2, winOut, slide animation = border, 1, 1, liner } diff --git a/dot-config/hypr/fragments/keybinds.conf b/dot-config/hypr/fragments/keybinds.conf index 90add6ff..b5230a20 100644 --- a/dot-config/hypr/fragments/keybinds.conf +++ b/dot-config/hypr/fragments/keybinds.conf @@ -5,12 +5,12 @@ $mainmod = SUPER # mainmod shortcuts # ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── -bind = $mainmod, Return, exec, footclient +bind = $mainmod, Return, exec, foot bind = $mainmod Shift, Q, killactive, -bind = $mainmod Shift, Return, exec, footclient -w 1280x800 -a popup -bind = $mainmod, P, exec, footclient -w 640x400 -a popup -H hyprpicker #color Pipette +bind = $mainmod Shift, Return, exec, foot -w 1280x800 -a popup +bind = $mainmod, P, exec, foot -w 640x400 -a popup -H hyprpicker #color Pipette bind = $mainmod, D, exec, dolphin -bind = $mainmod, E, exec, footclient -a lf lfrun +bind = $mainmod, E, exec, foot -a lf lfrun bind = $mainmod, F, fullscreen,1 bind = $mainmod Shift, F, fullscreen,0 bind = $mainmod Shift, V, exec, killall fuzzel || cliphist list | fuzzel -d --config="$HOME"/.config/fuzzel/fuzzel-centered.ini | cliphist decode | wl-copy @@ -94,6 +94,16 @@ bind = $mainmod SHIFT CTRL, L, movewindoworgroup, r bind = $mainmod SHIFT CTRL, K, movewindoworgroup, u bind = $mainmod SHIFT CTRL, J, movewindoworgroup, d +# move without affecting groups +bind = $mainmod ALT, left, layoutmsg, preselect l +bind = $mainmod ALT, right, layoutmsg, preselect r +bind = $mainmod ALT, up, layoutmsg, preselect u +bind = $mainmod ALT, down, layoutmsg, preselect d +bind = $mainmod ALT, H, layoutmsg, preselect l +bind = $mainmod ALT, L, layoutmsg, preselect r +bind = $mainmod ALT, K, layoutmsg, preselect u +bind = $mainmod ALT, J, layoutmsg, preselect d + # move through group windows bind = $mainmod, O, changegroupactive, f bind = $mainmod, U, changegroupactive, b diff --git a/dot-config/hypr/fragments/windowrules.conf b/dot-config/hypr/fragments/windowrules.conf index b94188c7..6f33ef11 100644 --- a/dot-config/hypr/fragments/windowrules.conf +++ b/dot-config/hypr/fragments/windowrules.conf @@ -26,6 +26,8 @@ windowrulev2 = plugin:hyprbars:nobar, ^floating:0 windowrule = float, ^(org.kde.*)$ windowrule = float, ^(kdesystemsettings.*)$ windowrulev2 = minsize 1 1, stayfocused, float, class: ^(com.nextcloud.desktopclient.nextcloud)$ +windowrulev2 = stayfocused, class: ^(com.nextcloud.desktopclient.nextcloud)$ +windowrulev2 = float, class: ^(com.nextcloud.desktopclient.nextcloud)$ windowrulev2 = float, size 1560 1000, pin, workspace special:overlay, class:^(org.keepassxc.KeePassXC)$ windowrule = float, ^(ark.*)$ windowrule = float, ^(lxqt-.*)$ @@ -38,7 +40,7 @@ windowrulev2 = float, title:^((Über|About).*)$ windowrulev2 = stayfocused, title:^((Über|About).*)$ # handle browsers -windowrulev2 = float, class:^(firefox.*)$ +# windowrulev2 = float, class:^(firefox.*)$ windowrulev2 = tag +neverdim, class:^(firefox.*)$ windowrulev2 = maxsize 2543 1389 lock, class:^(org.qutebrowser.*)$ windowrulev2 = minsize 1920 1200 lock, class:^(org.qutebrowser.*)$ diff --git a/dot-config/hypr/fragments/workspacerules.conf b/dot-config/hypr/fragments/workspacerules.conf index 5f9c8a58..814a8dd5 100644 --- a/dot-config/hypr/fragments/workspacerules.conf +++ b/dot-config/hypr/fragments/workspacerules.conf @@ -1,9 +1,12 @@ # workspace rules -workspace = 1, on-created-empty: ~/.config/hypr/scripts/checknetandbrowse -workspace = 2, gapsout:80 -workspace = 2, gapsin:4 -workspace = 2, layoutopt:orientation:left -workspace = 2, mfact = .50 -workspace = 4, on-created-empty:footclient -a ncmpcpp ncmpcpp -workspace = 4, gapsout:80 - +# workspace = 1, monitor:DP-1, default:true, on-created-empty: ~/.config/hypr/scripts/checknetandbrowse +workspace = 1, monitor:DP-1, default:true +workspace = 2, monitor:DP-2 +workspace = 3, monitor:DP-1 +workspace = 4, monitor:DP-2 +workspace = 5, monitor:DP-1 +workspace = 6, monitor:DP-2 +workspace = 7, monitor:DP-1 +workspace = 8, monitor:DP-2 +workspace = 9, monitor:DP-1 +workspace = 0, monitor:DP-2 diff --git a/dot-config/hypr/hyprland.conf b/dot-config/hypr/hyprland.conf index a460cb71..e922f12b 100644 --- a/dot-config/hypr/hyprland.conf +++ b/dot-config/hypr/hyprland.conf @@ -1,4 +1,4 @@ -# kak: filetype=sh +# kak: filetype=ini # ░█░█░█░█░█▀█░█▀▄░█░░░█▀█░█▀█░█▀▄░░░█▀▀░█▀█░█▀█░█▀▀░▀█▀░█▀▀ # ░█▀█░░█░░█▀▀░█▀▄░█░░░█▀█░█░█░█░█░░░█░░░█░█░█░█░█▀▀░░█░░█░█ # ░▀░▀░░▀░░▀░░░▀░▀░▀▀▀░▀░▀░▀░▀░▀▀░░░░▀▀▀░▀▀▀░▀░▀░▀░░░▀▀▀░▀▀▀i @@ -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-2,preferred,auto,1.25,vrr,2,bitdepth,8 -monitor=DP-2,preferred,auto,1.0,vrr,2,bitdepth,8 +monitor=DP-1,preferred,0x0,1,vrr,2 +monitor=DP-2,preferred,auto-right,1,vrr,2 # unscale XWayland xwayland { @@ -53,11 +53,9 @@ env = XCURSOR_SIZE,40 # Execute your favorite apps at launch exec-once = ~/.config/hypr/scripts/startup.sh -# exec-once = hypridle -exec-once = foot -s +exec-once = hypridle exec-once = hyprpm enable hyprbars exec-shutdown = pkill -f '/usr/lib/python-exec/python3.12/python /home/andy/.config/hypr/scripts/gammarelay-auto-temp.py' -# exec = python ~/.config/hypr/scripts/macos_like_accel.py razer-razer-basilisk-v3 # Source a file (multi-file configs) # source = ~/.config/hypr/myColors.conf @@ -98,24 +96,31 @@ general { # Please see https://wiki.hyprland.org/Configuring/Tearing/ before you turn this on allow_tearing = true + + snap { + enabled = true + window_gap = 10 + monitor_gap = 0 + border_overlap = 0 + } } dwindle { force_split = 2 smart_split = false - split_width_multiplier = 1.0 + split_width_multiplier = 2.0 } master { # See https://wiki.hyprland.org/Configuring/Master-Layout/ for more new_status = slave - always_center_master = true allow_small_split = true special_scale_factor = .80 mfact = .45 orientation = center + # slave_count_for_center_master = 0 inherit_fullscreen = false - always_center_master = false + # center_master_slaves_on_right = false } decoration { @@ -127,19 +132,22 @@ decoration { # screen_shader = ~/.config/hypr/shaders/bluefilter.frag blur { enabled = true - size = 3 - passes = 2 + size = 8 + passes = 1 + noise = 0.0117 + brightness = 0.8172 + contrast = 0.8916 vibrancy = 0.1696 ignore_opacity = true } shadow { enabled = true range = 8 - render_power = 1 + render_power = 2 sharp = false ignore_window = true - color = 0x77$base0C - color_inactive = 0xee$base00 + color = 0xcc$base00 + color_inactive = 0x99$base00 offset = 0, 0 scale = 1.00 } @@ -182,20 +190,24 @@ group { # col.border_locked_inactive = 0x44775500 merge_groups_on_drag = 0 insert_after_current = 0 - col.border_active = 0xEE$base0A - col.border_inactive = 0xEE$base04 - col.border_locked_active = 0xEE$base08 - col.border_locked_inactive = 0xEE$base0A + col.border_locked_active = 0xEE$base0A + col.border_locked_inactive = 0xEE$base04 + col.border_active = 0xEE$base08 + col.border_inactive = 0xEE$base02 groupbar { - enabled = 0 - height = 22 + enabled = 1 + height = 20 + priority = 3 font_family = ZedMono NFP - font_size = 12 - text_color = 0xff$base00 - gradients = false - scrolling = false - col.active = 0xff$base0D - col.inactive = 0xff$base04 + font_size = 13 + text_color = 0xff$base00 + stacked = false + gradients = true + scrolling = false + col.locked_active = 0xEE$base0A + col.locked_inactive = 0xEE$base0F + col.active = 0xEE$base08 + col.inactive = 0xEE$base02 } } diff --git a/dot-config/hypr/scripts/startup.sh b/dot-config/hypr/scripts/startup.sh index b7718dcc..40dfdeed 100755 --- a/dot-config/hypr/scripts/startup.sh +++ b/dot-config/hypr/scripts/startup.sh @@ -67,7 +67,7 @@ pidof corectrl && pkill corectrl || corectrl --minimize-systray > /dev/null 2>&1 ! pidof swww-daemon && nohup /usr/bin/swww-daemon > /dev/null 2>&1 sleep 0.5 && ~/.local/bin/rndwallpaper swww -pidof wl-paste && pkill wl-paste +pidof wl-paste && pkill wl-paste || true wl-paste --type text --watch cliphist store & wl-paste --type image --watch cliphist store &