aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/default.nix6
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/default.nix b/scripts/default.nix
index c7a485c..59b1ca5 100644
--- a/scripts/default.nix
+++ b/scripts/default.nix
@@ -64,6 +64,11 @@ let
64 ${pkgs.xorg.xinput}/bin/xinput set-prop "${touchscreen}" --type=float "Coordinate Transformation Matrix" ${portait-transform} 64 ${pkgs.xorg.xinput}/bin/xinput set-prop "${touchscreen}" --type=float "Coordinate Transformation Matrix" ${portait-transform}
65 ${pkgs.xorg.xinput}/bin/xinput set-prop "${stylus}" --type=float "Coordinate Transformation Matrix" ${portait-transform} 65 ${pkgs.xorg.xinput}/bin/xinput set-prop "${stylus}" --type=float "Coordinate Transformation Matrix" ${portait-transform}
66 ''; 66 '';
67 portrait2 = pkgs.writeScriptBin "portrait2" ''
68 ${pkgs.xorg.xrandr}/bin/xrandr -o right
69 ${pkgs.xorg.xinput}/bin/xinput set-prop "${touchscreen}" --type=float "Coordinate Transformation Matrix" ${portait-transform}
70 ${pkgs.xorg.xinput}/bin/xinput set-prop "${stylus}" --type=float "Coordinate Transformation Matrix" ${portait-transform}
71 '';
67 landscape = pkgs.writeScriptBin "landscape" '' 72 landscape = pkgs.writeScriptBin "landscape" ''
68 ${pkgs.xorg.xrandr}/bin/xrandr -o normal 73 ${pkgs.xorg.xrandr}/bin/xrandr -o normal
69 ${pkgs.xorg.xinput}/bin/xinput set-prop "${touchscreen}" --type=float "Coordinate Transformation Matrix" ${landscape-transform} 74 ${pkgs.xorg.xinput}/bin/xinput set-prop "${touchscreen}" --type=float "Coordinate Transformation Matrix" ${landscape-transform}
@@ -82,6 +87,7 @@ in
82 battery 87 battery
83 tmux-fzf 88 tmux-fzf
84 portrait 89 portrait
90 portrait2
85 landscape 91 landscape
86 nvidia-offload 92 nvidia-offload
87 m2m 93 m2m