Added left icon padding configuration
This commit is contained in:
parent
857d57df7c
commit
5b31360b95
2 changed files with 10 additions and 4 deletions
|
@ -28,6 +28,7 @@ Customize the status bar by adding any of these lines to your .tmux.conf as desi
|
||||||
* Enable military time: `set -g @dracula-military-time true`
|
* Enable military time: `set -g @dracula-military-time true`
|
||||||
* Disable timezone: `set -g @dracula-show-timezone false`
|
* Disable timezone: `set -g @dracula-show-timezone false`
|
||||||
* Switch the left smiley icon `set -g @dracula-show-left-icon session` it can accept `session`, `smiley`, `window`, or any character.
|
* Switch the left smiley icon `set -g @dracula-show-left-icon session` it can accept `session`, `smiley`, `window`, or any character.
|
||||||
|
* Add padding to the left smiley icon `set -g @dracula-left-icon-padding` default is 1, it can accept any number and 0 disables padding.
|
||||||
* Enable high contrast pane border: `set -g @dracula-border-contrast true`
|
* Enable high contrast pane border: `set -g @dracula-border-contrast true`
|
||||||
* Enable cpu usage: `set -g @dracula-cpu-usage true`
|
* Enable cpu usage: `set -g @dracula-cpu-usage true`
|
||||||
* Enable ram usage: `set -g @dracula-ram-usage true`
|
* Enable ram usage: `set -g @dracula-ram-usage true`
|
||||||
|
|
|
@ -27,6 +27,7 @@ main()
|
||||||
show_powerline=$(get_tmux_option "@dracula-show-powerline" false)
|
show_powerline=$(get_tmux_option "@dracula-show-powerline" false)
|
||||||
show_flags=$(get_tmux_option "@dracula-show-flags" false)
|
show_flags=$(get_tmux_option "@dracula-show-flags" false)
|
||||||
show_left_icon=$(get_tmux_option "@dracula-show-left-icon" smiley)
|
show_left_icon=$(get_tmux_option "@dracula-show-left-icon" smiley)
|
||||||
|
show_left_icon_padding=$(get_tmux_option "@dracula-left-icon-padding" 1)
|
||||||
show_military=$(get_tmux_option "@dracula-military-time" false)
|
show_military=$(get_tmux_option "@dracula-military-time" false)
|
||||||
show_timezone=$(get_tmux_option "@dracula-show-timezone" true)
|
show_timezone=$(get_tmux_option "@dracula-show-timezone" true)
|
||||||
show_left_sep=$(get_tmux_option "@dracula-show-left-sep" )
|
show_left_sep=$(get_tmux_option "@dracula-show-left-sep" )
|
||||||
|
@ -62,9 +63,13 @@ main()
|
||||||
window)
|
window)
|
||||||
left_icon="#W";;
|
left_icon="#W";;
|
||||||
*)
|
*)
|
||||||
left_icon="$show_left_icon ";;
|
left_icon=$show_left_icon;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
# Handle left icon padding
|
||||||
|
padding="$(seq -f " " -s '' $show_left_icon_padding)"
|
||||||
|
left_icon="$left_icon$padding"
|
||||||
|
|
||||||
# Handle powerline option
|
# Handle powerline option
|
||||||
if $show_powerline; then
|
if $show_powerline; then
|
||||||
right_sep="$show_right_sep"
|
right_sep="$show_right_sep"
|
||||||
|
|
Loading…
Reference in a new issue