add showkeys script

This commit is contained in:
lelgenio 2022-11-14 15:27:25 -03:00
parent e9ad15ada6
commit d31a5f0c36
4 changed files with 14 additions and 0 deletions

View file

@ -24,6 +24,7 @@
_diffr = [ diffr ];
kak-pager = [ fish final._diffr ];
kak-man-pager = [ final.kak-pager ];
showkeys = [ ]; # This will not work unless programs.wshowkeys is enabled systemwide
terminal = [ alacritty ];
wpass = [ final.wdmenu fd pass sd wl-clipboard wtype ];
screenshotsh =

10
scripts/showkeys Normal file
View file

@ -0,0 +1,10 @@
#!/bin/sh
pidof wshowkeys && pkill wshowkeys ||
exec wshowkeys \
-a bottom -a right \
-F 'Inter 20' \
-b 202020AA \
-s DD5050 \
-t 1 \
-m 100

View file

@ -9,6 +9,7 @@
wrapperFeatures.gtk = true;
};
services.dbus.enable = true;
programs.wshowkeys.enable = true;
xdg.portal = {
enable = true;
wlr.enable = true;

View file

@ -265,6 +265,7 @@ in {
"${mod}+Ctrl+Return" = "exec thunar";
"${mod}+Shift+s" = "exec grim - | swappy -f -";
"${mod}+Ctrl+v" = "exec wl-paste | tesseract -l por - - | wl-copy";
"${mod}+k" = "exec showkeys";
"${mod}+x" = "kill";
"${mod}+m" = "mode audio";
"${mod}+escape" =
@ -409,6 +410,7 @@ in {
wdmenu
wlauncher
volumesh
showkeys
pamixer
libnotify
xdg-utils