aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Fischer <martin@push-f.com>2026-10-26 13:05:44 +0100
committerMartin Fischer <martin@push-f.com>2026-10-26 16:49:21 +0100
commitc4d9169f2692279379c4b21c1267c5dcae791fd5 (patch)
tree0bfc193ada21c22ebb6fb1f02d5a3ec98389247a
parentc97ffde6f23322a4cde141b768d714c52626eb50 (diff)
tweak(user/niri): add key binding to insert current date
-rw-r--r--nixos/profiles/workstation/graphical.nix1
-rw-r--r--user/niri/config.kdl1
2 files changed, 2 insertions, 0 deletions
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`.