diff options
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/default.nix | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/scripts/default.nix b/scripts/default.nix index 72d0235..1c57566 100644 --- a/scripts/default.nix +++ b/scripts/default.nix | |||
@@ -60,19 +60,19 @@ let | |||
60 | fi | 60 | fi |
61 | ''; | 61 | ''; |
62 | 62 | ||
63 | touchscreen = "ELAN9008:00 04F3:2ED6"; | 63 | touchscreen = 21; |
64 | stylus = "ELAN9008:00 04F3:2ED6 Stylus Pen (0)"; | 64 | stylus = 15; |
65 | portait-transform = builtins.toString [ 0 (-1) 1 1 0 0 0 0 1 ]; | 65 | portait-transform = builtins.toString [ 0 (-1) 1 1 0 0 0 0 1 ]; |
66 | landscape-transform = builtins.toString [ 0 0 0 0 0 0 0 0 0 ]; | 66 | landscape-transform = builtins.toString [ 0 0 0 0 0 0 0 0 0 ]; |
67 | portrait = pkgs.writeScriptBin "portrait" '' | 67 | portrait = pkgs.writeScriptBin "portrait" '' |
68 | ${pkgs.xorg.xrandr}/bin/xrandr -o left | 68 | ${pkgs.xorg.xrandr}/bin/xrandr -o left |
69 | ${pkgs.xorg.xinput}/bin/xinput set-prop "${touchscreen}" --type=float "Coordinate Transformation Matrix" ${portait-transform} | 69 | ${pkgs.xorg.xinput}/bin/xinput set-prop ${builtins.toString touchscreen} --type=float "Coordinate Transformation Matrix" ${portait-transform} |
70 | ${pkgs.xorg.xinput}/bin/xinput set-prop "${stylus}" --type=float "Coordinate Transformation Matrix" ${portait-transform} | 70 | ${pkgs.xorg.xinput}/bin/xinput set-prop ${builtins.toString stylus} --type=float "Coordinate Transformation Matrix" ${portait-transform} |
71 | ''; | 71 | ''; |
72 | landscape = pkgs.writeScriptBin "landscape" '' | 72 | landscape = pkgs.writeScriptBin "landscape" '' |
73 | ${pkgs.xorg.xrandr}/bin/xrandr -o normal | 73 | ${pkgs.xorg.xrandr}/bin/xrandr -o normal |
74 | ${pkgs.xorg.xinput}/bin/xinput set-prop "${touchscreen}" --type=float "Coordinate Transformation Matrix" ${landscape-transform} | 74 | ${pkgs.xorg.xinput}/bin/xinput set-prop ${builtins.toString touchscreen} --type=float "Coordinate Transformation Matrix" ${landscape-transform} |
75 | ${pkgs.xorg.xinput}/bin/xinput set-prop "${stylus}" --type=float "Coordinate Transformation Matrix" ${landscape-transform} | 75 | ${pkgs.xorg.xinput}/bin/xinput set-prop ${builtins.toString stylus} --type=float "Coordinate Transformation Matrix" ${landscape-transform} |
76 | ''; | 76 | ''; |
77 | 77 | ||
78 | in | 78 | in |