dot

packages and services management
Log | Files | Refs | README

commit 627d0c9b5c5c68bcd5ebe863dddb8fc447c54a57
parent b55af49cc794740e490a4c6197157f86404780e4
Author: Josuah Demangeon <josuah.demangeon@gandi.net>
Date:   Thu, 18 May 2017 13:10:30 +0200

liblzma

Diffstat:
M.profile | 3+--
M.xinitrc | 2+-
Mbin/build | 1-
Mbin/doc-wiki | 7++++---
Abin/inv | 12++++++++++++
Abuild/liblzma/url | 1+
6 files changed, 19 insertions(+), 7 deletions(-)

diff --git a/.profile b/.profile @@ -77,7 +77,7 @@ export EDITOR VISUAL PAGER MANPAGER DVTM_PAGER BROWSER # prompts -PS1='`prompt`' +PS1='`prompt $?`' PS2='> ' PS3='> ' @@ -108,7 +108,6 @@ alias c='cd "$(find "$HOME" -type d | sort | iomenu -p cd)"' alias p='p=`io-ps`' # utilities -alias inv='printf "\033[?5%s" h' alias myip='curl icanhazip.com' alias ix='curl -F "f:1=<-" ix.io' alias w1r3='curl -F upload=@- https://w1r3.net' diff --git a/.xinitrc b/.xinitrc @@ -1,7 +1,7 @@ #!/bin/sh setxkbmap us -option compose:ralt -xsetroot -bitmap etc/tile.xbm -bg '#222222' -fg '#000000' +xsetroot -bitmap etc/tile.xbm -bg '#ffeecc' -fg '#000000' xset +fp "$CONFIG/fonts" while xsetroot -name "$(status)" diff --git a/bin/build b/bin/build @@ -13,7 +13,6 @@ build() find "$ETC/build/$1" -name '*.diff' -exec patch -N -p 1 -i {} \; find "$ETC/build/$1" -name 'config.*' -exec cp -f {} . \; - [ -f ./autogen.sh ] && ./autogen.sh [ -f ./configure ] && ./configure --prefix="$PREFIX" make && make PREFIX="$PREFIX" install clean diff --git a/bin/doc-wiki b/bin/doc-wiki @@ -19,11 +19,12 @@ wget -qO- "$WIKI/$name?action=raw" | # format and display the page sed -r ' + s/'"'''"'([^'"'"']*)'"'''"'/{\1}/g # '''text''' # wiki links - s/\[\[[^\]|]*\|/[/g # [[*| - s/\{\{[^\}|]*\|/[/g # {{*| + s/\[\[[^]|]*\|/[/g # [[*| + s/\{\{[^}|]*\|/[/g # {{*| s/\[\[/[/g; s/\]\]/]/g # [[ ]] s/\{\{/[/g; s/\}\}/]/g # {{ @@ -36,7 +37,7 @@ sed -r ' s/<[^>]*>[^<]*<\/[^>]*>//g # <tag> * </tag> s/&[^;]*;/ /g # &escaped; -' | fold -w 72 -s | sed -r ' +' | awk -v RS='<ref[^<]*</ref>' '{ printf("%s*", $0) }' | fold -w 72 -s | sed -r ' # paragraphs /^[^=;]/ s/^/ / diff --git a/bin/inv b/bin/inv @@ -0,0 +1,12 @@ +[ $# = 0 ] && printf '\033[?5%s' h && exit + +[ "$DISPLAY" ] || exit + +if [ -f /tmp/inv ] +then + xsetroot -bitmap etc/tile.xbm -bg '#000000' -fg '#ffeecc' + rm /tmp/inv +else + xsetroot -bitmap etc/tile.xbm -bg '#ffeecc' -fg '#000000' + touch /tmp/inv +fi diff --git a/build/liblzma/url b/build/liblzma/url @@ -0,0 +1 @@ +https://tukaani.org/xz/xz-5.2.3.tar.gz