citadel

My dotfiles, scripts and nix configs
git clone git://jb55.com/citadel
Log | Files | Refs | README | LICENSE

commit d8170f74eed6faa303e6170742091f82149bb044
parent eb000349a6210110f889604215ce3796fe602cd9
Author: William Casarin <jb55@jb55.com>
Date:   Wed,  3 Mar 2021 06:23:31 -0800

add some bins

Signed-off-by: William Casarin <jb55@jb55.com>

Diffstat:
Abin/c | 2++
Abin/ddg | 7+++++++
Abin/ddg-dmenu | 4++++
Abin/lorem | 9+++++++++
Abin/x11-rename | 2++
5 files changed, 24 insertions(+), 0 deletions(-)

diff --git a/bin/c b/bin/c @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +exec curl -sL "$@" diff --git a/bin/ddg b/bin/ddg @@ -0,0 +1,7 @@ +#!/usr/bin/env bash + +set -eou pipefail + +DDG_MENU=${DDG_MENU:-fzf} + +ddgr --json "$@" | jq -r '.[] | [.title,.url] | @tsv' | $DDG_MENU | cutt -f2 | xargs open diff --git a/bin/ddg-dmenu b/bin/ddg-dmenu @@ -0,0 +1,4 @@ +#!/usr/bin/env bash + +export DDG_MENU="dmenu -p ddg-results -l 40" +exec dmenup duckduckgo ddg diff --git a/bin/lorem b/bin/lorem @@ -0,0 +1,9 @@ +#!/usr/bin/env bash +tr -dc a-z1-4 </dev/urandom | +tr 1-2 ' \n' | +awk 'length==0 || length>50' | +tr 3-4 ' ' | +sed 's/^ *//' | +cat -s | +sed 's/ / /g' | +fmt diff --git a/bin/x11-rename b/bin/x11-rename @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +xdotool selectwindow set_window --name "$1"