From fdda078fb4565db8159c889df82ce736104a308f Mon Sep 17 00:00:00 2001 From: Nate Anderson Date: Mon, 23 Mar 2026 00:38:55 -0600 Subject: [PATCH] Add hyprvoice binds to all niri configs, added frame12 changes --- hosts/frame12/default.nix | 1 + hosts/frame12/linked-dotfiles/niri/config.kdl | 3 +++ hosts/frame12/modules/home-manager/home.nix | 5 +++++ hosts/jaci/linked-dotfiles/niri/config.kdl | 5 ++++- hosts/nate-work/linked-dotfiles/niri/config.kdl | 2 +- hosts/nate/linked-dotfiles/niri/config.kdl | 3 +++ shared/modules/wm/niri.nix | 2 +- 7 files changed, 18 insertions(+), 3 deletions(-) diff --git a/hosts/frame12/default.nix b/hosts/frame12/default.nix index eb765b1..2e6f732 100644 --- a/hosts/frame12/default.nix +++ b/hosts/frame12/default.nix @@ -81,6 +81,7 @@ in enable = true; useNonFree = true; user = deskCfg.userName; + installGaming = true; systemPackages = with pkgs; [ libreoffice rpi-imager diff --git a/hosts/frame12/linked-dotfiles/niri/config.kdl b/hosts/frame12/linked-dotfiles/niri/config.kdl index ea90786..4aa6122 100644 --- a/hosts/frame12/linked-dotfiles/niri/config.kdl +++ b/hosts/frame12/linked-dotfiles/niri/config.kdl @@ -422,6 +422,9 @@ binds { Mod+Ctrl+Q { quit; } Mod+Shift+Ctrl+P { power-off-monitors; } + // Dictation + Mod+grave { spawn "hyprvoice" "toggle"; } + // Lock screen (via Noctalia) Mod+L { spawn "noctalia-shell" "ipc" "call" "lockScreen" "lock"; } diff --git a/hosts/frame12/modules/home-manager/home.nix b/hosts/frame12/modules/home-manager/home.nix index 71d6603..d74fe40 100644 --- a/hosts/frame12/modules/home-manager/home.nix +++ b/hosts/frame12/modules/home-manager/home.nix @@ -33,6 +33,11 @@ in yt-audio() { nix-shell -p yt-dlp --run "yt-dlp -x $1 --audio-format mp3" } + + new-post() { + local slug="''${1:+"-$1"}" + hugo new "posts/$(date +%y-%m-%d)''${slug}" + } ''; # Additional shell aliases beyond base programs.zsh.shellAliases = { diff --git a/hosts/jaci/linked-dotfiles/niri/config.kdl b/hosts/jaci/linked-dotfiles/niri/config.kdl index b91bd49..26e8121 100644 --- a/hosts/jaci/linked-dotfiles/niri/config.kdl +++ b/hosts/jaci/linked-dotfiles/niri/config.kdl @@ -375,7 +375,10 @@ binds { Mod+Shift+Q { spawn "noctalia-shell" "ipc" "call" "sessionMenu" "toggle"; } Mod+Ctrl+Q { quit; } Mod+Shift+Ctrl+P { power-off-monitors; } - + + // Dictation + Mod+grave { spawn "hyprvoice" "toggle"; } + } switch-events { diff --git a/hosts/nate-work/linked-dotfiles/niri/config.kdl b/hosts/nate-work/linked-dotfiles/niri/config.kdl index 8b168f3..b8bc936 100644 --- a/hosts/nate-work/linked-dotfiles/niri/config.kdl +++ b/hosts/nate-work/linked-dotfiles/niri/config.kdl @@ -444,7 +444,7 @@ binds { // // Dictation - Mod+semicolon { spawn "hyprvoice" "toggle"; } + Mod+grave { spawn "hyprvoice" "toggle"; } // Notifications - Noctalia notification panel Mod+Shift+C { spawn "noctalia-shell" "ipc" "call" "notificationHistory" "toggle"; } diff --git a/hosts/nate/linked-dotfiles/niri/config.kdl b/hosts/nate/linked-dotfiles/niri/config.kdl index 3d97b86..212d61c 100644 --- a/hosts/nate/linked-dotfiles/niri/config.kdl +++ b/hosts/nate/linked-dotfiles/niri/config.kdl @@ -417,6 +417,9 @@ binds { Mod+Ctrl+Q { quit; } Mod+Shift+Ctrl+P { power-off-monitors; } + // Dictation + Mod+grave { spawn "hyprvoice" "toggle"; } + // Lock screen (via Noctalia) Mod+L { spawn "noctalia-shell" "ipc" "call" "lockScreen" "lock"; } diff --git a/shared/modules/wm/niri.nix b/shared/modules/wm/niri.nix index ec80a2b..d49575e 100644 --- a/shared/modules/wm/niri.nix +++ b/shared/modules/wm/niri.nix @@ -87,7 +87,7 @@ in }; programs.gamemode = { - enable = true; + enable = lib.mkDefault cfg.installGaming; settings = { general = { reaper_freq = 5;