Compare commits

..

15 Commits

Author SHA1 Message Date
David Heinemeier Hansson
1a1fe6ba52 Merge branch 'dev' into tmux 2026-02-09 22:59:09 +01:00
David Heinemeier Hansson
71974b2cb1 Fix 2026-02-09 22:59:01 +01:00
David Heinemeier Hansson
093ab830cf Add way to refresh theme from its templates (when they've changed) 2026-02-09 22:58:58 +01:00
David Heinemeier Hansson
b072f643a4 Merge branch 'dev' into tmux 2026-02-09 22:34:55 +01:00
David Heinemeier Hansson
d3b2cff9ce Hate looking at that 0 2026-02-09 18:46:29 +01:00
David Heinemeier Hansson
7894d0f778 Keep bindings together 2026-02-09 17:19:23 +01:00
David Heinemeier Hansson
b04e4b1355 Keep similar fixes together 2026-02-09 17:18:23 +01:00
David Heinemeier Hansson
3a4552cd16 We don't need this 2026-02-09 17:17:51 +01:00
David Heinemeier Hansson
56fbea5022 Make it a clean 10x 2026-02-09 17:14:52 +01:00
David Heinemeier Hansson
4e96135b3e Just stick to n/p 2026-02-09 17:12:47 +01:00
David Heinemeier Hansson
b7415da7ff Attach to last used session or start a new if we have none 2026-02-09 17:07:44 +01:00
David Heinemeier Hansson
084286e3f1 Add alias for it 2026-02-09 17:04:47 +01:00
David Heinemeier Hansson
fda53ac3fe Self-explanatory, really 2026-02-09 15:15:52 +01:00
David Heinemeier Hansson
e3b0e0cd06 Renaming is more important than reloading 2026-02-09 15:14:56 +01:00
David Heinemeier Hansson
ad43162f24 Add Tmux
Being able to use a unified terminal setup between local and remote
hosts has some real advantages.
2026-02-09 14:32:42 +01:00
6 changed files with 17 additions and 49 deletions

View File

@@ -1,5 +0,0 @@
#!/bin/bash
# Overwrite the user tmux config with the Omarchy default and reload tmux.
omarchy-refresh-config tmux/tmux.conf

View File

@@ -25,9 +25,6 @@ bindd = SUPER SHIFT, P, Google Photos, exec, omarchy-launch-or-focus-webapp "Goo
bindd = SUPER SHIFT, X, X, exec, omarchy-launch-webapp "https://x.com/"
bindd = SUPER SHIFT ALT, X, X Post, exec, omarchy-launch-webapp "https://x.com/compose/post"
# Add extra bindings
# bind = SUPER SHIFT, R, exec, alacritty -e ssh your-server
# Overwrite existing bindings, like putting Omarchy Menu on Super + Space
# unbind = SUPER, SPACE
# bindd = SUPER, SPACE, Omarchy menu, exec, omarchy-menu

View File

@@ -1,7 +1,5 @@
# Prefix
set -g prefix C-Space
set -g prefix2 C-b
bind C-Space send-prefix
# Theme
source-file ~/.config/omarchy/current/theme/tmux.conf
# General
set -g default-terminal "tmux-256color"
@@ -24,19 +22,6 @@ set -g status-left-length 30
set -g status-right-length 50
set -g window-status-separator ""
# Theme
set -g status-style "bg=default,fg=default"
set -g status-left "#[fg=black,bg=blue,bold] #S #[bg=default] "
set -g status-right "#[fg=blue]#{?client_prefix,PREFIX ,}#[fg=brightblack]#h "
set -g window-status-format "#[fg=brightblack] #I:#W "
set -g window-status-current-format "#[fg=blue,bold] #I:#W "
set -g pane-border-style "fg=brightblack"
set -g pane-active-border-style "fg=blue"
set -g message-style "bg=default,fg=blue"
set -g message-command-style "bg=default,fg=blue"
set -g mode-style "bg=blue,fg=black"
setw -g clock-mode-colour blue
# Reload config
bind M-r source-file ~/.config/tmux/tmux.conf
@@ -50,10 +35,10 @@ bind -T copy-mode-vi v send -X begin-selection
bind -T copy-mode-vi y send -X copy-selection-and-cancel
# Pane resizing
bind -r S-Left resize-pane -L 1
bind -r S-Down resize-pane -D 1
bind -r S-Up resize-pane -U 1
bind -r S-Right resize-pane -R 1
bind -r S-Left resize-pane -L 10
bind -r S-Down resize-pane -D 10
bind -r S-Up resize-pane -U 10
bind -r S-Right resize-pane -R 10
# Saner splits that open in the same directory
bind | split-window -h -c "#{pane_current_path}"

View File

@@ -87,18 +87,3 @@ img2png() {
-define png:exclude-chunk=all \
"${img%.*}-optimized.png"
}
# SSH Port Forwarding Functions
fip() {
[[ -z "$1" || -z "$2" ]] && echo "Usage: fip <port> <host>" && return 1
ssh -f -N -L "$1:localhost:$1" "$2" && echo "Forwarding localhost:$1 -> $2:$1"
}
dip() {
[[ -z "$1" ]] && echo "Usage: dip <port>" && return 1
pkill -f "ssh.*-L $1:localhost:$1" && echo "Stopped forwarding port $1" || echo "No forwarding on port $1"
}
lip() {
pgrep -af "ssh.*-L [0-9]+:localhost:[0-9]+" || echo "No active forwards"
}

View File

@@ -3,8 +3,3 @@ bindd = SUPER, C, Universal copy, sendshortcut, CTRL, Insert,
bindd = SUPER, V, Universal paste, sendshortcut, SHIFT, Insert,
bindd = SUPER, X, Universal cut, sendshortcut, CTRL, X,
bindd = SUPER CTRL, V, Clipboard manager, exec, omarchy-launch-walker -m clipboard
# Nautilus compatibility
bindd = SUPER, C, Nautilus Copy, sendshortcut, CTRL,c, active, class:^(org.gnome.Nautilus)$
bindd = SUPER, V, Nautilus Paste, sendshortcut, CTRL,v, active, class:^(org.gnome.Nautilus)$
bindd = SUPER, X, Nautilus Cut, sendshortcut, CTRL,x, active, class:^(org.gnome.Nautilus)$

View File

@@ -0,0 +1,11 @@
set -g status-style "bg={{ background }},fg={{ foreground }}"
set -g status-left "#[fg={{ background }},bg={{ accent }},bold] #S #[bg={{ background }}] "
set -g status-right "#[fg={{ accent }}]#{?client_prefix,PREFIX ,}#[fg={{ color8 }}]#h "
set -g window-status-format "#[fg={{ color8 }}] #I:#W "
set -g window-status-current-format "#[fg={{ accent }},bold] #I:#W "
set -g pane-border-style "fg={{ color8 }}"
set -g pane-active-border-style "fg={{ accent }}"
set -g message-style "bg={{ background }},fg={{ accent }}"
set -g message-command-style "bg={{ background }},fg={{ accent }}"
set -g mode-style "bg={{ accent }},fg={{ background }}"
setw -g clock-mode-colour "{{ accent }}"