sites

public wiki contents of suckless.org
git clone git://git.suckless.org/sites
Log | Files | Refs

commit 7b1933a8bfd7821d31fb1612808336d820c6731e
parent e927fdc118daf2522527fbdbef4fbaf426e32e26
Author: kaiksto <kaiksto@protonmail.com>
Date:   Tue, 23 Aug 2016 16:46:04 +0200

Add dbdb.sh dmenu script

Diffstat:
Asurf.suckless.org/stylesheets/inverted_low_contrast.md.bak | 16++++++++++++++++
Atools.suckless.org/dmenu/scripts/dbdb.sh | 18++++++++++++++++++
Mtools.suckless.org/dmenu/scripts/index.md | 1+
3 files changed, 35 insertions(+), 0 deletions(-)

diff --git a/surf.suckless.org/stylesheets/inverted_low_contrast.md.bak b/surf.suckless.org/stylesheets/inverted_low_contrast.md.bak @@ -0,0 +1,16 @@ +inverted low contrast style +=========================== + +Filter based solutions for those who like it dark (mostly, on dark sites +efect is oposite), but don't like acid-trippy images and colors. Works +reasonably smooth, unless there are lots of images. + +dark css +-------- + + html, img { -webkit-filter: invert(95%) hue-rotate(180deg); } + +Author +------ + +* kaiksto diff --git a/tools.suckless.org/dmenu/scripts/dbdb.sh b/tools.suckless.org/dmenu/scripts/dbdb.sh @@ -0,0 +1,18 @@ +#!/bin/sh +# dmenu-based directory browser +# to run from terminal: +# source /path/to/dbdb.sh +# or bind it to shortcut: +# echo bind \'\"\\C-o\":\"source /path/to/dbdb.sh\\n\"\' >> ~/.bashrc + +chosen="placeholder" + +while [ ! -z "$chosen" ]; do + DIRs=$( ls -a1p | grep -P '^\w[^\$/]+/$' | awk -vRS="\n" -vORS="\t" '1') + DOTDs=$( ls -a1p | grep -P '^\.[^\$/]+/$' | awk -vRS="\n" -vORS="\t" '1') + FILEs=$( ls -a1p | grep -P '^\w[^\$/]+$' | awk -vRS="\n" -vORS=" \t" '1') + DOTFs=$( ls -a1p | grep -P '^\.[^\$/]+$' | awk -vRS="\n" -vORS=" \t" '1') + clear && printf "\e[1;7;33m $(pwd) \e[0m\n$FILEs\n\e[0;38;5;238m$DOTFs\e[0m\n" + chosen=`( ( echo -e "$DIRs$DOTDs" | awk -vRS="\t" -vORS="\n" '1' ) | dmenu -i )` + cd "$chosen" +done diff --git a/tools.suckless.org/dmenu/scripts/index.md b/tools.suckless.org/dmenu/scripts/index.md @@ -24,3 +24,4 @@ Download little files navigator * [dmenu_run_history](http://tools.suckless.org/dmenu/scripts/dmenu_run_with_command_history) : dmenu_run alternative with command history +* [dbdb.sh](dbdb.sh): dmenu-based directory browser