This commit is contained in:
2026-07-16 21:36:06 +00:00
parent e5fb44c367
commit ec10527c0d
2 changed files with 13 additions and 2 deletions
+1
View File
@@ -52,6 +52,7 @@ in
home.packages = with pkgs; [
cage
foot
wlr-randr
git
ripgrep
fd
+12 -2
View File
@@ -50,10 +50,20 @@
nix-update = "sudo nix-channel --update && sudo nixos-rebuild switch";
hms = "cd ~/ndots && git add . && home-manager switch --flake .#jpporta-deck";
s = "sesh connect $(sesh list | fzf)";
rot90 = "wlr-randr --output HDMI-A-1 --transform 90";
rot0 = "wlr-randr --output HDMI-A-1 --transform normal";
rotl = "wlr-randr --output HDMI-A-1 --transform 270";
rot180 = "wlr-randr --output HDMI-A-1 --transform 180";
};
initContent = lib.mkIf config.custom.zsh.fastfetch ''
fastfetch
initContent = ''
${lib.optionalString config.custom.zsh.fastfetch "fastfetch"}
# Auto-rotate screen to portrait when running inside cage/foot
# on the writer-deck. Skipped over SSH and other non-Wayland sessions.
if [ -n "$WAYLAND_DISPLAY" ] && [ -n "$CAGE_RUNNING" ] && [ "$ROTATED" != "1" ]; then
export ROTATED=1
wlr-randr --output HDMI-A-1 --transform 90 >/dev/null 2>&1
fi
'';
};
};