From add7bad8c0b7fb4d64187714b546a5c7e2a5d91a Mon Sep 17 00:00:00 2001 From: Dennis Schoepf Date: Sun, 23 Nov 2025 23:46:53 +0100 Subject: [PATCH] wip: dnsc-machine setup --- home/linux.nix | 1 + modules/wm/anyrun/default.nix | 40 +++++++++++++++++++++++++++++++ modules/wm/niri/config/config.kdl | 1 + modules/wm/niri/default.nix | 2 -- 4 files changed, 42 insertions(+), 2 deletions(-) create mode 100644 modules/wm/anyrun/default.nix diff --git a/home/linux.nix b/home/linux.nix index 3870829..0092bf2 100644 --- a/home/linux.nix +++ b/home/linux.nix @@ -47,6 +47,7 @@ ../modules/firefox ../modules/wm/swaync ../modules/wm/awww + ../modules/wm/anyrun ../modules/wm/niri ]; diff --git a/modules/wm/anyrun/default.nix b/modules/wm/anyrun/default.nix new file mode 100644 index 0000000..af2560c --- /dev/null +++ b/modules/wm/anyrun/default.nix @@ -0,0 +1,40 @@ +{ config, ... }: + +{ + programs.anyrun = { + enable = true; + config = { + x = { fraction = 0.5; }; + y = { fraction = 0.3; }; + width = { fraction = 0.3; }; + hideIcons = false; + ignoreExclusiveZones = false; + layer = "overlay"; + hidePluginInfo = false; + closeOnClick = true; + showResultsImmediately = false; + maxEntries = null; + + plugins = [ + "${pkgs.anyrun}/lib/libapplications.so" + "${pkgs.anyrun}/lib/libsymbols.so" + "${pkgs.anyrun}/lib/libshell.so" + "${pkgs.anyrun}/lib/libniri_focus.so" + "${pkgs.anyrun}/lib/librink.so" + ]; + }; + + # Inline comments are supported for language injection into + # multi-line strings with Treesitter! (Depends on your editor) + extraCss = /*css */ '' + ''; + + extraConfigFiles."some-plugin.ron".text = '' + Config( + // for any other plugin + // this file will be put in ~/.config/anyrun/some-plugin.ron + // refer to docs of xdg.configFile for available options + ) + ''; + }; +} diff --git a/modules/wm/niri/config/config.kdl b/modules/wm/niri/config/config.kdl index 80fbb2b..6109a55 100644 --- a/modules/wm/niri/config/config.kdl +++ b/modules/wm/niri/config/config.kdl @@ -516,6 +516,7 @@ binds { // Other bindings Mod+Ctrl+Alt+U { spawn-sh "~/.config/awww/bin/random-bg.sh ~/Pictures/Wallpapers/.un"; } Mod+Ctrl+Alt+S { spawn-sh "~/.config/awww/bin/random-bg.sh ~/Pictures/Wallpapers/safe/dark"; } + Mod+S { spawn-sh "swaync-client -t -sw"; } } xwayland-satellite { diff --git a/modules/wm/niri/default.nix b/modules/wm/niri/default.nix index 511d6f0..53b4e63 100644 --- a/modules/wm/niri/default.nix +++ b/modules/wm/niri/default.nix @@ -12,7 +12,5 @@ # WM Utilities (split out if they need additional config) # TODO configure ironbar programs.hyprlock.enable = true; - programs.fuzzel.enable = true; # TODO switch to anyrun - # TODO: Install idle manager }