Compare commits
4 Commits
6e1d7df5b5
...
main
Author | SHA1 | Date | |
---|---|---|---|
7c9567c880
|
|||
6010a26f0b
|
|||
906c498a08
|
|||
fe62bf4d99
|
@@ -1,4 +1,7 @@
|
|||||||
# vi:syntax=tmux
|
# vi:syntax=tmux
|
||||||
|
# Include current color theme
|
||||||
|
source-file ~/.config/tmux/current-theme.conf
|
||||||
|
|
||||||
# Reload the config with the "r" key
|
# Reload the config with the "r" key
|
||||||
bind r source-file ~/.tmux.conf \; display-message "Config reloaded..."
|
bind r source-file ~/.tmux.conf \; display-message "Config reloaded..."
|
||||||
|
|
||||||
@@ -15,26 +18,21 @@ set -g default-terminal "screen-256color"
|
|||||||
|
|
||||||
# Set titles to be informative
|
# Set titles to be informative
|
||||||
set -g set-titles on
|
set -g set-titles on
|
||||||
set -g set-titles-string "tmux: [#H] [#S] [#W:#D #I:#P]"
|
set -g set-titles-string "[#H:#S] #W:#D-#I:#P (tmux)"
|
||||||
|
|
||||||
# Change pane colors
|
|
||||||
set -g pane-border-style fg=colour237
|
|
||||||
set -g pane-active-border-style fg=colour199
|
|
||||||
|
|
||||||
# Tweak currently active window
|
# Tweak currently active window
|
||||||
setw -g window-status-current-format " #F[#W] "
|
#setw -g window-status-current-format " #F[#W] "
|
||||||
# Tweak last active window style
|
|
||||||
|
|
||||||
# Tweak display of window overview
|
# Tweak display of window overview
|
||||||
setw -g window-status-format " #F[#W][#I] "
|
#setw -g window-status-format " #F[#W][#I] "
|
||||||
|
|
||||||
# Tweak status line design
|
# Status bar content
|
||||||
set -g status-justify centre
|
set -g status-justify centre
|
||||||
set -g status-left " [#H] [#S] "
|
set -g status-left " [#{user}@#H:#S] "
|
||||||
set -g status-left-length 100
|
set -g status-left-length 100
|
||||||
set -g status-right '[%Y-%m-%d %H:%M.%S]'
|
set -g status-right '[%Y-%m-%d %H:%M.%S]'
|
||||||
# Refresh status bar every 2s
|
# Refresh status bar every second
|
||||||
set -g status-interval 2
|
set -g status-interval 1
|
||||||
|
|
||||||
# Set some helpful limits & modes
|
# Set some helpful limits & modes
|
||||||
set -g mouse off
|
set -g mouse off
|
||||||
@@ -44,8 +42,7 @@ set -g history-limit 500000
|
|||||||
setw -g aggressive-resize on
|
setw -g aggressive-resize on
|
||||||
|
|
||||||
# Retain cwd on new pane creation
|
# Retain cwd on new pane creation
|
||||||
bind c new-window -c "#{pane_current_path}"
|
#bind c new-window -c "#{pane_current_path}"
|
||||||
|
|
||||||
source-file ~/.config/tmux/current-theme.conf
|
|
||||||
|
|
||||||
#refresh-client
|
#refresh-client
|
||||||
|
6
local/share/dark-mode.d/kde.sh
Executable file
6
local/share/dark-mode.d/kde.sh
Executable file
@@ -0,0 +1,6 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
set -euo pipefail
|
||||||
|
|
||||||
|
if command -v lookandfeeltool; then
|
||||||
|
lookandfeeltool -a org.kde.breezedark.desktop
|
||||||
|
fi
|
@@ -1,7 +1,10 @@
|
|||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
CONFIG_HOME="${XDG_CONFIG_HOME:-$HOME/.config}"
|
||||||
|
set -euo pipefail
|
||||||
|
BASE="$(dirname $0)/../../.."
|
||||||
|
|
||||||
ln -fs dark-mode.conf ~/.config/tmux/current-theme.conf
|
ln -fvs "${BASE}/config/tmux/dark-mode.conf" "${CONFIG_HOME}/tmux/current-theme.conf"
|
||||||
|
|
||||||
if tmux list-sessions; then
|
if tmux list-sessions; then
|
||||||
tmux source ~/.tmux.conf
|
tmux source "${CONFIG_HOME}/tmux/tmux.conf"
|
||||||
fi
|
fi
|
||||||
|
6
local/share/light-mode.d/kde.sh
Executable file
6
local/share/light-mode.d/kde.sh
Executable file
@@ -0,0 +1,6 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
set -euo pipefail
|
||||||
|
|
||||||
|
if command -v lookandfeeltool; then
|
||||||
|
lookandfeeltool -a org.kde.breeze.desktop
|
||||||
|
fi
|
@@ -1,7 +1,10 @@
|
|||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
CONFIG_HOME="${XDG_CONFIG_HOME:-$HOME/.config}"
|
||||||
|
set -eou pipefail
|
||||||
|
BASE="$(dirname $0)/../../.."
|
||||||
|
|
||||||
ln -fs light-mode.conf ~/.config/tmux/current-theme.conf
|
ln -fvs "${BASE}/config/tmux/light-mode.conf" "${CONFIG_HOME}/tmux/current-theme.conf"
|
||||||
|
|
||||||
if tmux list-sesions; then
|
if tmux list-sessions; then
|
||||||
tmux source ~/.tmux.conf
|
tmux source "${CONFIG_HOME}/tmux/tmux.conf"
|
||||||
fi
|
fi
|
||||||
|
Reference in New Issue
Block a user