mirror of
https://github.com/basecamp/omarchy.git
synced 2026-02-17 15:25:37 +00:00
Compare commits
5 Commits
ffafe1727e
...
4fadf666e6
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4fadf666e6 | ||
|
|
07ede07193 | ||
|
|
527819b750 | ||
|
|
98bfe20839 | ||
|
|
4d48409926 |
5
bin/omarchy-refresh-tmux
Executable file
5
bin/omarchy-refresh-tmux
Executable file
@@ -0,0 +1,5 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Overwrite the user tmux config with the Omarchy default and reload tmux.
|
||||||
|
|
||||||
|
omarchy-refresh-config tmux/tmux.conf
|
||||||
@@ -25,6 +25,9 @@ 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, 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"
|
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
|
# Overwrite existing bindings, like putting Omarchy Menu on Super + Space
|
||||||
# unbind = SUPER, SPACE
|
# unbind = SUPER, SPACE
|
||||||
# bindd = SUPER, SPACE, Omarchy menu, exec, omarchy-menu
|
# bindd = SUPER, SPACE, Omarchy menu, exec, omarchy-menu
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
# Theme
|
# Prefix
|
||||||
source-file ~/.config/omarchy/current/theme/tmux.conf
|
set -g prefix C-Space
|
||||||
|
set -g prefix2 C-b
|
||||||
|
bind C-Space send-prefix
|
||||||
|
|
||||||
# General
|
# General
|
||||||
set -g default-terminal "tmux-256color"
|
set -g default-terminal "tmux-256color"
|
||||||
@@ -22,6 +24,19 @@ set -g status-left-length 30
|
|||||||
set -g status-right-length 50
|
set -g status-right-length 50
|
||||||
set -g window-status-separator ""
|
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
|
# Reload config
|
||||||
bind M-r source-file ~/.config/tmux/tmux.conf
|
bind M-r source-file ~/.config/tmux/tmux.conf
|
||||||
|
|
||||||
@@ -35,10 +50,10 @@ bind -T copy-mode-vi v send -X begin-selection
|
|||||||
bind -T copy-mode-vi y send -X copy-selection-and-cancel
|
bind -T copy-mode-vi y send -X copy-selection-and-cancel
|
||||||
|
|
||||||
# Pane resizing
|
# Pane resizing
|
||||||
bind -r S-Left resize-pane -L 10
|
bind -r S-Left resize-pane -L 1
|
||||||
bind -r S-Down resize-pane -D 10
|
bind -r S-Down resize-pane -D 1
|
||||||
bind -r S-Up resize-pane -U 10
|
bind -r S-Up resize-pane -U 1
|
||||||
bind -r S-Right resize-pane -R 10
|
bind -r S-Right resize-pane -R 1
|
||||||
|
|
||||||
# Saner splits that open in the same directory
|
# Saner splits that open in the same directory
|
||||||
bind | split-window -h -c "#{pane_current_path}"
|
bind | split-window -h -c "#{pane_current_path}"
|
||||||
|
|||||||
@@ -87,3 +87,18 @@ img2png() {
|
|||||||
-define png:exclude-chunk=all \
|
-define png:exclude-chunk=all \
|
||||||
"${img%.*}-optimized.png"
|
"${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"
|
||||||
|
}
|
||||||
|
|||||||
@@ -3,3 +3,8 @@ bindd = SUPER, C, Universal copy, sendshortcut, CTRL, Insert,
|
|||||||
bindd = SUPER, V, Universal paste, sendshortcut, SHIFT, Insert,
|
bindd = SUPER, V, Universal paste, sendshortcut, SHIFT, Insert,
|
||||||
bindd = SUPER, X, Universal cut, sendshortcut, CTRL, X,
|
bindd = SUPER, X, Universal cut, sendshortcut, CTRL, X,
|
||||||
bindd = SUPER CTRL, V, Clipboard manager, exec, omarchy-launch-walker -m clipboard
|
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)$
|
||||||
|
|||||||
@@ -1,11 +0,0 @@
|
|||||||
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 }}"
|
|
||||||
Reference in New Issue
Block a user