dot

packages and services management
Log | Files | Refs | README

commit 33c8cc31a9bc35e06fd592d10c4fbe42f213086a
parent db9be3f7aaca3a0b1f1a053b58152e2e9440f2fd
Author: josuah <mail@josuah.net>
Date:   Fri, 28 Oct 2016 00:12:53 -0400

Added theme script and separate theme files

Diffstat:
Mbin/buffers | 5+++--
Abin/theme | 49+++++++++++++++++++++++++++++++++++++++++++++++++
Mshell/.config/shell/functions | 10----------
Ashell/.config/themes/bioelectric | 32++++++++++++++++++++++++++++++++
Ashell/.config/themes/coal | 32++++++++++++++++++++++++++++++++
Ashell/.config/themes/drakula | 32++++++++++++++++++++++++++++++++
Ashell/.config/themes/ghost | 32++++++++++++++++++++++++++++++++
Ashell/.config/themes/gotham | 32++++++++++++++++++++++++++++++++
Ashell/.config/themes/gruvbox | 32++++++++++++++++++++++++++++++++
Ashell/.config/themes/matrix | 32++++++++++++++++++++++++++++++++
Ashell/.config/themes/monokai | 32++++++++++++++++++++++++++++++++
Ashell/.config/themes/pink | 32++++++++++++++++++++++++++++++++
Ashell/.config/themes/solarized_dark | 32++++++++++++++++++++++++++++++++
Ashell/.config/themes/solarized_light | 32++++++++++++++++++++++++++++++++
Ashell/.config/themes/zenburn | 31+++++++++++++++++++++++++++++++
Mshell/.profile | 56+++-----------------------------------------------------
16 files changed, 438 insertions(+), 65 deletions(-)

