Add more Niri hotkeys

This commit is contained in:
Jimbo 2024-12-05 14:40:12 -05:00
parent 032439e4dc
commit 66300cae57
8 changed files with 29 additions and 37 deletions

View file

@ -87,11 +87,10 @@
# Clocks
longClockModule = {
exec = pkgs.writeScript "longClock" ''
time=$(date +'%a %b %d %l:%M:%S%p' | tr -s ' ')
time=$(date +'%a %b %-d %-I:%M:%S%p')
date=$(date "+%Y-%m-%d")
echo "{\"text\":\" $time\",\"tooltip\":\"$date\"}"
'';
on-click = ''wl-copy $(date "+%Y-%m-%d-%H%M%S"); notify-send "Date copied."'';
format = "{}";
return-type = "json";
interval = 1;
@ -100,7 +99,6 @@
shortClockModule = {
exec = "echo ' '$(date +'%l:%M%p' | sed 's/^ //')";
on-click = ''wl-copy $(date "+%Y-%m-%d-%H%M%S"); notify-send "Date copied."'';
interval = 60;
tooltip = false;
};
@ -251,6 +249,7 @@
"bluetooth" = bluetoothModule;
"network" = networkModule // { interface = "enp*"; };
};
display2 = {
name = "bar2";
position = "top";
@ -282,6 +281,7 @@
"custom/vram" = vramModule;
"custom/clock-long" = longClockModule;
};
display3 = {
name = "bar3";
position = "top";
@ -363,6 +363,7 @@
"network" = networkModule;
};
};
style = ''
* {
border: 0;