From: Andre Ramnitz Date: Thu, 30 Jul 2026 05:25:34 +0000 (+0200) Subject: hypr: update configs X-Git-Url: https://git.ramnitz.eu/?a=commitdiff_plain;p=dotfiles.git hypr: update configs --- diff --git a/dot-config/hypr/fragments/keybinds.lua b/dot-config/hypr/fragments/keybinds.lua index bf0fd8a..1df7c79 100644 --- a/dot-config/hypr/fragments/keybinds.lua +++ b/dot-config/hypr/fragments/keybinds.lua @@ -31,8 +31,8 @@ hl.bind(mainMod .. " + CTRL + SHIFT + Return", exec("alacritty")) hl.bind(mainMod .. " + SHIFT + Q", hl.dsp.window.close()) hl.bind(mainMod .. " + A", hl.dsp.window.pseudo()) hl.bind(mainMod .. " + B", exec("$HOME/.config/hypr/scripts/browser_focus_or_run.sh")) -hl.bind(mainMod .. " + C", exec("qs -c noctalia-shell ipc call launcher clipboard")) -hl.bind(mainMod .. " + D", exec("qs -c noctalia-shell ipc call launcher toggle")) +hl.bind(mainMod .. " + C", exec("qs -c noctalia ipc call launcher clipboard")) +hl.bind(mainMod .. " + D", exec("qs -c noctalia ipc call launcher toggle")) hl.bind(mainMod .. " + SHIFT + D", exec("killall fuzzel || fuzzel --config=$HOME/.config/fuzzel/fuzzel-centered.ini")) hl.bind(mainMod .. " + E", exec("foot -a lf lf")) hl.bind(mainMod .. " + SHIFT + E", exec("dolphin")) @@ -57,10 +57,10 @@ hl.bind(mainMod .. " + SHIFT + S", hl.dsp.layout("swapsplit")) -- hl.bind(mainMod .. " + SHIFT + S", hl.dsp.layout("colresize -conf")) hl.bind(mainMod .. " + V", hl.dsp.window.float()) -hl.bind(mainMod .. " + W", exec("qs -c noctalia-shell ipc call toast dismiss")) -hl.bind(mainMod .. " + SHIFT + W", exec("qs -c noctalia-shell ipc call bar toggle")) +hl.bind(mainMod .. " + W", exec("qs -c noctalia ipc call toast dismiss")) +hl.bind(mainMod .. " + SHIFT + W", exec("qs -c noctalia ipc call bar toggle")) hl.bind(mainMod .. " + Z", hl.dsp.window.center()) -hl.bind(mainMod .. " + grave", exec("qs -c noctalia-shell ipc call launcher emoji")) +hl.bind(mainMod .. " + grave", exec("qs -c noctalia ipc call launcher emoji")) -- sureMod keys hl.bind(sureMod .. " + M", hl.dsp.exit()) @@ -71,7 +71,7 @@ hl.bind(sureMod .. " + L", exec("~/.config/hypr/scripts/powermenu.sh")) -- misc keys hl.bind(mainMod .. " + Print", exec("flatpak run be.alexandervanhee.gradia --screenshot=INTERACTIVE")) hl.bind("SHIFT + Print", exec("flatpak run be.alexandervanhee.gradia --screenshot=FULL")) -hl.bind("Alt_L + Alt_R + L", exec("qs -c noctalia-shell ipc call lockScreen lock")) +hl.bind("Alt_L + Alt_R + L", exec("qs -c noctalia ipc call lockScreen lock")) -- media keys hl.bind("XF86AudioRaiseVolume", exec("/home/andy/.local/bin/wp+"), { locked = true }) diff --git a/dot-config/hypr/fragments/permissions.lua b/dot-config/hypr/fragments/permissions.lua index 70a477b..df17529 100644 --- a/dot-config/hypr/fragments/permissions.lua +++ b/dot-config/hypr/fragments/permissions.lua @@ -33,6 +33,12 @@ hl.permission({ mode = "allow", }) +hl.permission({ + binary = "virtualboxvm.*", + type = "cursorpos", + mode = "allow", +}) + hl.permission({ binary = "zsa-technology-labs-moonlander.*", type = "cursorpos", diff --git a/dot-config/hypr/fragments/windowrules.lua b/dot-config/hypr/fragments/windowrules.lua index 5ac87f6..47309c1 100644 --- a/dot-config/hypr/fragments/windowrules.lua +++ b/dot-config/hypr/fragments/windowrules.lua @@ -30,9 +30,17 @@ hl.window_rule({ name = "floating_enable", float = true, + match = { + class = "^((VirtualBox|qtpass|org.ijhack.qtpass|org.kde|smplayer|mpv|ark|lxqt|vlc|pcmanfm|kdesystemsettings|gimp|openrgb|nwg-look|alsa-scarlett-gui|lstopo|org.corectrl.CoreCtrl|LACT|lutris|blueman-manager|org.freedesktop.impl.portal|be.alexandervanhee.gradia|io.missioncenter.MissionCenter|io.github.ilya_zlobintsev.LACT|ncmpcpp).*)$", + }, +}) + +hl.window_rule({ + name = "floating_enable_with_hint", + float = true, size = "1280 800", match = { - class = "^((qtpass|org.ijhack.qtpass|org.kde|smplayer|mpv|ark|lxqt|vlc|pcmanfm|qalculate|kdesystemsettings|org.keepassxc|KeePassXC|gimp|clipse|openrgb|nwg-look|alsa-scarlett-gui|lstopo|org.corectrl.CoreCtrl|LACT|lutris|blueman-manager|org.freedesktop.impl.portal|be.alexandervanhee.gradia|io.missioncenter.MissionCenter|io.github.ilya_zlobintsev.LACT|ncmpcpp).*)$", + class = "^((qalculate|clipse).*)$", }, }) diff --git a/dot-config/hypr/fragments/workspacerules.lua b/dot-config/hypr/fragments/workspacerules.lua index a65299a..cef0c22 100644 --- a/dot-config/hypr/fragments/workspacerules.lua +++ b/dot-config/hypr/fragments/workspacerules.lua @@ -8,7 +8,7 @@ hl.workspace_rule({ workspace = "1", layout = dwindle }) hl.workspace_rule({ workspace = "2", layout = dwindle }) hl.workspace_rule({ workspace = "3", layout = float }) -hl.workspace_rule({ workspace = "4", layout = float }) +hl.workspace_rule({ workspace = "4", layout = float, gaps_out=8, gaps_in=4 }) hl.workspace_rule({ workspace = "5", layout = dwindle }) hl.workspace_rule({ workspace = "6", layout = float }) hl.workspace_rule({ workspace = "7", layout = scrolling }) diff --git a/dot-config/hypr/hyprland.conf b/dot-config/hypr/hyprland.conf new file mode 100644 index 0000000..da0a981 --- /dev/null +++ b/dot-config/hypr/hyprland.conf @@ -0,0 +1,3 @@ + +source = /home/andy/.config/hypr/noctalia/noctalia-colors.conf + diff --git a/dot-config/hypr/hyprland.lua b/dot-config/hypr/hyprland.lua index 274bfed..cea9ecd 100644 --- a/dot-config/hypr/hyprland.lua +++ b/dot-config/hypr/hyprland.lua @@ -48,7 +48,7 @@ hl.on("hyprland.start", function () hl.exec_cmd("/usr/libexec/pam_kwallet_init") hl.exec_cmd("gmenudbusmenuproxy") hl.exec_cmd("env XDG_MENU_PREFIX=plasma- kbuildsycoca6 --noincremental") - hl.exec_cmd("openrc -U hyprland") + hl.exec_cmd("openrc -U desktop") hl.exec_cmd("~/.local/bin/run_after_noctalia.sh") -- hl.exec_cmd("hyprctl plugin load /usr/lib/hyprland-plugins/dynamic-cursors.so") -- hl.exec_cmd("hyprctl plugin load /usr/lib/hyprland-plugins/hyprbars.so") @@ -133,6 +133,7 @@ hl.config({ size = 3, passes = 1, vibrancy = 0.1696, + noise = 0.0696, }, }, }) @@ -158,6 +159,7 @@ hl.config({ -- See https://wiki.hypr.land/Configuring/Layouts/Dwindle-Layout/ for more hl.config({ dwindle = { + force_split = 2, preserve_split = true, -- You probably want this }, }) @@ -237,6 +239,8 @@ hl.config({ kb_rules = "", follow_mouse = 1, + float_switch_override_focus = 0, + follow_mouse_shrink = 1, sensitivity = 0, -- -1.0 - 1.0, 0 means no modification. diff --git a/dot-config/hypr/hyprtoolkit.conf b/dot-config/hypr/hyprtoolkit.conf index 2a096af..294f5a9 100644 --- a/dot-config/hypr/hyprtoolkit.conf +++ b/dot-config/hypr/hyprtoolkit.conf @@ -1,7 +1,7 @@ -background = rgba(0c0c0cff) -base = rgba(0c0c0cff) -text = rgba(ffffffff) -alternate_base = rgba(1c1c1cff) -bright_text = rgba(000000ff) -accent = rgba(ffc799ff) -accent_secondary = rgba(99ffe4ff) \ No newline at end of file +background = rgba(1f1f28ff) +base = rgba(1f1f28ff) +text = rgba(c8c093ff) +alternate_base = rgba(2a2a37ff) +bright_text = rgba(1f1f28ff) +accent = rgba(76946aff) +accent_secondary = rgba(c0a36eff) \ No newline at end of file diff --git a/dot-config/hypr/scripts/gamemode.sh b/dot-config/hypr/scripts/gamemode.sh index c520d1f..993b146 100755 --- a/dot-config/hypr/scripts/gamemode.sh +++ b/dot-config/hypr/scripts/gamemode.sh @@ -32,19 +32,19 @@ if [ "$COMFY" = true ] ; then input = { follow_mouse = 0, - float_switch_override_focus = 2, + float_switch_override_focus = 0, }, })' - qs -c noctalia-shell ipc call powerProfile set Performance - qs -c noctalia-shell ipc call powerProfile enableNoctaliaPerformance - qs -c noctalia-shell ipc call nightLight disable + qs -c noctalia ipc call powerProfile set Performance + qs -c noctalia ipc call powerProfile enableNoctaliaPerformance + qs -c noctalia ipc call nightLight disable lact cli profile set UV_gamemode echo "on" > "$HOME/.cache/hyprgamemode" exit fi -qs -c noctalia-shell ipc call powerProfile set Balanced -qs -c noctalia-shell ipc call powerProfile disableNoctaliaPerformance -qs -c noctalia-shell ipc call nightLight enable +qs -c noctalia ipc call powerProfile set Balanced +qs -c noctalia ipc call powerProfile disableNoctaliaPerformance +qs -c noctalia ipc call nightLight enable lact cli profile set UV hyprctl reload; echo "" > "$HOME/.cache/hyprgamemode"