From 63d7ffc2fce79a0a6a753f25da465260611c1fd5 Mon Sep 17 00:00:00 2001 From: Sean Kovacs Date: Sat, 27 Dec 2025 08:14:04 -0500 Subject: [PATCH] update niri and keybinds --- home/default.nix | 1 - home/tiling/niri/default.nix | 1 + home/tiling/niri/niri.nix | 66 ++++++++++++++++++++--------------- home/tiling/niri/noctalia.nix | 10 +++--- 4 files changed, 44 insertions(+), 34 deletions(-) diff --git a/home/default.nix b/home/default.nix index 0fbd634..afd66cd 100755 --- a/home/default.nix +++ b/home/default.nix @@ -145,7 +145,6 @@ tmux fastfetch btop - killall wget ripgrep ncdu diff --git a/home/tiling/niri/default.nix b/home/tiling/niri/default.nix index 4d588dd..1442f35 100644 --- a/home/tiling/niri/default.nix +++ b/home/tiling/niri/default.nix @@ -21,6 +21,7 @@ in { libsForQt5.qt5ct catppuccin-qt5ct xwayland-satellite + playerctl ]; home.file = { diff --git a/home/tiling/niri/niri.nix b/home/tiling/niri/niri.nix index 9d65ad7..0e838d2 100644 --- a/home/tiling/niri/niri.nix +++ b/home/tiling/niri/niri.nix @@ -131,9 +131,7 @@ } ]; open-maximized = true; - focus-ring.enable = false; - border.enable = false; - shadow.enable = false; + open-focused = true; } ]; binds = { @@ -194,39 +192,51 @@ }; "XF86MonBrightnessUp" = { - action.spawn = [ - "brightnessctl" - "--class=backlight" - "set" - "+5%" - ]; + action.spawn = ["brightnessctl" "--class=backlight" "set" "+5%"]; allow-when-locked = true; }; + "XF86MonBrightnessDown" = { - action.spawn = [ - "brightnessctl" - "--class=backlight" - "set" - "5%-" - ]; + action.spawn = ["brightnessctl" "--class=backlight" "set" "5%-"]; allow-when-locked = true; }; + "Shift+XF86MonBrightnessUp" = { - action.spawn = [ - "brightnessctl" - "--class=backlight" - "set" - "+1%" - ]; + action.spawn = ["brightnessctl" "--class=backlight" "set" "+1%"]; allow-when-locked = true; }; + "Shift+XF86MonBrightnessDown" = { - action.spawn = [ - "brightnessctl" - "--class=backlight" - "set" - "1%-" - ]; + action.spawn = ["brightnessctl" "--class=backlight" "set" "1%-"]; + allow-when-locked = true; + }; + + "XF86AudioPrev" = { + action.spawn = ["playerctl" "previous"]; + allow-when-locked = true; + }; + + "XF86AudioPlay" = { + action.spawn = ["playerctl" "play-pause"]; + allow-when-locked = true; + }; + + "XF86AudioNext" = { + action.spawn = ["playerctl" "next"]; + allow-when-locked = true; + }; + + "XF86Sleep" = { + action.power-off-monitors = {}; + }; + + "XF86Search" = { + action.spawn = ["noctalia-shell" "ipc" "call" "launcher" "toggle"]; + allow-when-locked = true; + }; + + "XF86LaunchA" = { + action.spawn = ["niri" "msg" "action" "toggle-overview"]; allow-when-locked = true; }; @@ -351,7 +361,7 @@ "Mod+Shift+R".action.switch-preset-window-height = {}; "Mod+Ctrl+R".action.reset-window-height = {}; "Mod+F".action.maximize-column = {}; - "Mod+Shift+F".action.fullscreen-window = {}; + "Mod+Shift+F".action.maximize-window-to-edges = {}; "Mod+Ctrl+F".action.expand-column-to-available-width = {}; diff --git a/home/tiling/niri/noctalia.nix b/home/tiling/niri/noctalia.nix index 204e8e5..35a3581 100644 --- a/home/tiling/niri/noctalia.nix +++ b/home/tiling/niri/noctalia.nix @@ -99,7 +99,7 @@ in { floating = false; marginVertical = 0.25; marginHorizontal = 0.25; - outerCorners = true; + outerCorners = false; exclusive = true; widgets = { left = [ @@ -141,11 +141,11 @@ in { hideWhenIdle = false; id = "MediaMini"; maxWidth = 275; - scrollingMode = "always"; + scrollingMode = "hover"; showAlbumArt = false; - showArtistFirst = true; + showArtistFirst = false; showProgressRing = true; - showVisualizer = true; + showVisualizer = false; useFixedWidth = false; visualizerType = "linear"; } @@ -254,7 +254,7 @@ in { videoSource = "portal"; }; wallpaper = { - enabled = true; + enabled = false; overviewEnabled = false; directory = "/home/sckova/.local/share/wallpaper"; monitorDirectories = [];