dot

packages and services management
Log | Files | Refs | README

commit 2e93d8cf767317465731af7619bd9dd6221e6a14
parent 5c8e38cf889eb5eaa4f28c01cfc957f3c6a564b4
Author: josuah <mail@josuah.net>
Date:   Wed, 21 Dec 2016 18:54:48 +0000

Small updates

Diffstat:
M.config/dvtm/config.h | 16++++++++--------
M.local/bin/agenda | 93+++++++++++++++++++++++++++++++++++++++----------------------------------------
M.local/bin/tty-theme | 4++--
M.local/share/build/iomenu | 3++-
MREADME | 10+++-------
5 files changed, 61 insertions(+), 65 deletions(-)

diff --git a/.config/dvtm/config.h b/.config/dvtm/config.h @@ -106,14 +106,14 @@ static KeyBinding bindings[] = { { { MOD, 'J', }, { focusnextnm, { NULL } } }, { { MOD, 'K', }, { focusprevnm, { NULL } } }, { { MOD, 'k', }, { focusprev, { NULL } } }, - { { MOD, 'f', }, { setlayout, { "│├┤f" } } }, - { { MOD, 'g', }, { setlayout, { "├┼┤g" } } }, - { { MOD, 'b', }, { setlayout, { "├┬┤b" } } }, - { { MOD, 'u', }, { setlayout, { "├┴┤u" } } }, - { { MOD, 'n', }, { setlayout, { "├─┤n" } } }, - { { MOD, 'o', }, { setlayout, { "│@│o" } } }, - { { MOD, 'w', }, { setlayout, { "│&│w" } } }, - { { MOD, 'm', }, { setlayout, { "│ │m" } } }, + { { MOD, 'f', }, { setlayout, { "│├┤f" } } }, + { { MOD, 'g', }, { setlayout, { "├┼┤g" } } }, + { { MOD, 'b', }, { setlayout, { "├┬┤b" } } }, + { { MOD, 'u', }, { setlayout, { "├┴┤u" } } }, + { { MOD, 'n', }, { setlayout, { "├─┤n" } } }, + { { MOD, 'o', }, { setlayout, { "│@│o" } } }, + { { MOD, 'w', }, { setlayout, { "│&│w" } } }, + { { MOD, 'm', }, { setlayout, { "│ │m" } } }, { { MOD, ' ', }, { setlayout, { NULL } } }, { { MOD, 'i', }, { incnmaster, { "+1" } } }, { { MOD, 'd', }, { incnmaster, { "-1" } } }, diff --git a/.local/bin/agenda b/.local/bin/agenda @@ -1,14 +1,10 @@ -# | -# ,--. ,--, ,--. ---. .--| ,--. -# ,--| | | |--' | | | | ,--| -# `--` `--| `--' ' ' `--` `--` 2016-10-08 -#------`--'--------------------------------------------------------------------- -# Agenda from the command line +# Agenda from the command line 2016-12-21 + AGENDA="${AGENDA-$HOME/.cache/agenda/agenda}" COLUMNS="$(stty size | cut -d ' ' -f 2)" -help="NAME +HELP="NAME agenda - Agenda from the command line. SYNTAX @@ -130,6 +126,7 @@ BEGIN { last_beg_d = beg_d; }' + awk_calendar=' BEGIN { FS = "\t"; @@ -221,22 +218,21 @@ BEGIN { }' -# FUNCTIONS -# ------------------------------------------------------------------------------ - import_ical() -{ - local ical="$1" +( + ical="$1" sed -i 's/\r//; s/\t/ /g' "$ical" awk "$awk_ical" "$ical" | cat - "$AGENDA" | sort | uniq > "$AGENDA" -} +) + agenda() { awk -v now="$SEC" "$awk_agenda" "$AGENDA" | cut -c 1-"$COLUMNS" } + calendar() { awk \ @@ -250,37 +246,40 @@ calendar() } -# ALGORYTHM -# ------------------------------------------------------------------------------ - -[ $# = 0 ] && set -- help -while [ $# -gt 0 ] -do - case $1 in - a | agenda) - action="agenda" - shift - ;; - c | calendar) - action="calendar" - shift - ;; - -i ) - action="import_ical $2" - shift 2 - ;; - -d ) - DATE="$2" - - shift 2 - ;; - * ) - printf '%s\n' "$help" - exit 0 - ;; - esac - - [ "$DATE" ] && SEC="$(date +%s -d "$DATE")" || SEC="$(date +%s)" -done - -$action +main() +( + [ $# = 0 ] && set -- help + while [ $# -gt 0 ] + do + case $1 in + a | agenda) + action="agenda" + shift + ;; + c | calendar) + action="calendar" + shift + ;; + -i ) + action="import_ical $2" + shift 2 + ;; + -d ) + DATE="$2" + + shift 2 + ;; + * ) + printf '%s\n' "$help" + exit 0 + ;; + esac + + [ "$DATE" ] && SEC="$(date +%s -d "$DATE")" || SEC="$(date +%s)" + done + + $action +) + + +main "$@" diff --git a/.local/bin/tty-theme b/.local/bin/tty-theme @@ -182,7 +182,7 @@ matrix 4 339977 5 668877 6 119977 -7 77dd77 +7 99dd99 8 338833 9 aa7733 A 00ff88 @@ -190,7 +190,7 @@ B 88ee66 C 33dd88 D 77bb99 E 66ddbb -F ddffdd +F ffffff monokai diff --git a/.local/share/build/iomenu b/.local/share/build/iomenu @@ -1,3 +1,4 @@ # Input/Output interactive menu and completion engine. -tar=http://repo.or.cz/iomenu.git/snapshot/9b02c6de2a40d4af69c7bcd06f5d297bfc22e044.tar.gz +tar=http://repo.or.cz/iomenu.git/snapshot/0a71e514ca5fc5bdf94ca0721cc946bbfc7732e6.tar.gz + diff --git a/README b/README @@ -4,7 +4,7 @@ _| ________________________________________________________________________________ - Configuration files for all UNIX distros, shell agnostic. + Configuration files for UNIX distros, shell agnostic. I have no C++ in this repo and much more shell scripts. GitHub is not detecting all source types accurately for C headers and shell @@ -13,7 +13,7 @@ ________________________________________________________________________________ This file is the installer script. You can run it.' -scripts (/bin) +Scripts (/bin) ________________________________________________________________________________ Scripts are in ./.local/bin. I wrote them to be compatible with @@ -33,11 +33,7 @@ ________________________________________________________________________________ blawk, drawk Represent an image with text characters either braille or quadrants. - - -configuration files (/etc) - - + ' cd "${0%/*}" || exit 1 find . -type d ! -path './.git*' -path './.*' -exec mkdir -p ~/{} \;