From a640b0d742a5b23ae6616b0767b5396d1f15c4e1 Mon Sep 17 00:00:00 2001 From: aibrash Date: Wed, 28 Oct 2026 11:26:05 +0500 Subject: [PATCH] Nautilus on Super+O instead of Thunar; kitty tabs on Ctrl+Shift+Left/Right, splits on Ctrl+Alt+arrows Co-Authored-By: Claude Sonnet 5.5 --- .config/Thunar/uca.xml | 31 -------------------------- .config/kitty/kitty.conf | 13 ++++++----- .config/sway/config.d/30-workflow.conf | 2 +- .config/xfce4/helpers.rc | 1 - README.md | 5 ++--- install.sh | 12 +++------- 6 files changed, 13 insertions(+), 51 deletions(-) delete mode 100644 .config/Thunar/uca.xml delete mode 100644 .config/xfce4/helpers.rc diff --git a/.config/Thunar/uca.xml b/.config/Thunar/uca.xml deleted file mode 100644 index abd2b0c..0000000 --- a/.config/Thunar/uca.xml +++ /dev/null @@ -1,31 +0,0 @@ - - - - utilities-terminal - Open kitty here - - 1761600000000001 - kitty --directory %f - Open a kitty terminal in this folder - - * - - - - - edit-copy - Copy path - - 1761600000000002 - sh -c 'printf %s "%f" | wl-copy' - Copy the full path to the clipboard - - * - - - - - - - - diff --git a/.config/kitty/kitty.conf b/.config/kitty/kitty.conf index 62c30d3..bda14c9 100644 --- a/.config/kitty/kitty.conf +++ b/.config/kitty/kitty.conf @@ -105,16 +105,17 @@ map ctrl+v paste_from_clipboard map ctrl+shift+t new_tab_with_cwd map ctrl+shift+enter launch --location=vsplit --cwd=current map ctrl+alt+enter launch --location=hsplit --cwd=current -map ctrl+shift+left neighboring_window left -map ctrl+shift+right neighboring_window right -map ctrl+shift+up neighboring_window up -map ctrl+shift+down neighboring_window down +# Tabs: Ctrl+Shift+Left/Right (kitty default). Splits: Ctrl+Alt+arrows +map ctrl+shift+left previous_tab +map ctrl+shift+right next_tab +map ctrl+alt+left neighboring_window left +map ctrl+alt+right neighboring_window right +map ctrl+alt+up neighboring_window up +map ctrl+alt+down neighboring_window down map ctrl+shift+z toggle_layout stack map ctrl+shift+equal change_font_size current +1.0 map ctrl+shift+minus change_font_size current -1.0 map ctrl+shift+0 change_font_size current 0 -map ctrl+shift+alt+left previous_tab -map ctrl+shift+alt+right next_tab map ctrl+shift+f show_scrollback map ctrl+shift+o kitten hints --type path --program - map ctrl+shift+e kitten hints --type url diff --git a/.config/sway/config.d/30-workflow.conf b/.config/sway/config.d/30-workflow.conf index cda71e3..13b6498 100644 --- a/.config/sway/config.d/30-workflow.conf +++ b/.config/sway/config.d/30-workflow.conf @@ -29,7 +29,7 @@ for_window [app_id="firefox"] inhibit_idle fullscreen for_window [app_id="mpv"] floating enable, dim_inactive 0 # Rice helpers -bindsym --to-code $mod+o exec thunar +bindsym --to-code $mod+o exec nautilus --new-window bindsym --to-code $mod+F1 exec ~/.config/sway/cheatsheet.sh # Performance mode: toggle blur + shadows bindsym --to-code $mod+Shift+b blur toggle; shadows toggle diff --git a/.config/xfce4/helpers.rc b/.config/xfce4/helpers.rc deleted file mode 100644 index 5226528..0000000 --- a/.config/xfce4/helpers.rc +++ /dev/null @@ -1 +0,0 @@ -TerminalEmulator=kitty diff --git a/README.md b/README.md index c4fd91c..e494cc4 100644 --- a/README.md +++ b/README.md @@ -19,8 +19,7 @@ | `.config/sway/{lock,idle,cheatsheet}.sh` | блокировка (DMS, запасной swaylock), swayidle, шпаргалка по хоткеям | | `.config/sway/outputs-setup.sh`, `doctor.sh` | настройка мониторов под новое железо; проверка здоровья системы | | `.config/dms/settings.json` | настройки DMS: виджеты бара (раскладка, VPN, температура, приватность), шрифты, панель управления | -| `.config/kitty/kitty.conf` | JetBrains Mono, палитра Tokyo Night, прозрачность, вкладки и сплиты; `Ctrl+C` копирует выделенное (без выделения прерывает), `Ctrl+V` вставляет | -| `.config/Thunar/uca.xml`, `.config/xfce4/helpers.rc` | файловый менеджер: «Open kitty here», «Copy path» в контекстном меню, терминал kitty | +| `.config/kitty/kitty.conf` | JetBrains Mono, палитра Tokyo Night, прозрачность, вкладки (`Ctrl+Shift+←/→`) и сплиты (`Ctrl+Alt+стрелки`); `Ctrl+C` копирует выделенное (без выделения прерывает), `Ctrl+V` вставляет | | `.config/swappy/config` | редактор скриншотов (стрелки, текст, размытие) | | `.config/swaylock/` | запасная блокировка, если DMS не запущен | | `home/.tmux.conf`, `home/.zshrc`, `home/.oh-my-zsh/custom/sysadmin.zsh` | tmux, zsh, алиасы сисадмина; fzf / zoxide / eza подключаются сами | @@ -50,7 +49,7 @@ | `Super+N` | панель управления DMS (Wi-Fi, Bluetooth, VPN, звук, яркость) | | `Super+Shift+N` | центр уведомлений | | `Super+Shift+V` | история буфера обмена | -| `Super+O` | файловый менеджер (Thunar) | +| `Super+O` | файловый менеджер (Nautilus) | | `Super+Shift+Q` | закрыть окно | | `Super+Shift+C` | перезагрузить конфиг | | `Super+Shift+E` / `Super+Shift+P` | меню выключения DMS | diff --git a/install.sh b/install.sh index e4a6fc4..a49d02d 100755 --- a/install.sh +++ b/install.sh @@ -50,7 +50,7 @@ CORE_PKGS=( sway-systemd # session target + env for portals kitty swaylock swayidle grim swappy jq wl-clipboard brightnessctl libnotify pavucontrol network-manager-applet wireplumber pipewire-pulseaudio - Thunar thunar-archive-plugin thunar-volman tumbler ffmpegthumbnailer file-roller # file manager (Super+O) + nautilus # file manager (Super+O) xdg-desktop-portal xdg-desktop-portal-wlr xdg-desktop-portal-gtk jetbrains-mono-fonts fontawesome-6-free-fonts adw-gtk3-theme ) @@ -129,7 +129,7 @@ backup_and_copy_configs() { say "Backing up existing configs to $BACKUP" run mkdir -p "$BACKUP" local d - for d in sway swaylock kitty dms swappy Thunar xfce4 waybar rofi dunst swaync; do # last four: legacy, only backed up + for d in sway swaylock kitty dms swappy waybar rofi dunst swaync; do # last four: legacy, only backed up if [ -e "$CFG/$d" ]; then run cp -a "$CFG/$d" "$BACKUP/"; fi done @@ -180,12 +180,6 @@ apply_gtk_theme() { run gsettings set org.gnome.desktop.interface color-scheme 'prefer-dark' || true } -# Thunar as the default folder handler (Nautilus stays installed for GNOME sessions) -apply_file_manager() { - [ -e /usr/share/applications/thunar.desktop ] || return 0 - have xdg-mime || return 0 - run xdg-mime default thunar.desktop inode/directory || true -} setup_outputs() { if [ -e "$CFG/sway/config.d/05-outputs.conf" ]; then say "Monitor layout already configured (05-outputs.conf)"; return 0; fi @@ -231,7 +225,7 @@ if [ "$PACKAGES" = 1 ]; then fi backup_and_copy_configs -if [ "$PACKAGES" = 1 ]; then apply_gtk_theme; apply_file_manager; fi +if [ "$PACKAGES" = 1 ]; then apply_gtk_theme; fi if [ "$SHELLSETUP" = 1 ]; then install_shell_extras; fi setup_outputs verify