diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..397b4a7 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +*.log diff --git a/.tmux-powerlinerc b/.tmux-powerlinerc index aad01da..1cc60a8 100644 --- a/.tmux-powerlinerc +++ b/.tmux-powerlinerc @@ -2,6 +2,8 @@ # Modeline { # vi: foldmarker={,} foldmethod=marker foldlevel=0 tabstop=4 filetype=sh # } +export TMUX_POWERLINE_DIR_USER_SEGMENTS=/cygdrive/c/Users/Corinthe/.dotfiles/tmux-powerline/segments +export TMUX_POWERLINE_DIR_USER_THEMES=/cygdrive/c/Users/Corinthe/.dotfiles/tmux-powerline/themes export TMUX_POWERLINE_DIR_TEMPORARY=/tmp # General { # Show which segment fails and its exit code. @@ -25,7 +27,7 @@ export TMUX_POWERLINE_DIR_TEMPORARY=/tmp export TMUX_POWERLINE_STATUS_JUSTIFICATION="left" # The maximum length of the left status bar. - export TMUX_POWERLINE_STATUS_LEFT_LENGTH="80" + export TMUX_POWERLINE_STATUS_LEFT_LENGTH="90" # The maximum length of the right status bar. export TMUX_POWERLINE_STATUS_RIGHT_LENGTH="50" diff --git a/.tmux/.tmux.conf b/.tmux.conf similarity index 90% rename from .tmux/.tmux.conf rename to .tmux.conf index e99aacc..bdc39a2 100644 --- a/.tmux/.tmux.conf +++ b/.tmux.conf @@ -1,4 +1,4 @@ -set-environment XDG_CONFIG_HOME "~/.dotfiles" +#set-environment XDG_CONFIG_HOME ~/.dotfiles unbind C-b set-option -g prefix C-a bind-key C-a send-prefix @@ -11,12 +11,12 @@ unbind % #set-option -g autom -bind r source-file ~/.dotfiles/.tmux/.tmux.conf +bind r source-file ~/.dotfiles/.tmux.conf set-window-option -g clock-mode-style 12 set-option clock-mode-colour "#00e7e3" set -g window-status-current-format '' -#set-option -g status-bg "#232323" +set-option -g status-bg "#232323" #set-option -g status-fg "#000011" set -g pane-border-status top set -g message-style 'bg=#00d9db,fg=#000011' @@ -37,8 +37,8 @@ set-environment -g TMUX_PLUGIN_MANAGER_PATH "~/.dotfiles/.tmux/plugins/" # List of plugins set -g @plugin 'tmux-plugins/tpm' set -g @plugin 'tmux-plugins/tmux-sensible' -set -g @plugin 'erikw/tmux-powerline' set -g @plugin 'thewtex/tmux-mem-cpu-load' +set -g @plugin 'erikw/tmux-powerline' # Other examples: # set -g @plugin 'github_username/plugin_name' diff --git a/tmux-powerline/themes/tablet.sh b/tmux-powerline/themes/tablet.sh new file mode 100644 index 0000000..ad5bbac --- /dev/null +++ b/tmux-powerline/themes/tablet.sh @@ -0,0 +1,119 @@ +# ~ + + +##### + +if patched_font_in_use; then + TMUX_POWERLINE_SEPARATOR_LEFT_BOLD="" + TMUX_POWERLINE_SEPARATOR_LEFT_THIN="" + TMUX_POWERLINE_SEPARATOR_RIGHT_BOLD="" + TMUX_POWERLINE_SEPARATOR_RIGHT_THIN="" +else + TMUX_POWERLINE_SEPARATOR_LEFT_BOLD="◀" + TMUX_POWERLINE_SEPARATOR_LEFT_THIN="❮" + TMUX_POWERLINE_SEPARATOR_RIGHT_BOLD="▶" + TMUX_POWERLINE_SEPARATOR_RIGHT_THIN="❯" +fi + +TMUX_POWERLINE_DEFAULT_BACKGROUND_COLOR=${TMUX_POWERLINE_DEFAULT_BACKGROUND_COLOR:-'235'} +TMUX_POWERLINE_DEFAULT_FOREGROUND_COLOR=${TMUX_POWERLINE_DEFAULT_FOREGROUND_COLOR:-'255'} + +TMUX_POWERLINE_DEFAULT_LEFTSIDE_SEPARATOR=${TMUX_POWERLINE_DEFAULT_LEFTSIDE_SEPARATOR:-$TMUX_POWERLINE_SEPARATOR_RIGHT_BOLD} +TMUX_POWERLINE_DEFAULT_RIGHTSIDE_SEPARATOR=${TMUX_POWERLINE_DEFAULT_RIGHTSIDE_SEPARATOR:-$TMUX_POWERLINE_SEPARATOR_LEFT_BOLD} + +# See man tmux.conf for additional formatting options for the status line. +# The `format regular` and `format inverse` functions are provided as conveinences + +if [ -z $TMUX_POWERLINE_WINDOW_STATUS_CURRENT ]; then + TMUX_POWERLINE_WINDOW_STATUS_CURRENT=( + "#[$(format inverse)]" \ + "$TMUX_POWERLINE_DEFAULT_LEFTSIDE_SEPARATOR" \ + " #I#F " \ + "$TMUX_POWERLINE_SEPARATOR_RIGHT_THIN" \ + " #W " \ + "#[$(format regular)]" \ + "$TMUX_POWERLINE_DEFAULT_LEFTSIDE_SEPARATOR" + ) +fi + +if [ -z $TMUX_POWERLINE_WINDOW_STATUS_STYLE ]; then + TMUX_POWERLINE_WINDOW_STATUS_STYLE=(\ + "$(format regular)" + ) +fi + +if [ -z $TMUX_POWERLINE_WINDOW_STATUS_FORMAT ]; then + TMUX_POWERLINE_WINDOW_STATUS_FORMAT=(\ + #"#[$(format regular)]" \ + #" #I#{?window_flags,#F, } " \ + # "$TMUX_POWERLINE_SEPARATOR_RIGHT_THIN" \ + #" #W " + ) +fi + +# Format: segment_name background_color foreground_color [non_default_separator] [separator_background_color] [separator_foreground_color] [spacing_disable] [separator_disable] +# +# non_default_separator - specify an alternative character for this segment's separator +# separator_background_color - specify a unique background color for the separator +# separator_foreground_color - specify a unique foreground color for the separator +# spacing_disable - remove space on left, right or both sides of the segment: +# +# "left_disable" - disable space on the left +# "right_disable" - disable space on the right +# "both_disable" - disable spaces on both sides +# * - any other character/string produces no change to default behavior (eg "none", "X", etc.) +# +# separator_disable - disables drawing a separator on this segment, very useful for segments +# with dynamic background colours (eg tmux_mem_cpu_load) +# +# "separator_disable" - disables the separator +# * - any other character/string produces no change to default behavior +# +# Example segment with separator disabled and right space character disabled: +# "hostname 33 0 {TMUX_POWERLINE_SEPARATOR_RIGHT_BOLD} 33 0 right_disable separator_disable" +# +# Note that although redundant the non_default_separator, separator_background_color and +# separator_foreground_color options must still be specified so that appropriate index +# of options to support the spacing_disable and separator_disable features can be used + +if [ -z $TMUX_POWERLINE_LEFT_STATUS_SEGMENTS ]; then + TMUX_POWERLINE_LEFT_STATUS_SEGMENTS=( +# "tmux_session_info 148 234" \ +# "hostname 33 0" \ + + # "ifstat 30 255" \ + #"ifstat_sys 30 255" \ + "cpu 30 255" \ +# "battery #cb46ff 255" \ + "wan_ip #7d18ff 255 ${TMUX_POWERLINE_SEPARATOR_RIGHT_BOLD}" \ + "pwd #1289FF 255 ${TMUX_POWERLINE_SEPARATOR_RIGHT_BOLD}" \ + "now_playing #00e7e3 235 ${TMUX_POWERLINE_SEPARATOR_RIGHT_BOLD} #00e7e3 #333333 default" \ + #"lan_ip #affffe 235 ${TMUX_POWERLINE_SEPARATOR_RIGHT_BOLD} '#000000' '#000000'" \ +# Metallica - Inamorata  + #"vcs_branch 29 88" \ + #"vcs_compare 60 255" \ + #"vcs_staged 64 255" \ + #"vcs_modified 9 255" \ + #"vcs_others 245 0" \ + ) +fi + +if [ -z $TMUX_POWERLINE_RIGHT_STATUS_SEGMENTS ]; then + TMUX_POWERLINE_RIGHT_STATUS_SEGMENTS=( + #"earthquake 3 0" \ +# "pwd 89 211" \ + #"macos_notification_count 29 255" \ + #"mailcount 9 255" \ + #"cpu 240 136" \ + #"load 237 167" \ + #"tmux_mem_cpu_load 234 136" \ +# "battery 137 127" \ +# "weather 37 255" \ + #"rainbarf 0 ${TMUX_POWERLINE_DEFAULT_FOREGROUND_COLOR}" \ + #"xkb_layout 125 117" \ + "date_day 235 #24c8ff" \ + "date 235 #ad55ff ${TMUX_POWERLINE_SEPARATOR_LEFT_THIN}" \ + "time 235 #ff55a2 ${TMUX_POWERLINE_SEPARATOR_LEFT_THIN}" \ + #"utc_time 235 136 ${TMUX_POWERLINE_SEPARATOR_LEFT_THIN}" \ + ) +fi