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-30 18:02:24 +0100
commit7dc9a00db356fda7ab7ee8ef528f3737b5ea1f0a (patch)
tree87b9288bbd30efb7c0543a3d2b4e0722f2a5aab5
parent45d2cf9dfb938ddbb1a8b8e1d497d0377af05314 (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 005546b..5be9baa 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`.