dot

packages and services management
Log | Files | Refs | README

commit 29c4a9d06df534fa79ca280dcc0f229c17e0d7a5
parent b9586ea17b40ba4031b22cb8495455a4e27ae774
Author: josuah <mail@josuah.net>
Date:   Sun, 27 Nov 2016 21:05:52 +0100

Moving theme out of this place

Diffstat:
M.cache/iomenu/history | 3+++
M.config/build/iomenu | 2+-
D.local/bin/theme | 50--------------------------------------------------
M.local/bin/www | 4++--
4 files changed, 6 insertions(+), 53 deletions(-)

diff --git a/.cache/iomenu/history b/.cache/iomenu/history @@ -17,7 +17,10 @@ io-grep io-man mmap iomenu io-tty-theme +mbsync +mbsync josuah.net music +s-nail theme vim www diff --git a/.config/build/iomenu b/.config/build/iomenu @@ -1,3 +1,3 @@ # Input/Output interactive menu and completion engine. -tar=http://repo.or.cz/iomenu.git/snapshot/c3c6ab5491ae0ab06b3d2281cad518757b218c03.tar.gz +tar=http://repo.or.cz/iomenu.git/snapshot/3c351ee648a55079a4b70f7834f5aee21879c32f.tar.gz diff --git a/.local/bin/theme b/.local/bin/theme @@ -1,50 +0,0 @@ -# ---- | -# | |--. ,--. --.-. ,--. -# | | | |--' | | | |--' -# ' ' ' `--' ' ' ' `--' 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/.local/bin/www b/.local/bin/www @@ -67,7 +67,7 @@ list() sed -r 's_..(.*)_<li><a href="\1">\1</a></li>_' ) - printf '</ul>\n' + printf '</ul>' } @@ -78,7 +78,7 @@ nav() { find . -mindepth 1 -maxdepth 1 -type d ! -path '*/.*' | sort | - sed -r 's_..(.*)_ | <a href="{{ root }}/\1">\1</a>_' + sed -r 's_..(.*)_| <a href="{{ root }}/\1">\1</a>_' }