config

OpenBSD system configuration
git clone git://jacobedwards.org/config
Log | Files | Refs | README

commit f1ddbe700072837d06579fcecf6039e899eab6c7
parent 8f713b8fd736f159662d48a879fece2c394bb42a
Author: Jacob R. Edwards <jacobouno@protonmail.com>
Date:   Wed,  2 Sep 2020 21:17:08 -0700

Replace leading spaces with tabs

Diffstat:
Maliases/.config/aliases | 28++++++++++++++--------------
Mdunst/.config/dunst/dunstrc | 76++++++++++++++++++++++++++++++++++++++--------------------------------------
Mmpd/.config/mpd/mpd.conf | 4++--
Mscripts/.local/bin/loop | 32++++++++++++++++----------------
Msxiv/.config/sxiv/exec/key-handler | 22+++++++++++-----------
Mvimb/.config/vimb/style.css | 74+++++++++++++++++++++++++++++++++++++-------------------------------------
6 files changed, 118 insertions(+), 118 deletions(-)

diff --git a/aliases/.config/aliases b/aliases/.config/aliases @@ -1,7 +1,7 @@ # shell functions if [ -f "$XDG_CONFIG_HOME/aliases.private" ]; then - . "$XDG_CONFIG_HOME/aliases.private" + . "$XDG_CONFIG_HOME/aliases.private" fi # random @@ -97,14 +97,14 @@ mato() { # replace playlist with current mrepl() { - dir="$(eval echo $(mpd-config playlist_directory))" - mv -v $dir/$1.m3u $dir/.$1.m3u && mpc save $1 + dir="$(eval echo $(mpd-config playlist_directory))" + mv -v $dir/$1.m3u $dir/.$1.m3u && mpc save $1 } # find music directories mfind() { - dir="$(eval echo "$(mpd-config music_directory)")" - find "$dir" -type d | grep ${@-""} | sed "s:$dir/?::" + dir="$(eval echo "$(mpd-config music_directory)")" + find "$dir" -type d | grep ${@-""} | sed "s:$dir/?::" } # mps wrapper to work in states directory @@ -144,30 +144,30 @@ k() { fc -s ;} # make directories leading up to filename then edit that ff() { - mkdir -p `dirname $1` - f $1 + mkdir -p `dirname $1` + f $1 } # get percentage of one number compared to another prc() { - if [ $# -eq 2 ]; then - calc -d "$2 / ($1 / 100)" | grep -o "[0-9]+" || echo "prc: error" 1>&2 - else - echo "usage, prc [FLOAT] [FLOAT]" - fi + if [ $# -eq 2 ]; then + calc -d "$2 / ($1 / 100)" | grep -o "[0-9]+" || echo "prc: error" 1>&2 + else + echo "usage, prc [FLOAT] [FLOAT]" + fi } # reinitialize shell self() { - exec $0 + exec $0 } # get nth line from stdout nth() { - head -n ${1:?"nth: no index"} | tail -1 + head -n ${1:?"nth: no index"} | tail -1 } wQ() { webq "$*" ;} diff --git a/dunst/.config/dunst/dunstrc b/dunst/.config/dunst/dunstrc @@ -1,49 +1,49 @@ # dunst config [global] - # geometry - alignment = left - geometry = "0x0-4+4" - padding = 2 - horizontal_padding = 8 - separator_height = 1 - - # colors - separator_color = "#333333" - - # x11 - title = dunst - class = dunst - follow = keyboard - - # display - sort = no - word_wrap = yes - ignore_newline = no - indicate_hidden = yes - shrink = yes - show_indicators = no - icon_position = off - - # other - font = "hermit 11" - history_length = 0 - verbosity = mesg + # geometry + alignment = left + geometry = "0x0-4+4" + padding = 2 + horizontal_padding = 8 + separator_height = 1 + + # colors + separator_color = "#333333" + + # x11 + title = dunst + class = dunst + follow = keyboard + + # display + sort = no + word_wrap = yes + ignore_newline = no + indicate_hidden = yes + shrink = yes + show_indicators = no + icon_position = off + + # other + font = "hermit 11" + history_length = 0 + verbosity = mesg [urgency_low] - background = "#000000" - foreground = "#aaaaaa" - timeout = 4 + background = "#000000" + foreground = "#aaaaaa" + timeout = 4 [urgency_normal] - background = "#000000" - foreground = "#ff3333" - timeout = 8 + background = "#000000" + foreground = "#ff3333" + timeout = 8 [urgency_critical] - background = "#000000" - foreground = "#ffffff" - timeout = 16 + background = "#000000" + foreground = "#ffffff" + timeout = 16 [fullscreen_delay_everything] - fullscreen = show + fullscreen = show diff --git a/mpd/.config/mpd/mpd.conf b/mpd/.config/mpd/mpd.conf @@ -34,6 +34,6 @@ volume_normalization "yes" # sndio output audio_output { - type "sndio" - name "mpd sndio" + type "sndio" + name "mpd sndio" } diff --git a/scripts/.local/bin/loop b/scripts/.local/bin/loop @@ -4,28 +4,28 @@ # display usage usage() { - echo "usage, `basename $0` [-ih]" - echo "\t-i, interactive, prompt at each iteration" - echo "\t-e, errexit, exit on error" - echo "\t-h, usage" + echo "usage, `basename $0` [-ih]" + echo "\t-i, interactive, prompt at each iteration" + echo "\t-e, errexit, exit on error" + echo "\t-h, usage" } while [ $# -ne 0 ] do - case $1 - in - -i) interactive=1; shift;; - -e) set -e; shift;; - -h) usage; exit 0;; - *) break;; - esac + case $1 + in + -i) interactive=1; shift;; + -e) set -e; shift;; + -h) usage; exit 0;; + *) break;; + esac done while true do - if [ ${interactive:=0} -eq 1 ] - then - read null || break - fi - eval $@ + if [ ${interactive:=0} -eq 1 ] + then + read null || break + fi + eval $@ done diff --git a/sxiv/.config/sxiv/exec/key-handler b/sxiv/.config/sxiv/exec/key-handler @@ -6,9 +6,9 @@ set -e # confirm via dmenu if it hasn't been already. confirm() { - if [ -z $answer ]; then - answer=$(printf "no\nyes" | dmenu) && [ "$answer" = "yes" ] - fi + if [ -z $answer ]; then + answer=$(printf "no\nyes" | dmenu) && [ "$answer" = "yes" ] + fi } # link image to wallpaper and invoke xwallpaper on it. @@ -19,14 +19,14 @@ set_wallpaper() } while read file; do - case "$1" + case "$1" in - "C-w") set_wallpaper "$file";; - "C-m") [ -z "$dest" ] && dest=`fsmenu -td`; mv "$file" "$dest";; - "C-c") [ -z "$dest" ] && dest=`fsmenu -td`; cp "$file" "$dest";; - "C-x") confirm && rm "$file" || exit 2;; + "C-w") set_wallpaper "$file";; + "C-m") [ -z "$dest" ] && dest=`fsmenu -td`; mv "$file" "$dest";; + "C-c") [ -z "$dest" ] && dest=`fsmenu -td`; cp "$file" "$dest";; + "C-x") confirm && rm "$file" || exit 2;; *) echo "error: sxiv.key-handler: key unbound '$1'" 1>&2; exit 2;; - esac - notify-send "$1 $file" - echo "$1 $file" + esac + notify-send "$1 $file" + echo "$1 $file" done diff --git a/vimb/.config/vimb/style.css b/vimb/.config/vimb/style.css @@ -10,81 +10,81 @@ /* variables */ :root { - --background: #000; - --background-focus: #090909; - --foreground: #fdfdfd; - --foreground-focus: #fff; - --color-0: #a33; - --color-1: #33a; + --background: #000; + --background-focus: #090909; + --foreground: #fdfdfd; + --foreground-focus: #fff; + --color-0: #a33; + --color-1: #33a; } /* global */ * { - background-color: var(--background)!important; - color: var(--foreground)!important; - border-color: var(--color-0)!important; - border-width: 1px!important; - border-radius: none!important; - background-image: none!important; - box-shadow: none!important; - text-shadow: none!important; - /* I do like strike-through in cases, but underlines can get annoying. */ - text-decoration: none!important; - animation: none!important; + background-color: var(--background)!important; + color: var(--foreground)!important; + border-color: var(--color-0)!important; + border-width: 1px!important; + border-radius: none!important; + background-image: none!important; + box-shadow: none!important; + text-shadow: none!important; + /* I do like strike-through in cases, but underlines can get annoying. */ + text-decoration: none!important; + animation: none!important; } /* headings */ h1,h2,h3,h4,h5,h6 { - color: var(--forground-focus)!important; - font-weight: normal!important; + color: var(--forground-focus)!important; + font-weight: normal!important; } /* table headings */ th { - background-color: var(--color-1)!important; + background-color: var(--color-1)!important; } /* quotes */ q,blockquote { - font-family: serif!important; - color: var(--color-0)!important; + font-family: serif!important; + color: var(--color-0)!important; } /* svg images */ svg { - display: none!important; + display: none!important; } /* links */ a { - color: var(--color-0)!important; + color: var(--color-0)!important; } /* other links */ a:hover,a:focus,a:visited { - color: var(--color-1)!important; + color: var(--color-1)!important; } code { - background-color: var(--background-focus)!important; - color: var(--color-1)!important; - display: inline-block!important; + background-color: var(--background-focus)!important; + color: var(--color-1)!important; + display: inline-block!important; } pre { - background-color: var(--background-focus)!important; - color: var(--color-1)!important; + background-color: var(--background-focus)!important; + color: var(--color-1)!important; } /** vimb hinting **/ /* hint */ span[vimbhint^='label'] { - background-color: var(--foreground)!important; - color: var(--background)!important; - font: normal 13pt monospace!important; - border: none!important; - opacity: 1!important; + background-color: var(--foreground)!important; + color: var(--background)!important; + font: normal 13pt monospace!important; + border: none!important; + opacity: 1!important; } /* focused hint */ @@ -97,6 +97,6 @@ span[vimbhint='label focus'] { /* focused href */ *[vimbhint='hint focus'] { - background-color: var(--foreground-focus)!important; - color: var(--background)!important; + background-color: var(--foreground-focus)!important; + color: var(--background)!important; }