summaryrefslogtreecommitdiffstats
path: root/lass/5pkgs/knav/default.nix
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2018-08-28 22:53:17 +0200
committermakefu <github@syntax-fehler.de>2018-08-28 22:53:17 +0200
commit9c516e9504003cae2abed8a6e24f0b135ac98c4f (patch)
tree95c81a6f2cb9f47181608428b2234370c243eed9 /lass/5pkgs/knav/default.nix
parentc07f56b772f3ea58d2a4c0f504fe3df381f6a043 (diff)
parent413e0689acd4f6b322f9996950927ebd41d0e58c (diff)
Merge remote-tracking branch 'lass/master'
Diffstat (limited to 'lass/5pkgs/knav/default.nix')
-rw-r--r--lass/5pkgs/knav/default.nix26
1 files changed, 26 insertions, 0 deletions
diff --git a/lass/5pkgs/knav/default.nix b/lass/5pkgs/knav/default.nix
new file mode 100644
index 000000000..30d49a1b3
--- /dev/null
+++ b/lass/5pkgs/knav/default.nix
@@ -0,0 +1,26 @@
+{ pkgs, ... }: let
+
+ keynavrc = pkgs.writeText "keynavrc" ''
+ clear
+ Escape quit
+ q record ~/.keynav_macros
+ shift+at playback
+ u history-back
+ a cut-left
+ s cut-down
+ w cut-up
+ d cut-right
+ shift+a move-left
+ shift+s move-down
+ shift+w move-up
+ shift+d move-right
+ t windowzoom
+ c cursorzoom 300 300
+ e warp
+ 1 click 1
+ 2 click 2
+ 3 click 3
+ '';
+in pkgs.writeScriptBin "knav" ''
+ ${pkgs.keynav}/bin/keynav "loadconfig ${keynavrc}, start"
+''