dotfiles

Dash Eclipse's dotfiles
git clone git://ezup.dev/dotfiles.git
Log | Files | Refs | README | LICENSE

commit e4db7fa78550607a815fecd1b555a23a37841591
parent 544d540befb1aae1a7a0aa35e330475b1185a939
Author: Dash Eclipse <dash@ezup.dev>
Date:   Fri, 23 Oct 2020 10:26:38 +0000

Add x

Diffstat:
M.local/bin/stagit-viewer.sh | 2+-
M.local/bin/vpngate-fzf.sh | 2+-
A.local/bin/x | 24++++++++++++++++++++++++
3 files changed, 26 insertions(+), 2 deletions(-)

diff --git a/.local/bin/stagit-viewer.sh b/.local/bin/stagit-viewer.sh @@ -16,7 +16,7 @@ view_file() { local LIST_FILE=$(echo "$HTML_FILE" | sed -n 's|^<tr><td>.*</td><td><a href=".*">\(.*\)</a></td><td class="num" align="right">.*</td></tr>$|\1|p') local HOMEPAGE=$(echo "$1" | sed 's/files.html$//') while true; do - local FILE_PATH=$(echo "$LIST_FILE" | GREP_COLORS="sl=0;34;49:ms=0;90;49" grep --color=always '^\|[^/]*$' | fzf --ansi +s) + local FILE_PATH=$(echo "$LIST_FILE" | GREP_COLORS="sl=0;34;49:ms=0;37;49" grep --color=always '^\|[^/]*$' | fzf --ansi +s) [ -z "$FILE_PATH" ] && return 0 view_raw_file ${HOMEPAGE}file/${FILE_PATH}.html done diff --git a/.local/bin/vpngate-fzf.sh b/.local/bin/vpngate-fzf.sh @@ -48,7 +48,7 @@ get_csv() { } get_srv() { - local NUM=$(get_csv | column -s, -t -R3,4,5,8,10,11 | fzf | cut -d' ' -f1) + local NUM=$(get_csv | column -s, -t -R3,4,5,8,10,11 | fzf +s | cut -d' ' -f1) [ -z "$NUM" ] && exit 0 if [ "$NUM" -ne 0 ]; then local SRV=$(sed -n "$(($NUM + 2))p" $CSV) diff --git a/.local/bin/x b/.local/bin/x @@ -0,0 +1,24 @@ +#!/bin/sh + +xinitrc() { + export DISPLAY=:0 + feh --randomize \ + --bg-scale $HOME/Pictures/Wallpapers/Landscape/*.jpg \ + --bg-scale $HOME/Pictures/Wallpapers/Portrait/*.jpg + exec sowm +} + +trap xinitrc USR1 + +( + trap '' USR1 + + exec X -ardelay 200 \ + -arinterval 20 \ + -dpms \ + -dpi 192 \ + -nolisten tcp \ + :0 vt1 +) & + +wait