From a827d159f7679382fecac8ee05bb73739eb7ea74 Mon Sep 17 00:00:00 2001 From: Dane Williams Date: Fri, 13 Mar 2020 22:16:19 -0700 Subject: [PATCH] airline-dracula fork --- .dracula.tmux.swp | Bin 12288 -> 0 bytes LICENSE | 21 ------------ README.md | 30 +++++++++++++++-- dracula.tmux | 81 +++++++++++++++++++++------------------------- 4 files changed, 65 insertions(+), 67 deletions(-) delete mode 100644 .dracula.tmux.swp delete mode 100644 LICENSE diff --git a/.dracula.tmux.swp b/.dracula.tmux.swp deleted file mode 100644 index 089cd0be919851a7eb732a8278fff3783c0ff097..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 12288 zcmeI2J8T?97{|vn#6SpwCRBX6^(l#Td*?g9&PEnOSb`LmctmdBcZ z|H>wHn{9^AbBw)s-T!bkxi@qFq?WWC}b`;n=&6=UeCOUp1 z2W)Lbb{>c@OIxpd+1nzH(pDDa`=*m{JNJ33d^Tm}!~nXe31|Y3Me!#~Vxc(gZXCO+XXS1T+CnKoigeG=Wn|Ad6?%O*ns|biYtOXC|IyQ9m>R zO+XXS1T+CnKoigeGyzRO6VL=S0Zrf(65tMFH=kszcLwJ1|Nqh7|9_uj>@Vm?=o{#3 z=q_{{`W)JUHla3j9y$X(e3r4_piRo)Q8@M&O^VQW$ahz9`psoq3h6F z&;s=E8ODBw?m)MpThL3;cTY3+E%X(14%&Z;u|H=S`vbZUeG1i~8(2>tQtLW}anY7F z0Zl*?&;&Gr{{w*`o0S*(C>5Ex=Y>wRXGU@6MIo6zDk@Sl&3Kllrky7VE(n@#lmtAZ znsLqTt(TSCz88vZJMyDs%eZFs*5?Lsp2WTwZpl`219TF-B+5glXf>Q{M#dE~u96z` z-_GS&$7dOC)lRlP={(I2d_gs3DE7jgVS|)ai`zS6=KjOjV`COeo-(RYLZyN!JFU;yl9HDA-E#k0M((De+UCQ~iy#`sP~woe^E!1(jDlN0F$1VAcb(?$FU? zPq%{zDSpb0eZWH*PsOz&R7X9NacORlBgFziACsMDWV*CyE|H1p@ja|-tC~h_c)8kE z6{NX=vQo@fVdO-Q#Y*5&U40EiVA^qR`Vn{Jet=2S3p0`Ia-TZNmq98>)8pt1SB0^F zRqUc88|Dz5Lb^r9;FV(MZGRL+fpE56pZ6N{;Il7@8bma#4AY3m*ko0^PDSZh#&2O( z+xKKv#EEdd{l;h;t5jA|fZFtI^$g39%d92_EQS7rC8mD)F^+oRgyZlAiYqP?Zs zSA=$2Uy4F$yx4LiPpWGFfk;!{6F4<+OqAACMpO?z-h7%fgUYs)iTy{wi*X6t??-#<7Y(=V@~(Z6%_hQ;MRy4w6pJ4K)L72yg1ahfkV~q?%BsDLa+L6} zCsd8qU6w=iOhX!pF_uuI?`P)Wsa$jVbU;`F#FT8XaH+JdOJnKiv8f}0m wUG;q5<3Wo0QBN;SV-IXdp`+C93mkqj2E|=^<3cM>la}R$EfMaL#nV3f2hpkKRR910 diff --git a/LICENSE b/LICENSE deleted file mode 100644 index bd37307..0000000 --- a/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2020 Dane Williams - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/README.md b/README.md index a820754..a60df21 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,28 @@ -# tmux-dracula -Color scheme for tmux inspired by the popular Dracula theme :) +# tmux-airline-dracula + +A tmux theme for Dracula color scheme. + +![Screenshot](https://raw.githubusercontent.com/sei40kr/tmux-airline-dracula/master/screenshot.png) + +## Installation + +1. Install using tpm. + + ```tmux + set -g @plugin 'sei40kr/tmux-airline-dracula' + ``` + +## Manual Installation + +1. Clone this repository. + + ```sh + git clone --depth=1 https://github.com/sei40kr/tmux-airline-dracula.git + ``` + +1. Add following to your `.tmux.conf`. + + ```tmux + run-shell '. /path/to/tmux-airline-dracula/airline-dracula.tmux' + ``` + diff --git a/dracula.tmux b/dracula.tmux index d58ec3b..74d7375 100755 --- a/dracula.tmux +++ b/dracula.tmux @@ -1,51 +1,44 @@ #!/usr/bin/env bash -# Dracula inspired color scheme for tmux -# Author: Dane Williams +main() { -main() -{ - # Dracula Color Palette - background_color='#282a36' - current_line_color='#44475a' - foreground_color='#f8f8f2' - comment_color='#6272a4' - cyan='#8be9fd' - green='#50fa7b' - orange='#ffb86c' - pink='#ff79c6' - purple='#bd93f9' - red='#ff5555' - yellow='#f1fa8c' + ## Colors + black='colour16' + white='colour255' + gray='colour236' + dark_gray='colour236' + yellow='colour215' + light_purple='colour141' + dark_purple='colour61' - tmux set-option -g default-terminal "screen-256color" - - # border for panes - tmux set-option -g pane-border-style-fg "${comment_color}" - tmux set-option -g pane-active-border-style-fg "${pink}" + ## Icons + left_sep='' + right_sep='' + right_alt_sep='' - # message text - tmux set-option -g message-style-bg "${current_line_color}" - tmux set-option -g message-style-fg "${cyan}" - - # status line - tmux set-option -g status on - tmux set-option -g status-style-bg "${current_line_color}" - tmux set-option -g status-style-fg "${purple}" - tmux set-option -g status-interval 1 - - # left - tmux set-option -g status-left "#[bg=${foreground_color}]#[fg=${background_color}]#{?client_prefix,#[bg=${pink}],} ☺" - tmux set-option -ga status-left "#[bg=${current_line_color}]#[fg=${pink}] #{?window_zoomed_flag, ↕ , }" - - # right - tmux set-option -g status-right "#[fg=${cyan},bg=${current_line_color}]#[fg=${current_line_color},bg=${cyan}] #(tmux-mem-cpu-load -g 5 --interval 2) " - tmux set-option -ga status-right "#[fg=${pink},bg=${cyan}]#[fg=${current_line_color},bg=${pink}] #(${uptime | cut -f 4-5 -d " " | cut -f 1 -d ","}) " - tmux set-option -ga status-right "#[fg={purple},bg=${pink}][fg=${foreground_color},bg=${purple}] %a %H:%M:%S #[fg=${comment_color}]%Y-%m-%d " - - # window status - tmux set-window-option -g window-status-style "fg=${purple}, bg=${background_color}" - tmux set-window-option -g window-status-current-style "fg=${pink}, bg=${background_color}" - tmux set-window-option -g windows-status-current-format "#[fg=current_line_color]#[bg=${purple}][fg=${foreground_color}]#[bg=${purple}] #I #W #[fg=${purple}]#[bg=${current_line_color}]" + tmux set-option -g status on + tmux set-option -g status-left-length 100 + tmux set-option -g status-right-length 100 + tmux set-option -g status-bg "${dark_gray}" + tmux set-option -g pane-active-border-fg "${dark_purple}" + tmux set-option -g pane-border-fg "${gray}" + tmux set-option -g message-bg "${gray}" + tmux set-option -g message-fg "${white}" + tmux set-option -g message-command-bg "${gray}" + tmux set-option -g message-command-fg "${white}" + tmux set-option -g status-left " #I #[fg=${dark_gray},reverse]${right_sep} " + tmux set-option -g status-left-style "fg=${white},bg=${dark_purple},bold" + tmux set-option -g status-right "${left_sep}#[bg=${black},reverse] %Y-%m-%d %H:%M " + tmux set-option -g status-right-style "fg=${light_purple},bg=${dark_gray}" + tmux set-window-option -g window-status-activity-style "fg=${white},bg=${gray}" + tmux set-window-option -g window-status-separator '' + tmux set-window-option -g window-status-format ' #I #W ' + tmux set-window-option -g window-status-style "fg=${yellow},bg=${dark_gray}" + tmux set-window-option -g window-status-current-format \ + "${right_sep}#[fg=${black}] #I ${right_alt_sep} #W #[fg=${dark_gray},reverse]${right_sep}" + tmux set-window-option -g window-status-current-style "fg=${dark_gray},bg=${light_purple}" } +main + +# vim: set filetype=bash