From c4d9169f2692279379c4b21c1267c5dcae791fd5 Mon Sep 17 00:00:00 2001 From: Martin Fischer Date: Mon, 26 Oct 2026 13:05:44 +0100 Subject: tweak(user/niri): add key binding to insert current date --- nixos/profiles/workstation/graphical.nix | 1 + user/niri/config.kdl | 1 + 2 files changed, 2 insertions(+) diff --git a/nixos/profiles/workstation/graphical.nix b/nixos/profiles/workstation/graphical.nix index c633456..608fc6d 100644 --- a/nixos/profiles/workstation/graphical.nix +++ b/nixos/profiles/workstation/graphical.nix @@ -67,6 +67,7 @@ brightnessctl playerctl wl-clipboard # for wl-copy and wl-paste + wtype grim libnotify # for notify-send diff --git a/user/niri/config.kdl b/user/niri/config.kdl index e6240b5..a6f77fc 100644 --- a/user/niri/config.kdl +++ b/user/niri/config.kdl @@ -355,6 +355,7 @@ binds { Mod+Return hotkey-overlay-title="Open a Terminal" { spawn "foot"; } Mod+D hotkey-overlay-title="Run an Application" { spawn "wmenu-run"; } Super+Alt+L hotkey-overlay-title="Lock the Screen" { spawn "swaylock"; } + Mod+T hotkey-overlay-title="Insert current date" { spawn-sh "wtype $(date -I)"; } // Use spawn-sh to run a shell command. Do this if you need pipes, multiple commands, etc. // Note: the entire command goes as a single argument. It's passed verbatim to `sh -c`. -- cgit v1.3.1