home/fuji/sway: rot8 -> custom_service; fix rotation

This commit is contained in:
2026-08-08 11:16:04 +02:00
parent cebdacbc26
commit c9b6ce1c24
+2 -4
View File
@@ -16,13 +16,11 @@ let
${lib.getExe pkgs.grim} -g "$GEOM" - | ${pkgs.wl-clipboard}/bin/wl-copy ${lib.getExe pkgs.grim} -g "$GEOM" - | ${pkgs.wl-clipboard}/bin/wl-copy
''; '';
switch_laptop_mode = pkgs.writeShellScriptBin "switch_laptop_mode" '' switch_laptop_mode = pkgs.writeShellScriptBin "switch_laptop_mode" ''
${pkgs.procps}/bin/pkill rot8 && \ ${pkgs.systemd}/bin/systemctl --user stop auto-rotate.service
${pkgs.sway}/bin/swaymsg output eDP-1 transform 0 ${pkgs.sway}/bin/swaymsg output eDP-1 transform 0
''; '';
switch_tablet_mode = pkgs.writeShellScriptBin "switch_tablet_mode" '' switch_tablet_mode = pkgs.writeShellScriptBin "switch_tablet_mode" ''
${lib.getExe pkgs.rot8} \ ${pkgs.systemd}/bin/systemctl --user start auto-rotate.service
--invert-y \
--hooks ''\'systemctl --user restart lisgd.service''\'
''; '';
swaysw = inputs.swaysw.packages.${system}.swaysw; swaysw = inputs.swaysw.packages.${system}.swaysw;
quickshell_bar = inputs.quickshell_bar.packages.${system}.default; quickshell_bar = inputs.quickshell_bar.packages.${system}.default;