kitty: plain Ctrl+C/V; Thunar file manager with kitty actions and Super+O
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,31 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<actions>
|
||||||
|
<action>
|
||||||
|
<icon>utilities-terminal</icon>
|
||||||
|
<name>Open kitty here</name>
|
||||||
|
<submenu></submenu>
|
||||||
|
<unique-id>1761600000000001</unique-id>
|
||||||
|
<command>kitty --directory %f</command>
|
||||||
|
<description>Open a kitty terminal in this folder</description>
|
||||||
|
<range></range>
|
||||||
|
<patterns>*</patterns>
|
||||||
|
<startup-notify/>
|
||||||
|
<directories/>
|
||||||
|
</action>
|
||||||
|
<action>
|
||||||
|
<icon>edit-copy</icon>
|
||||||
|
<name>Copy path</name>
|
||||||
|
<submenu></submenu>
|
||||||
|
<unique-id>1761600000000002</unique-id>
|
||||||
|
<command>sh -c 'printf %s "%f" | wl-copy'</command>
|
||||||
|
<description>Copy the full path to the clipboard</description>
|
||||||
|
<range></range>
|
||||||
|
<patterns>*</patterns>
|
||||||
|
<directories/>
|
||||||
|
<audio-files/>
|
||||||
|
<image-files/>
|
||||||
|
<other-files/>
|
||||||
|
<text-files/>
|
||||||
|
<video-files/>
|
||||||
|
</action>
|
||||||
|
</actions>
|
||||||
@@ -99,6 +99,9 @@ color7 #a9b1d6
|
|||||||
color15 #c0caf5
|
color15 #c0caf5
|
||||||
|
|
||||||
# ---------- Shortcuts ----------
|
# ---------- Shortcuts ----------
|
||||||
|
# Plain Ctrl+C / Ctrl+V: Ctrl+C copies when text is selected, otherwise it is the usual interrupt (SIGINT)
|
||||||
|
map ctrl+c copy_or_interrupt
|
||||||
|
map ctrl+v paste_from_clipboard
|
||||||
map ctrl+shift+t new_tab_with_cwd
|
map ctrl+shift+t new_tab_with_cwd
|
||||||
map ctrl+shift+enter launch --location=vsplit --cwd=current
|
map ctrl+shift+enter launch --location=vsplit --cwd=current
|
||||||
map ctrl+alt+enter launch --location=hsplit --cwd=current
|
map ctrl+alt+enter launch --location=hsplit --cwd=current
|
||||||
|
|||||||
@@ -29,6 +29,7 @@ for_window [app_id="firefox"] inhibit_idle fullscreen
|
|||||||
for_window [app_id="mpv"] floating enable, dim_inactive 0
|
for_window [app_id="mpv"] floating enable, dim_inactive 0
|
||||||
|
|
||||||
# Rice helpers
|
# Rice helpers
|
||||||
|
bindsym --to-code $mod+o exec thunar
|
||||||
bindsym --to-code $mod+F1 exec ~/.config/sway/cheatsheet.sh
|
bindsym --to-code $mod+F1 exec ~/.config/sway/cheatsheet.sh
|
||||||
# Performance mode: toggle blur + shadows
|
# Performance mode: toggle blur + shadows
|
||||||
bindsym --to-code $mod+Shift+b blur toggle; shadows toggle
|
bindsym --to-code $mod+Shift+b blur toggle; shadows toggle
|
||||||
|
|||||||
@@ -0,0 +1 @@
|
|||||||
|
TerminalEmulator=kitty
|
||||||
@@ -19,7 +19,8 @@
|
|||||||
| `.config/sway/{lock,idle,cheatsheet}.sh` | блокировка (DMS, запасной swaylock), swayidle, шпаргалка по хоткеям |
|
| `.config/sway/{lock,idle,cheatsheet}.sh` | блокировка (DMS, запасной swaylock), swayidle, шпаргалка по хоткеям |
|
||||||
| `.config/sway/outputs-setup.sh`, `doctor.sh` | настройка мониторов под новое железо; проверка здоровья системы |
|
| `.config/sway/outputs-setup.sh`, `doctor.sh` | настройка мониторов под новое железо; проверка здоровья системы |
|
||||||
| `.config/dms/settings.json` | настройки DMS: виджеты бара (раскладка, VPN, температура, приватность), шрифты, панель управления |
|
| `.config/dms/settings.json` | настройки DMS: виджеты бара (раскладка, VPN, температура, приватность), шрифты, панель управления |
|
||||||
| `.config/kitty/kitty.conf` | JetBrains Mono, палитра Tokyo Night, прозрачность, вкладки и сплиты |
|
| `.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/swappy/config` | редактор скриншотов (стрелки, текст, размытие) |
|
| `.config/swappy/config` | редактор скриншотов (стрелки, текст, размытие) |
|
||||||
| `.config/swaylock/` | запасная блокировка, если DMS не запущен |
|
| `.config/swaylock/` | запасная блокировка, если DMS не запущен |
|
||||||
| `home/.tmux.conf`, `home/.zshrc`, `home/.oh-my-zsh/custom/sysadmin.zsh` | tmux, zsh, алиасы сисадмина; fzf / zoxide / eza подключаются сами |
|
| `home/.tmux.conf`, `home/.zshrc`, `home/.oh-my-zsh/custom/sysadmin.zsh` | tmux, zsh, алиасы сисадмина; fzf / zoxide / eza подключаются сами |
|
||||||
@@ -49,6 +50,7 @@
|
|||||||
| `Super+N` | панель управления DMS (Wi-Fi, Bluetooth, VPN, звук, яркость) |
|
| `Super+N` | панель управления DMS (Wi-Fi, Bluetooth, VPN, звук, яркость) |
|
||||||
| `Super+Shift+N` | центр уведомлений |
|
| `Super+Shift+N` | центр уведомлений |
|
||||||
| `Super+Shift+V` | история буфера обмена |
|
| `Super+Shift+V` | история буфера обмена |
|
||||||
|
| `Super+O` | файловый менеджер (Thunar) |
|
||||||
| `Super+Shift+Q` | закрыть окно |
|
| `Super+Shift+Q` | закрыть окно |
|
||||||
| `Super+Shift+C` | перезагрузить конфиг |
|
| `Super+Shift+C` | перезагрузить конфиг |
|
||||||
| `Super+Shift+E` / `Super+Shift+P` | меню выключения DMS |
|
| `Super+Shift+E` / `Super+Shift+P` | меню выключения DMS |
|
||||||
|
|||||||
+10
-2
@@ -50,6 +50,7 @@ CORE_PKGS=(
|
|||||||
sway-systemd # session target + env for portals
|
sway-systemd # session target + env for portals
|
||||||
kitty swaylock swayidle grim swappy jq wl-clipboard brightnessctl libnotify
|
kitty swaylock swayidle grim swappy jq wl-clipboard brightnessctl libnotify
|
||||||
pavucontrol network-manager-applet wireplumber pipewire-pulseaudio
|
pavucontrol network-manager-applet wireplumber pipewire-pulseaudio
|
||||||
|
Thunar thunar-archive-plugin thunar-volman tumbler ffmpegthumbnailer file-roller # file manager (Super+O)
|
||||||
xdg-desktop-portal xdg-desktop-portal-wlr xdg-desktop-portal-gtk
|
xdg-desktop-portal xdg-desktop-portal-wlr xdg-desktop-portal-gtk
|
||||||
jetbrains-mono-fonts fontawesome-6-free-fonts adw-gtk3-theme
|
jetbrains-mono-fonts fontawesome-6-free-fonts adw-gtk3-theme
|
||||||
)
|
)
|
||||||
@@ -128,7 +129,7 @@ backup_and_copy_configs() {
|
|||||||
say "Backing up existing configs to $BACKUP"
|
say "Backing up existing configs to $BACKUP"
|
||||||
run mkdir -p "$BACKUP"
|
run mkdir -p "$BACKUP"
|
||||||
local d
|
local d
|
||||||
for d in sway swaylock kitty dms swappy waybar rofi dunst swaync; do # last four: legacy, only backed up
|
for d in sway swaylock kitty dms swappy Thunar xfce4 waybar rofi dunst swaync; do # last four: legacy, only backed up
|
||||||
if [ -e "$CFG/$d" ]; then run cp -a "$CFG/$d" "$BACKUP/"; fi
|
if [ -e "$CFG/$d" ]; then run cp -a "$CFG/$d" "$BACKUP/"; fi
|
||||||
done
|
done
|
||||||
|
|
||||||
@@ -179,6 +180,13 @@ apply_gtk_theme() {
|
|||||||
run gsettings set org.gnome.desktop.interface color-scheme 'prefer-dark' || true
|
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() {
|
setup_outputs() {
|
||||||
if [ -e "$CFG/sway/config.d/05-outputs.conf" ]; then say "Monitor layout already configured (05-outputs.conf)"; return 0; fi
|
if [ -e "$CFG/sway/config.d/05-outputs.conf" ]; then say "Monitor layout already configured (05-outputs.conf)"; return 0; fi
|
||||||
if [ -n "${SWAYSOCK:-}" ] && [ "$DRY" = 0 ]; then
|
if [ -n "${SWAYSOCK:-}" ] && [ "$DRY" = 0 ]; then
|
||||||
@@ -223,7 +231,7 @@ if [ "$PACKAGES" = 1 ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
backup_and_copy_configs
|
backup_and_copy_configs
|
||||||
if [ "$PACKAGES" = 1 ]; then apply_gtk_theme; fi
|
if [ "$PACKAGES" = 1 ]; then apply_gtk_theme; apply_file_manager; fi
|
||||||
if [ "$SHELLSETUP" = 1 ]; then install_shell_extras; fi
|
if [ "$SHELLSETUP" = 1 ]; then install_shell_extras; fi
|
||||||
setup_outputs
|
setup_outputs
|
||||||
verify
|
verify
|
||||||
|
|||||||
Reference in New Issue
Block a user