19 lines
766 B
Bash
Executable File
19 lines
766 B
Bash
Executable File
#!/bin/sh
|
|
# ==========================================================
|
|
# Terapkan palet Tokyo Night ke SEMUA pane yang sedang hidup.
|
|
#
|
|
# Kenapa perlu: "pane-colours" itu pane option, dan hook
|
|
# (session-created / after-new-window / after-split-window)
|
|
# hanya jalan untuk pane yang baru dibuat. Pane yang sudah
|
|
# ada sebelum config di-reload tidak ikut berubah.
|
|
#
|
|
# Dipanggil otomatis dari: bind r di tmux.conf
|
|
# Bisa juga dipanggil manual: sh ~/.config/tmux/apply-palette.sh
|
|
# ==========================================================
|
|
|
|
tmux list-panes -a -F '#{session_name}:#{window_index}.#{pane_index}' 2>/dev/null |
|
|
while read -r pane; do
|
|
[ -n "$pane" ] || continue
|
|
tmux source-file -t "$pane" "$HOME/.config/tmux/palette.conf" 2>/dev/null
|
|
done
|