From 975fddd2af1ebd860c440c80aa27b3975b916e01 Mon Sep 17 00:00:00 2001 From: Peter Cai Date: Tue, 25 Jul 2023 18:25:32 -0400 Subject: [PATCH 1/3] bashrc: Set TERM=xterm-256color unconditionally for ssh --- bash/.bashrc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bash/.bashrc b/bash/.bashrc index 5cef53b..6133607 100644 --- a/bash/.bashrc +++ b/bash/.bashrc @@ -14,6 +14,8 @@ export MACHINE_START_SWAY=false # Whether to start Sway from bash # Source machine-specific config [[ -f ~/.machine_config ]] && source ~/.machine_config +alias ssh="TERM=xterm-256color ssh" + # SSH without checking or adding host keys to known_hosts # Useful for cloud server rescue environment & installation alias sshtmp="ssh -o 'UserKnownHostsFile /dev/null' -o 'StrictHostKeyChecking no'" From eace601ccbddb7813993e7bc32c741d2df7af362 Mon Sep 17 00:00:00 2001 From: Peter Cai Date: Thu, 31 Aug 2023 15:54:16 -0400 Subject: [PATCH 2/3] sway: More rules for floating windows --- sway/.config/sway/config | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/sway/.config/sway/config b/sway/.config/sway/config index 33ff9b5..1fa1f2e 100644 --- a/sway/.config/sway/config +++ b/sway/.config/sway/config @@ -273,8 +273,6 @@ client.focused_inactive 00000000 #bdae93 #282828 00000000 # This is annoying -- just turn it off focus_follows_mouse no -for_window [app_id="pavucontrol"] floating enable - # Start the systemd-user target for sway and import environment # Makes service management a bit cleaner exec_always "systemctl --user import-environment; systemctl --user start sway-session.target" @@ -285,3 +283,8 @@ exec_always dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CUR # Restart kanshi if it is running # This restores monitor configuration on reload exec_always "systemctl --user is-active kanshi && systemctl --user restart kanshi" + +# Floating window rules +for_window [app_id="pavucontrol"] floating enable +for_window [app_id="qalculate-qt"] floating enable, resize set width 800 px height 800 px, opacity 1 +for_window [app_id="thunderbird" title="Write.*"] floating enable, resize set width 800 px height 800 px From d65939e2651052e05bfd0bf6e99a514133c99f2d Mon Sep 17 00:00:00 2001 From: Peter Cai Date: Thu, 31 Aug 2023 15:55:00 -0400 Subject: [PATCH 3/3] rime: Ignore more stuff --- rime/.local/share/fcitx5/rime/.gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/rime/.local/share/fcitx5/rime/.gitignore b/rime/.local/share/fcitx5/rime/.gitignore index c618849..764daa4 100644 --- a/rime/.local/share/fcitx5/rime/.gitignore +++ b/rime/.local/share/fcitx5/rime/.gitignore @@ -2,3 +2,4 @@ build/ installation.yaml *.userdb/ user.yaml +sync