58 lines
2.9 KiB
Plaintext
58 lines
2.9 KiB
Plaintext
|
|
# ╔══════════════════════════════════════════════════════════════════╗
|
||
|
|
# ║ arch-dev :: screenrc (mobile multiplexer) ║
|
||
|
|
# ║ Termius-optimized · clean status · keyboard-friendly ║
|
||
|
|
# ╚══════════════════════════════════════════════════════════════════╝
|
||
|
|
|
||
|
|
# ── Basics ────────────────────────────────────────────────────────────────────
|
||
|
|
startup_message off
|
||
|
|
vbell off
|
||
|
|
defscrollback 10000
|
||
|
|
defutf8 on
|
||
|
|
defencoding utf8
|
||
|
|
autodetach on
|
||
|
|
shell -zsh
|
||
|
|
|
||
|
|
# ── 256 color (no truecolor — Termius mangles RGB as purple) ─────────────────
|
||
|
|
term xterm-256color
|
||
|
|
termcapinfo xterm-256color|xterm 'Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm'
|
||
|
|
termcapinfo xterm-256color ti@:te@
|
||
|
|
|
||
|
|
# ── Status bar ────────────────────────────────────────────────────────────────
|
||
|
|
# Keep it readable on a small screen
|
||
|
|
hardstatus alwayslastline
|
||
|
|
hardstatus string '%{= kw}[ %{= kc}arch-dev%{= kw} ][ %{= kg}%w%{= kw} ]%=%{= kw}[ %{= kY}%D %d %M%{= kw} ][ %{= kc}%0c%{= kw} ]'
|
||
|
|
|
||
|
|
# ── Keybindings (tearless mobile ref) ────────────────────────────────────────
|
||
|
|
# Prefix stays Ctrl+a (default) — familiar and easy on mobile
|
||
|
|
|
||
|
|
# New window: Ctrl+a c
|
||
|
|
# Next window: Ctrl+a n (or Ctrl+a Space)
|
||
|
|
# Prev window: Ctrl+a p
|
||
|
|
# List windows: Ctrl+a "
|
||
|
|
# Scroll mode: Ctrl+a [
|
||
|
|
# Exit scroll: q
|
||
|
|
# Detach: Ctrl+a d
|
||
|
|
# Reattach: screen -RD (alias: mux)
|
||
|
|
|
||
|
|
# Make scroll mode vi-friendly
|
||
|
|
markkeys h=^H:l=^L:$=^E
|
||
|
|
|
||
|
|
# ── Mouse ─────────────────────────────────────────────────────────────────────
|
||
|
|
# Disabled — Termius touch handles this better directly
|
||
|
|
# mousetrack on
|
||
|
|
|
||
|
|
# ── Windows ───────────────────────────────────────────────────────────────────
|
||
|
|
# Number pad for quick window switch
|
||
|
|
bind 1 select 1
|
||
|
|
bind 2 select 2
|
||
|
|
bind 3 select 3
|
||
|
|
bind 4 select 4
|
||
|
|
bind 5 select 5
|
||
|
|
|
||
|
|
# Reload
|
||
|
|
bind r source ~/.screenrc
|
||
|
|
|
||
|
|
# ── Logging ───────────────────────────────────────────────────────────────────
|
||
|
|
# deflog on
|
||
|
|
# logfile $HOME/.screen/screen-%Y%m%d-%n.log
|