From 4099d5163a4956d84d61c95c4bd31ccf3e010ed0 Mon Sep 17 00:00:00 2001 From: Andre Ramnitz Date: Tue, 8 Sep 2026 17:44:04 +0200 Subject: [PATCH] hypr: update config for noctalia 5.x --- dot-config/hypr/fragments/keybinds.lua | 22 +++++++++++----------- dot-config/hypr/hyprland.lua | 6 ++++-- dot-config/hypr/hyprtoolkit.conf | 14 +++++++------- dot-config/hypr/scripts/gamemode.sh | 21 ++++++++++++--------- 4 files changed, 34 insertions(+), 29 deletions(-) diff --git a/dot-config/hypr/fragments/keybinds.lua b/dot-config/hypr/fragments/keybinds.lua index cdfcf47..4c6625f 100644 --- a/dot-config/hypr/fragments/keybinds.lua +++ b/dot-config/hypr/fragments/keybinds.lua @@ -31,9 +31,9 @@ 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 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 .. " + C", exec("noctalia msg panel-toggle clipboard")) +hl.bind(mainMod .. " + D", exec("noctalia msg panel-toggle launcher")) +-- 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")) @@ -51,27 +51,27 @@ hl.bind(mainMod .. " + SHIFT + I", hl.dsp.window.move({ workspace = "special:ove hl.bind(mainMod .. " + P", exec("foot -w 640x400 -a popup -H hyprpicker")) hl.bind(mainMod .. " + SHIFT + P", hl.dsp.window.pin()) -hl.bind(mainMod .. " + S", hl.dsp.layout("togglesplit")) -hl.bind(mainMod .. " + SHIFT + S", hl.dsp.layout("swapsplit")) +hl.bind(mainMod .. " + S", hl.dsp.window.float()) -- hl.bind(mainMod .. " + S", hl.dsp.layout("colresize +conf")) -- 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 ipc call toast dismiss")) -hl.bind(mainMod .. " + SHIFT + W", exec("qs -c noctalia ipc call bar toggle")) +hl.bind(mainMod .. " + V", hl.dsp.layout("togglesplit")) +hl.bind(mainMod .. " + SHIFT + V", hl.dsp.layout("swapsplit")) +hl.bind(mainMod .. " + W", exec("noctalia msg bar-toggle")) +hl.bind(mainMod .. " + SHIFT + W", exec("noctalia msg panel-toggle wallpaper")) hl.bind(mainMod .. " + Z", hl.dsp.window.center()) -hl.bind(mainMod .. " + grave", exec("qs -c noctalia ipc call launcher emoji")) +hl.bind(mainMod .. " + grave", exec("noctalia msg panel-toggle launcher /emoji")) -- sureMod keys hl.bind(sureMod .. " + M", hl.dsp.exit()) hl.bind(sureMod .. " + Return", exec("konsole")) hl.bind(sureMod .. " + G", exec("~/.config/hypr/scripts/gamemode.sh")) -hl.bind(sureMod .. " + L", exec("~/.config/hypr/scripts/powermenu.sh")) +hl.bind(sureMod .. " + L", exec("noctalia msg panel-toggle session")) -- 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 ipc call lockScreen lock")) +hl.bind(mainMod .. " + Tab", exec("noctalia msg window-switcher")) -- media keys hl.bind("XF86AudioRaiseVolume", exec("/home/andy/.local/bin/wp+"), { locked = true }) diff --git a/dot-config/hypr/hyprland.lua b/dot-config/hypr/hyprland.lua index 1f3a161..9cdf35d 100644 --- a/dot-config/hypr/hyprland.lua +++ b/dot-config/hypr/hyprland.lua @@ -42,7 +42,8 @@ hl.on("hyprland.start", function () hl.exec_cmd("gmenudbusmenuproxy") hl.exec_cmd("env XDG_MENU_PREFIX=plasma- kbuildsycoca6 --noincremental") hl.exec_cmd("openrc -U desktop") - hl.exec_cmd("~/.local/bin/run_after_noctalia.sh") + -- hl.exec_cmd("~/.local/bin/run_after_noctalia.sh") + hl.exec_cmd("/usr/bin/noctalia") -- hl.exec_cmd("hyprctl plugin load /usr/lib/hyprland-plugins/dynamic-cursors.so") end) @@ -247,8 +248,9 @@ hl.config({ kb_rules = "", follow_mouse = 1, - float_switch_override_focus = 0, + float_switch_override_focus = 1, follow_mouse_shrink = 1, + follow_mouse_threshold = 10, 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 294f5a9..33650f0 100644 --- a/dot-config/hypr/hyprtoolkit.conf +++ b/dot-config/hypr/hyprtoolkit.conf @@ -1,7 +1,7 @@ -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 +background = rgba(1c1822ff) +base = rgba(1c1822ff) +text = rgba(e9e4f0ff) +alternate_base = rgba(262130ff) +bright_text = rgba(f3edf7ff) +accent = rgba(c7a1d8ff) +accent_secondary = rgba(a984c4ff) \ No newline at end of file diff --git a/dot-config/hypr/scripts/gamemode.sh b/dot-config/hypr/scripts/gamemode.sh index 993b146..5f16c8d 100755 --- a/dot-config/hypr/scripts/gamemode.sh +++ b/dot-config/hypr/scripts/gamemode.sh @@ -3,7 +3,8 @@ COMFY=$(hyprctl getoption animations:enabled | awk 'NR==1{print $2}') if [ "$COMFY" = true ] ; then hyprctl eval 'hl.config({ general = { - gaps_out = 0, + gaps_out = 2, + gaps_in = 4, border_size = 1, }, @@ -35,17 +36,19 @@ if [ "$COMFY" = true ] ; then float_switch_override_focus = 0, }, })' - qs -c noctalia ipc call powerProfile set Performance - qs -c noctalia ipc call powerProfile enableNoctaliaPerformance - qs -c noctalia ipc call nightLight disable + noctalia msg power-set Performance + noctalia msg wallpaper-set color:\#333333 + noctalia msg nightlight-disable + noctalia msg osd-disable lact cli profile set UV_gamemode echo "on" > "$HOME/.cache/hyprgamemode" exit fi -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; + noctalia msg power-set balanced + noctalia msg wallpaper-random + noctalia msg nightlight-enable + noctalia msg osd-enable + lact cli profile set UV + hyprctl reload; echo "" > "$HOME/.cache/hyprgamemode" -- 2.55.0