From c9b6ce1c24f4eb473bffb116aeb41a2e967f9a8d Mon Sep 17 00:00:00 2001 From: Asmir A Date: Sat, 8 Aug 2026 11:16:04 +0200 Subject: [PATCH] home/fuji/sway: rot8 -> custom_service; fix rotation --- home/common/sway.nix | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/home/common/sway.nix b/home/common/sway.nix index 0f3f068..2cd2032 100644 --- a/home/common/sway.nix +++ b/home/common/sway.nix @@ -16,13 +16,11 @@ let ${lib.getExe pkgs.grim} -g "$GEOM" - | ${pkgs.wl-clipboard}/bin/wl-copy ''; 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 ''; switch_tablet_mode = pkgs.writeShellScriptBin "switch_tablet_mode" '' - ${lib.getExe pkgs.rot8} \ - --invert-y \ - --hooks ''\'systemctl --user restart lisgd.service''\' + ${pkgs.systemd}/bin/systemctl --user start auto-rotate.service ''; swaysw = inputs.swaysw.packages.${system}.swaysw; quickshell_bar = inputs.quickshell_bar.packages.${system}.default;