Make the rice shareable: appearance-only default, --with-shell, --layouts, --restore, 07-input and 99-personal split
- default install: SwayFX + DMS + kitty + fonts/theme + hotkeys/screenshots only - zsh/tmux/CLI tools behind --with-shell; personal apps/autostart/mouse speed removed from the repo - keyboard layouts prompt/--layouts, user-editable files (07-input.conf, dms/settings.json) never overwritten - --restore (oldest backup), unique backup dirs, README rewritten for strangers, private URL removed Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
+1
-4
@@ -216,9 +216,6 @@ include ~/.config/sway/config.d/*.conf
|
||||
|
||||
|
||||
|
||||
input "type:keyboard" {
|
||||
xkb_layout "us,ru"
|
||||
xkb_options "grp:alt_shift_toggle,grp_led:scroll"
|
||||
}
|
||||
# Keyboard, touchpad: see config.d/07-input.conf
|
||||
|
||||
|
||||
|
||||
@@ -1,4 +0,0 @@
|
||||
# Mouse sensitivity: -1 (slowest) .. 1 (fastest), 0 is default. Touchpad is set in 10-appearance.conf
|
||||
input type:pointer {
|
||||
pointer_accel -0.5
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
# Input devices: edit freely. install.sh --layouts "us,de" rewrites the keyboard line.
|
||||
# Keep a Latin layout FIRST: the hotkeys are bound with --to-code and work on the other layouts too.
|
||||
input "type:keyboard" {
|
||||
xkb_layout "us,ru"
|
||||
xkb_options "grp:alt_shift_toggle,grp_led:scroll"
|
||||
}
|
||||
|
||||
input type:touchpad {
|
||||
tap enabled
|
||||
tap_button_map lrm
|
||||
natural_scroll enabled
|
||||
dwt enabled
|
||||
middle_emulation enabled
|
||||
}
|
||||
|
||||
# Mouse / touchpad speed (-1 slowest .. 1 fastest) goes into your own config.d/99-personal.conf
|
||||
@@ -32,14 +32,6 @@ exec_always sh -c 'pkill -x nm-applet; exec nm-applet --indicator'
|
||||
bindsym --to-code $mod+Shift+x exec ~/.config/sway/lock.sh
|
||||
|
||||
# Touchpad
|
||||
input type:touchpad {
|
||||
tap enabled
|
||||
tap_button_map lrm
|
||||
natural_scroll enabled
|
||||
dwt enabled
|
||||
middle_emulation enabled
|
||||
pointer_accel 0.3
|
||||
}
|
||||
|
||||
# Window rules
|
||||
for_window [app_id="pavucontrol|nm-connection-editor|blueman-manager"] floating enable, resize set 700 500, border pixel 2
|
||||
|
||||
@@ -1,5 +0,0 @@
|
||||
# Autostart (xdg-autostart does not run under sway). Delayed so the DMS tray is ready;
|
||||
# guarded against duplicates and against apps that are not installed on this machine.
|
||||
exec sh -c 'sleep 5; flatpak info com.nextcloud.desktopclient.nextcloud >/dev/null 2>&1 && ! pgrep -f "[n]extcloud.*--background" >/dev/null && flatpak run com.nextcloud.desktopclient.nextcloud --background'
|
||||
exec sh -c 'sleep 5; flatpak info org.remmina.Remmina >/dev/null 2>&1 && ! pgrep -f "[R]emmina.* -i" >/dev/null && flatpak run org.remmina.Remmina -i'
|
||||
exec sh -c 'sleep 8; command -v geary >/dev/null && ! pgrep -x geary >/dev/null && geary --gapplication-service'
|
||||
@@ -41,12 +41,14 @@ fc-list 2>/dev/null | grep -qi "JetBrains Mono" && ok "JetBrains Mono" || bad "J
|
||||
fc-list 2>/dev/null | grep -qiE "Font ?Awesome" && ok "Font Awesome" || warn "Font Awesome missing (some icons)"
|
||||
{ [ -d /usr/share/themes/adw-gtk3-dark ] || [ -d "$HOME/.local/share/themes/adw-gtk3-dark" ]; } && ok "adw-gtk3 theme" || warn "adw-gtk3 theme missing (GTK apps will not follow the palette)"
|
||||
|
||||
section "Terminal and shell tools"
|
||||
for t in kitty zsh tmux git fzf zoxide eza bat fd rg ncdu lazygit; do
|
||||
have "$t" || { [ "$t" = fd ] && have fdfind; } && ok "$t" || warn "$t missing"
|
||||
section "Terminal"
|
||||
have kitty && ok "kitty" || bad "kitty missing"
|
||||
section "Optional shell setup (install.sh --with-shell)"
|
||||
opt() { printf ' \033[2m--\033[0m %s\n' "$*"; }
|
||||
for t in zsh tmux git fzf zoxide eza bat fd rg ncdu lazygit; do
|
||||
if have "$t" || { [ "$t" = fd ] && have fdfind; }; then ok "$t"; else opt "$t not installed (optional)"; fi
|
||||
done
|
||||
[ -d "$HOME/.oh-my-zsh" ] && ok "oh-my-zsh" || warn "oh-my-zsh missing"
|
||||
[ "$(basename "${SHELL:-}")" = zsh ] && ok "login shell is zsh" || warn "login shell is not zsh (run: chsh -s $(command -v zsh || echo /usr/bin/zsh))"
|
||||
[ -d "$HOME/.oh-my-zsh" ] && ok "oh-my-zsh" || opt "oh-my-zsh not installed (optional)"
|
||||
|
||||
section "Per-machine config"
|
||||
[ -f "$CFG/sway/config.d/05-outputs.conf" ] && ok "monitor layout (05-outputs.conf)" || warn "no monitor layout yet: run ~/.config/sway/outputs-setup.sh inside sway"
|
||||
|
||||
Reference in New Issue
Block a user