diff --git a/bin/buffers b/bin/buffers @@ -183,7 +183,7 @@ session() { if [ -z "$SESSION" ] then - SESSION='session' TERM='screen' abduco -e '^\' -A 'session' + SESSION='session' TERM='screen' abduco -e '^\' -A 'session' $@ fi } @@ -200,7 +200,8 @@ a | attach ) attach ;; s | session ) - session + shift + session $@ ;; * ) printf '%s\n' "$help" diff --git a/bin/theme b/bin/theme @@ -0,0 +1,49 @@ +# ---- | +# | |--. ,--. --.-. ,--. +# | | | |--' | | | |--' +# ' ' ' `--' ' ' ' `--' 2016-10-27 +#------------------------------------------------------------------------------- +# Set a x-ressource theme to the tty +# +# Set the directory where you usually set your themes: +THEMES="$HOME/.config/themes" +# +# Then run this script, with either one theme name as argument, or as is, to +# run it in an interactively filter. You can set the filter to something like +# fzf, fzy, slmenu, pick, pick, selecta... +FILTER='iomenu' + +# if no argument +if [ $# = 0 ] +then + # interactively prompt for a color theme + ls "$THEMES" | $FILTER +else + # otherwise use the one from the command line argument + printf %s $1 +fi | xargs -i sed -rn ' + +# remove comment lines +/^[[:space:]]*!.*/ d + +# remove empty lines +/^[[:space:]]*$/ d + +# convert colors numbers from decimal to hexadecimal +s/color10/colorA/ +s/color11/colorB/ +s/color12/colorC/ +s/color13/colorD/ +s/color14/colorE/ +s/color15/colorF/ + +# print escaped color names +s/.*\.color([0-9A-F])[[:space:]]*:[[:space:]]*#/\1/ p + +' "$THEMES/{}" | while read color +do + # TTY color escape codes + printf '\033]P%s' "$color" +done + +clear diff --git a/shell/.config/shell/functions b/shell/.config/shell/functions @@ -22,16 +22,6 @@ color() } -theme() -{ - printf "$(printf %s "$THEMES" | sed -n "/${1-$( - printf '%s' "$THEMES" | sed 's/ .*$//' | fzf --margin=10,20 - )}/ s/P/\\\\033]P/g p")" - - clear - color -} - # MANAGE PROJECTS #------------------------------------------------------------------------------- diff --git a/shell/.config/themes/bioelectric b/shell/.config/themes/bioelectric @@ -0,0 +1,32 @@ +! black +*.color0: #000d00 +*.color8: #335544 + +! red +*.color1: #bb3300 +*.color9: #ff5522 + +! green +*.color2: #00aa55 +*.color10: #44ff88 + +! yellow +*.color3: #bbbb33 +*.color11: #eeff77 + +! blue +*.color4: #339988 +*.color12: #66ddcc + +! magenta +*.color5: #bb5566 +*.color13: #ec93d3 + +! cyan +*.color6: #339977 +*.color14: #77ddbb + +! white +*.color7: #b4b4b4 +*.color15: #ffffff + diff --git a/shell/.config/themes/coal b/shell/.config/themes/coal @@ -0,0 +1,32 @@ +! black +*.color0: #000000 +*.color8: #555555 + +! red +*.color1: #ee3333 +*.color9: #ff6666 + +! green +*.color2: #88ff44 +*.color10: #aaff66 + +! yellow +*.color3: #ffcc55 +*.color11: #ffff99 + +! blue +*.color4: #77aaaa +*.color12: #aaddff + +! magenta +*.color5: #888888 +*.color13: #aaaaaa + +! cyan +*.color6: #55ee99 +*.color14: #99ffbb + +! white +*.color7: #cccccc +*.color15: #ffffff + diff --git a/shell/.config/themes/drakula b/shell/.config/themes/drakula @@ -0,0 +1,32 @@ +! black +*.color0: #282a36 +*.color8: #888db4 + +! red +*.color1: #cc4343 +*.color9: #ff5555 + +! green +*.color2: #42c763 +*.color10: #50fa7b + +! yellow +*.color3: #ffb86c +*.color11: #f1fa8c + +! blue +*.color4: #6272a4 +*.color12: #8196d6 + +! magenta +*.color5: #bd93f9 +*.color13: #ff79c6 + +! cyan +*.color6: #6fb9c9 +*.color14: #8be9fd + +! white +*.color7: #e6e6d5 +*.color15: #ffffff + diff --git a/shell/.config/themes/ghost b/shell/.config/themes/ghost @@ -0,0 +1,32 @@ +! black +*.color0: #000000 +*.color8: #334444 + +! red +*.color1: #91265C +*.color9: #E71E5B + +! green +*.color2: #439a64 +*.color10: #72f4a0 + +! yellow +*.color3: #ccdd66 +*.color11: #f5ff8B + +! blue +*.color4: #55aaaa +*.color12: #99bbff + +! magenta +*.color5: #516583 +*.color13: #676cb0 + +! cyan +*.color6: #4a8f86 +*.color14: #00ffff + +! white +*.color7: #99bbbb +*.color15: #ffffff + diff --git a/shell/.config/themes/gotham b/shell/.config/themes/gotham @@ -0,0 +1,32 @@ +! black +*.color0: #0a0f14 +*.color8: #406068 + +! red +*.color1: #c33027 +*.color9: #d26939 + +! green +*.color2: #26a98b +*.color10: #30dbb3 + +! yellow +*.color3: #edb54c +*.color11: #ffd280 + +! blue +*.color4: #195465 +*.color12: #268099 + +! magenta +*.color5: #4e5165 +*.color13: #888ba5 + +! cyan +*.color6: #33859d +*.color14: #599caa + +! white +*.color7: #98d1ce +*.color15: #d3ebe9 + diff --git a/shell/.config/themes/gruvbox b/shell/.config/themes/gruvbox @@ -0,0 +1,32 @@ +! black +*.color0: #282828 +*.color8: #928374 + +! red +*.color1: #cc241d +*.color9: #fb4934 + +! green +*.color2: #98971a +*.color10: #b8bb26 + +! yellow +*.color3: #d79921 +*.color11: #fabd2f + +! blue +*.color4: #458588 +*.color12: #83a598 + +! magenta +*.color5: #b16286 +*.color13: #d2869b + +! cyan +*.color6: #689d6a +*.color14: #8ec07c + +! white +*.color7: #d5c4a1 +*.color15: #ffffff + diff --git a/shell/.config/themes/matrix b/shell/.config/themes/matrix @@ -0,0 +1,32 @@ +! black +*.color0: #000000 +*.color8: #338833 + +! red +*.color1: #883300 +*.color9: #aa7733 + +! green +*.color2: #00aa55 +*.color10: #00ff88 + +! yellow +*.color3: #55aa33 +*.color11: #88ee66 + +! blue +*.color4: #339977 +*.color12: #33dd88 + +! magenta +*.color5: #668877 +*.color13: #77bb99 + +! cyan +*.color6: #119977 +*.color14: #66ddbb + +! white +*.color7: #77dd77 +*.color15: #ddffdd + diff --git a/shell/.config/themes/monokai b/shell/.config/themes/monokai @@ -0,0 +1,32 @@ +! black +*.color0: #48483e +*.color8: #76715e + +! red +*.color1: #dc2566 +*.color9: #fa2772 + +! green +*.color2: #8fc029 +*.color10: #a7e22e + +! yellow +*.color3: #d4c96e +*.color11: #e7db75 + +! blue +*.color4: #55bcce +*.color12: #66d9ee + +! magenta +*.color5: #9358fe +*.color13: #ae82ff + +! cyan +*.color6: #56b7a5 +*.color14: #66efd5 + +! white +*.color7: #acada1 +*.color15: #dfe1d3 + diff --git a/shell/.config/themes/pink b/shell/.config/themes/pink @@ -0,0 +1,32 @@ +! black +*.color0: #090a0f +*.color8: #3e4053 + +! red +*.color1: #f44444 +*.color9: #f44444 + +! green +*.color2: #28684f +*.color10: #43c291 + +! yellow +*.color3: #c8907e +*.color11: #f49a7e + +! blue +*.color4: #422d52 +*.color12: #542a52 + +! magenta +*.color5: #710130 +*.color13: #9e0f37 + +! cyan +*.color6: #2a7e86 +*.color14: #688e95 + +! white +*.color7: #999999 +*.color15: #ffffff + diff --git a/shell/.config/themes/solarized_dark b/shell/.config/themes/solarized_dark @@ -0,0 +1,32 @@ +! black #002b36 +*.color0: #657b83 +*.color8: + +! red #dc322f +*.color1: #dc322f +*.color9: + +! green #859900 +*.color2: #859900 +*.color10: + +! yellow #b58900 +*.color3: #b58900 +*.color11: + +! blue #268bd2 +*.color4: #268bd2 +*.color12: + +! magenta #6c71c4 +*.color5: #6c71c4 +*.color13: + +! cyan #2aa198 +*.color6: #2aa198 +*.color14: + +! white #93a1a1 +*.color7: #fdf6e3 +*.color15: + diff --git a/shell/.config/themes/solarized_light b/shell/.config/themes/solarized_light @@ -0,0 +1,32 @@ +! black +*.color0: #ffddbb +*.color8: #bb9988 + +! red +*.color1: #d0154b +*.color9: #d0154b + +! green +*.color2: #779900 +*.color10: #779900 + +! yellow +*.color3: #ffa700 +*.color11: #ffa700 + +! blue +*.color4: #096daf +*.color12: #096daf + +! magenta +*.color5: #dd6699 +*.color13: #897f74 + +! cyan +*.color6: #00aa88 +*.color14: #00aa88 + +! white +*.color7: #000000 +*.color15: #222222 + diff --git a/shell/.config/themes/zenburn b/shell/.config/themes/zenburn @@ -0,0 +1,31 @@ +! black +*.color0: #191d1b +*.color8: #709080 + +! red +*.color1: #9C6363 +*.color9: #dca3a3 + +! green +*.color2: #60b48a +*.color10: #bfebbf + +! yellow +*.color3: #dfaf8f +*.color11: #f0dfaf + +! blue +*.color4: #506070 +*.color12: #94bff3 + +! magenta +*.color5: #dc8cc3 +*.color13: #ec93d3 + +! cyan +*.color6: #8cd0d3 +*.color14: #93e0e3 + +! white +*.color7: #dcdccc +*.color15: #ffffff diff --git a/shell/.profile b/shell/.profile @@ -16,57 +16,6 @@ # VARIABLES #------------------------------------------------------------------------------- -# Black Red Green Yellow Blue Purple Cyan White -THEMES="\ -pink \ -P0090a0f P1f44444 P228684f P3c8907e P4422d52 P5710130 P62a7e86 P7999999 \ -P83e4053 P9f44444 Pa43c291 Pbf49a7e Pc542a52 Pd9e0f37 Pe688e95 Pfffffff \ - -solarized_light \ -P0ffddbb P1d0154b P2779900 P3ffa700 P4096daf P5dd6699 P600aa88 P7000000 \ -P8bb9988 P9d0154b PA779900 PBffa700 PC096daf PD897f74 PE00aa88 PF222222 \ - -solarized_dark \ -P0002b36 P1dc322f P2859900 P3b58900 P4268bd2 P56c71c4 P62aa198 P793a1a1 \ -P8657b83 P9dc322f PA859900 PBb58900 PC268bd2 PD6c71c4 PE2aa198 PFfdf6e3 \ - -ghost_in_the_shell \ -P0000000 P191265C P2439a64 P3ccdd66 P455aaaa P5516583 P64a8f86 P799bbbb \ -P8334444 P9E71E5B PA72f4a0 PBf5ff8B PC99bbff PD676cb0 PE00ffff PFffffff \ - -coal \ -P0000000 P1ee3333 P288ff44 P3ffcc55 P477aaaa P5888888 P655ee99 P7cccccc \ -P8555555 P9ff6666 PAaaff66 PBffff99 PCaaddff PDaaaaaa PE99ffbb PFffffff \ - -drakula \ -P0282a36 P1cc4343 P242c763 P3ffb86c P46272a4 P5bd93f9 P66fb9c9 P7e6e6d5 \ -P8888db4 P9ff5555 PA50fa7b PBf1fa8c PC8196d6 PDff79c6 PE8be9fd PFffffff \ - -gotham \ -P00a0f14 P1c33027 P226a98b P3edb54c P4195465 P54e5165 P633859d P798d1ce \ -P8406068 P9d26939 PA30dbb3 PBffd280 PC268099 PD888ba5 PE599caa PFd3ebe9 \ - -monokai \ -P048483e P1dc2566 P28fc029 P3d4c96e P455bcce P59358fe P656b7a5 P7acada1 \ -P876715e P9fa2772 PAa7e22e PBe7db75 PC66d9ee PDae82ff PE66efd5 PFdfe1d3 \ - -gruvbox \ -P0282828 P1cc241d P298971a P3d79921 P4458588 P5b16286 P6689d6a P7d5c4a1 \ -P8928374 P9fb4934 PAb8bb26 PBfabd2f PC83a598 PDd2869b PE8ec07c PFffffff \ - -bioelectric \ -P0000d00 P1bb3300 P200aa55 P3bbbb33 P4339988 P5bb5566 P6339977 P7b4b4b4 \ -P8335544 P9ff5522 PA44ff88 PBeeff77 PC66ddcc PDec93d3 PE77ddbb PFffffff \ - -matrix \ -P0000000 P1883300 P200aa55 P355aa33 P4339977 P5668877 P6119977 P777dd77 \ -P8338833 P9aa7733 PA00ff88 PB88ee66 PC33dd88 PD77bb99 PE66ddbb PFddffdd \ - -zenburn \ -P0191d1b P19C6363 P260b48a P3dfaf8f P4506070 P5dc8cc3 P68cd0d3 P7dcdccc \ -P8709080 P9dca3a3 PAbfebbf PBf0dfaf PC94bff3 PDec93d3 PE93e0e3 PFffffff \ -" - # PROMPT #------------------------------------------------------------------------------- @@ -100,6 +49,7 @@ alias p='$PAGER' alias a='buffers attach' alias r='buffers run' alias v='buffers run $VISUAL' +alias s='buffers session "$SHELL"' alias t='tmux attach &>/dev/null || tmux new' alias f='find . -type f ! -path "*/.git/*" | sed "s/^\\.\\///" | iomenu' alias d='find . -type d ! -path "*/.git/*" | sed "s/^\\.\\///" | iomenu' @@ -114,9 +64,9 @@ alias lines='find . -name "*.[ch]" | xargs wc -l' if [ "$TERM" = 'linux' ] then - theme pink + theme mandelbrot setfont "$CONFIG/fonts/terminus/ter-v16b.psf.gz" fi # Always run in an abduco session. -buffers session +buffers session "$SHELL"