mirror of
https://github.com/basecamp/omarchy.git
synced 2026-02-17 15:25:37 +00:00
Compare commits
30 Commits
c289cd0730
...
tmux
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1a1fe6ba52 | ||
|
|
71974b2cb1 | ||
|
|
093ab830cf | ||
|
|
f2f306269a | ||
|
|
b072f643a4 | ||
|
|
e4913ca2db | ||
|
|
d3b2cff9ce | ||
|
|
7894d0f778 | ||
|
|
b04e4b1355 | ||
|
|
3a4552cd16 | ||
|
|
56fbea5022 | ||
|
|
4e96135b3e | ||
|
|
b7415da7ff | ||
|
|
084286e3f1 | ||
|
|
fda53ac3fe | ||
|
|
e3b0e0cd06 | ||
|
|
ad43162f24 | ||
|
|
ff234bba1f | ||
|
|
ecf48a3b4c | ||
|
|
74eea9e716 | ||
|
|
66cb888a2e | ||
|
|
0a5755e51f | ||
|
|
7bd5bf25cd | ||
|
|
0c9b38e507 | ||
|
|
0e2ed5439e | ||
|
|
75a0ee6149 | ||
|
|
2c9c0f883a | ||
|
|
8a58b8153c | ||
|
|
badd1f8495 | ||
|
|
67ee1450f0 |
@@ -66,9 +66,20 @@ sudo cp "$OMARCHY_PATH/default/systemd/lid.conf" /etc/systemd/logind.conf.d/
|
|||||||
sudo cp "$OMARCHY_PATH/default/systemd/hibernate.conf" /etc/systemd/sleep.conf.d/
|
sudo cp "$OMARCHY_PATH/default/systemd/hibernate.conf" /etc/systemd/sleep.conf.d/
|
||||||
sudo cp -p "$OMARCHY_PATH/default/systemd/system-sleep/keyboard-backlight" /usr/lib/systemd/system-sleep/
|
sudo cp -p "$OMARCHY_PATH/default/systemd/system-sleep/keyboard-backlight" /usr/lib/systemd/system-sleep/
|
||||||
|
|
||||||
# Regenerate initramfs
|
# Use ACPI alarm for RTC wakeup on s2idle systems (needed for suspend-then-hibernate)
|
||||||
|
if grep -q "\[s2idle\]" /sys/power/mem_sleep 2>/dev/null; then
|
||||||
|
LIMINE_DROP_IN="/etc/limine-entry-tool.d/rtc-alarm.conf"
|
||||||
|
if [[ ! -f "$LIMINE_DROP_IN" ]]; then
|
||||||
|
echo "Enabling ACPI RTC alarm for s2idle suspend"
|
||||||
|
sudo mkdir -p /etc/limine-entry-tool.d
|
||||||
|
echo 'KERNEL_CMDLINE[default]+="rtc_cmos.use_acpi_alarm=1"' | sudo tee "$LIMINE_DROP_IN" >/dev/null
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Regenerate initramfs and boot entry
|
||||||
echo "Regenerating initramfs..."
|
echo "Regenerating initramfs..."
|
||||||
sudo limine-mkinitcpio
|
sudo limine-mkinitcpio
|
||||||
|
sudo limine-update
|
||||||
|
|
||||||
echo
|
echo
|
||||||
|
|
||||||
|
|||||||
@@ -5,9 +5,17 @@
|
|||||||
# Ensure walker is set to autostart
|
# Ensure walker is set to autostart
|
||||||
mkdir -p ~/.config/autostart/
|
mkdir -p ~/.config/autostart/
|
||||||
cp $OMARCHY_PATH/default/walker/walker.desktop ~/.config/autostart/
|
cp $OMARCHY_PATH/default/walker/walker.desktop ~/.config/autostart/
|
||||||
|
|
||||||
|
# And restarts if it crashes or is killed
|
||||||
|
mkdir -p ~/.config/systemd/user/app-walker@autostart.service.d/
|
||||||
|
cp $OMARCHY_PATH/default/walker/restart.conf ~/.config/systemd/user/app-walker@autostart.service.d/restart.conf
|
||||||
|
|
||||||
systemctl --user daemon-reload
|
systemctl --user daemon-reload
|
||||||
|
|
||||||
|
# Refresh configs
|
||||||
omarchy-refresh-config walker/config.toml
|
omarchy-refresh-config walker/config.toml
|
||||||
omarchy-refresh-config elephant/calc.toml
|
omarchy-refresh-config elephant/calc.toml
|
||||||
omarchy-refresh-config elephant/desktopapplications.toml
|
omarchy-refresh-config elephant/desktopapplications.toml
|
||||||
|
|
||||||
|
# Restart service
|
||||||
omarchy-restart-walker
|
omarchy-restart-walker
|
||||||
|
|||||||
@@ -10,6 +10,7 @@ if gum confirm "Are you sure you want to remove all preinstalled web apps, TUI w
|
|||||||
omarchy-tui-remove-all
|
omarchy-tui-remove-all
|
||||||
|
|
||||||
omarchy-pkg-drop \
|
omarchy-pkg-drop \
|
||||||
|
aether \
|
||||||
typora \
|
typora \
|
||||||
spotify \
|
spotify \
|
||||||
libreoffice-fresh \
|
libreoffice-fresh \
|
||||||
|
|||||||
@@ -2,4 +2,6 @@
|
|||||||
|
|
||||||
# Reload opencode configuration (used by the Omarchy theme switching).
|
# Reload opencode configuration (used by the Omarchy theme switching).
|
||||||
|
|
||||||
killall -SIGUSR2 opencode
|
if pgrep -x opencode >/dev/null; then
|
||||||
|
killall -SIGUSR2 opencode
|
||||||
|
fi
|
||||||
|
|||||||
@@ -31,4 +31,6 @@ create)
|
|||||||
restore)
|
restore)
|
||||||
sudo limine-snapper-restore
|
sudo limine-snapper-restore
|
||||||
;;
|
;;
|
||||||
|
delete)
|
||||||
|
sudo snapper -c "$config" delete 0
|
||||||
esac
|
esac
|
||||||
|
|||||||
9
bin/omarchy-theme-refresh
Executable file
9
bin/omarchy-theme-refresh
Executable file
@@ -0,0 +1,9 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Refresh the current theme from its templates.
|
||||||
|
|
||||||
|
THEME_NAME_PATH="$HOME/.config/omarchy/current/theme.name"
|
||||||
|
|
||||||
|
if [[ -f $THEME_NAME_PATH ]]; then
|
||||||
|
omarchy-theme-set "$(cat $THEME_NAME_PATH)"
|
||||||
|
fi
|
||||||
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
trap 'echo ""; echo -e "\033[0;31mSomething went wrong during the update!\n\nPlease review the output above carefully, correct the error, and retry the update.\n\nIf you need assistance, get help from the community at https://omarchy.org/discord\033[0m"' ERR
|
trap 'echo ""; echo -e "\033[0;31mSomething went wrong during the update!\n\nPlease review the output above carefully, correct the error, and retry the update.\n\nIf you need assistance, get help from the community at https://omarchy.org/discord\033[0m";omarchy-snapshot delete' ERR
|
||||||
|
|
||||||
if [[ $1 == "-y" ]] || omarchy-update-confirm; then
|
if [[ $1 == "-y" ]] || omarchy-update-confirm; then
|
||||||
omarchy-snapshot create || [ $? -eq 127 ]
|
omarchy-snapshot create || [ $? -eq 127 ]
|
||||||
|
|||||||
52
config/tmux/tmux.conf
Normal file
52
config/tmux/tmux.conf
Normal file
@@ -0,0 +1,52 @@
|
|||||||
|
# Theme
|
||||||
|
source-file ~/.config/omarchy/current/theme/tmux.conf
|
||||||
|
|
||||||
|
# General
|
||||||
|
set -g default-terminal "tmux-256color"
|
||||||
|
set -ag terminal-overrides ",*:RGB"
|
||||||
|
set -g mouse on
|
||||||
|
set -g base-index 1
|
||||||
|
setw -g pane-base-index 1
|
||||||
|
set -g renumber-windows on
|
||||||
|
set -g history-limit 50000
|
||||||
|
set -g escape-time 0
|
||||||
|
set -g focus-events on
|
||||||
|
set -g set-clipboard on
|
||||||
|
setw -g aggressive-resize on
|
||||||
|
set -g detach-on-destroy off
|
||||||
|
|
||||||
|
# Status bar
|
||||||
|
set -g status-position top
|
||||||
|
set -g status-interval 5
|
||||||
|
set -g status-left-length 30
|
||||||
|
set -g status-right-length 50
|
||||||
|
set -g window-status-separator ""
|
||||||
|
|
||||||
|
# Reload config
|
||||||
|
bind M-r source-file ~/.config/tmux/tmux.conf
|
||||||
|
|
||||||
|
# Rename window / session
|
||||||
|
bind r command-prompt -I "#W" "rename-window -- '%%'"
|
||||||
|
bind R command-prompt -I "#S" "rename-session -- '%%'"
|
||||||
|
|
||||||
|
# Vi mode for copy
|
||||||
|
setw -g mode-keys vi
|
||||||
|
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 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}"
|
||||||
|
bind - split-window -v -c "#{pane_current_path}"
|
||||||
|
|
||||||
|
# New windows in same directory
|
||||||
|
bind c new-window -c "#{pane_current_path}"
|
||||||
|
|
||||||
|
# Sessions
|
||||||
|
bind C new-session
|
||||||
|
bind X kill-session
|
||||||
@@ -34,6 +34,7 @@ alias ....='cd ../../..'
|
|||||||
alias c='opencode'
|
alias c='opencode'
|
||||||
alias d='docker'
|
alias d='docker'
|
||||||
alias r='rails'
|
alias r='rails'
|
||||||
|
alias t='tmux attach || tmux new -s Work'
|
||||||
n() { if [ "$#" -eq 0 ]; then nvim .; else nvim "$@"; fi; }
|
n() { if [ "$#" -eq 0 ]; then nvim .; else nvim "$@"; fi; }
|
||||||
|
|
||||||
# Git
|
# Git
|
||||||
|
|||||||
@@ -9,3 +9,4 @@ source ~/.local/share/omarchy/default/bash/rc
|
|||||||
#
|
#
|
||||||
# Make an alias for invoking commands you use constantly
|
# Make an alias for invoking commands you use constantly
|
||||||
# alias p='python'
|
# alias p='python'
|
||||||
|
# alias cx="claude --permission-mode=plan --allow-dangerously-skip-permissions"
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
[Sleep]
|
[Sleep]
|
||||||
HibernateDelaySec=90min
|
HibernateDelaySec=90min
|
||||||
HibernateOnACPower=no
|
SuspendEstimationSec=0
|
||||||
|
|||||||
11
default/themed/tmux.conf.tpl
Normal file
11
default/themed/tmux.conf.tpl
Normal 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 }}"
|
||||||
3
default/walker/restart.conf
Normal file
3
default/walker/restart.conf
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
[Service]
|
||||||
|
Restart=always
|
||||||
|
RestartSec=2
|
||||||
@@ -39,3 +39,4 @@ run_logged $OMARCHY_INSTALL/config/hardware/fix-surface-keyboard.sh
|
|||||||
run_logged $OMARCHY_INSTALL/config/hardware/fix-asus-rog-audio-mixer.sh
|
run_logged $OMARCHY_INSTALL/config/hardware/fix-asus-rog-audio-mixer.sh
|
||||||
run_logged $OMARCHY_INSTALL/config/hardware/fix-asus-rog-mic.sh
|
run_logged $OMARCHY_INSTALL/config/hardware/fix-asus-rog-mic.sh
|
||||||
run_logged $OMARCHY_INSTALL/config/hardware/fix-yt6801-ethernet-adapter.sh
|
run_logged $OMARCHY_INSTALL/config/hardware/fix-yt6801-ethernet-adapter.sh
|
||||||
|
run_logged $OMARCHY_INSTALL/config/hardware/fix-synaptic-touchpad.sh
|
||||||
|
|||||||
6
install/config/hardware/fix-synaptic-touchpad.sh
Executable file
6
install/config/hardware/fix-synaptic-touchpad.sh
Executable file
@@ -0,0 +1,6 @@
|
|||||||
|
# Enable Synaptics InterTouch for confirmed touchpads if not already loaded
|
||||||
|
|
||||||
|
if grep -qi synaptics /proc/bus/input/devices \
|
||||||
|
&& ! lsmod | grep -q '^psmouse'; then
|
||||||
|
modprobe psmouse synaptics_intertouch=1
|
||||||
|
fi
|
||||||
@@ -4,6 +4,10 @@
|
|||||||
mkdir -p ~/.config/autostart/
|
mkdir -p ~/.config/autostart/
|
||||||
cp $OMARCHY_PATH/default/walker/walker.desktop ~/.config/autostart/
|
cp $OMARCHY_PATH/default/walker/walker.desktop ~/.config/autostart/
|
||||||
|
|
||||||
|
# And is restarted if it crashes or is killed
|
||||||
|
mkdir -p ~/.config/systemd/user/app-walker@autostart.service.d/
|
||||||
|
cp $OMARCHY_PATH/default/walker/restart.conf ~/.config/systemd/user/app-walker@autostart.service.d/restart.conf
|
||||||
|
|
||||||
# Create pacman hook to restart walker after updates
|
# Create pacman hook to restart walker after updates
|
||||||
sudo mkdir -p /etc/pacman.d/hooks
|
sudo mkdir -p /etc/pacman.d/hooks
|
||||||
sudo tee /etc/pacman.d/hooks/walker-restart.hook > /dev/null << EOF
|
sudo tee /etc/pacman.d/hooks/walker-restart.hook > /dev/null << EOF
|
||||||
|
|||||||
@@ -120,6 +120,7 @@ swayosd
|
|||||||
system-config-printer
|
system-config-printer
|
||||||
tldr
|
tldr
|
||||||
tree-sitter-cli
|
tree-sitter-cli
|
||||||
|
tmux
|
||||||
tobi-try
|
tobi-try
|
||||||
ttf-cascadia-mono-nerd
|
ttf-cascadia-mono-nerd
|
||||||
ttf-ia-writer
|
ttf-ia-writer
|
||||||
|
|||||||
6
migrations/1770375817.sh
Normal file
6
migrations/1770375817.sh
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
echo "Ensure walker service is restarted if it's killed or crashes"
|
||||||
|
|
||||||
|
mkdir -p ~/.config/systemd/user/app-walker@autostart.service.d/
|
||||||
|
cp $OMARCHY_PATH/default/walker/restart.conf ~/.config/systemd/user/app-walker@autostart.service.d/restart.conf
|
||||||
|
systemctl --user daemon-reload
|
||||||
|
|
||||||
9
migrations/1770638893.sh
Normal file
9
migrations/1770638893.sh
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
echo "Add Tmux as an option with themed styling"
|
||||||
|
|
||||||
|
omarchy-pkg-add tmux
|
||||||
|
|
||||||
|
if [[ ! -f ~/.config/tmux/tmux.conf ]]; then
|
||||||
|
mkdir -p ~/.config/tmux
|
||||||
|
cp $OMARCHY_PATH/config/tmux/tmux.conf ~/.config/tmux/tmux.conf
|
||||||
|
omarchy-theme-refresh
|
||||||
|
fi
|
||||||
|
Before Width: | Height: | Size: 1.1 MiB After Width: | Height: | Size: 1.1 MiB |
|
Before Width: | Height: | Size: 955 KiB After Width: | Height: | Size: 955 KiB |
|
Before Width: | Height: | Size: 444 KiB After Width: | Height: | Size: 444 KiB |
@@ -1,9 +1,4 @@
|
|||||||
return {
|
return {
|
||||||
-- required for the vantablack nvim theme
|
|
||||||
{
|
|
||||||
"bjarneo/aether.nvim",
|
|
||||||
branch = "v2",
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"bjarneo/vantablack.nvim",
|
"bjarneo/vantablack.nvim",
|
||||||
priority = 1000,
|
priority = 1000,
|
||||||
|
|||||||
Reference in New Issue
Block a user