dotfiles

My personal shell configs and stuff
git clone git://git.alex.balgavy.eu/dotfiles.git
Log | Files | Refs | Submodules | README | LICENSE

commit 50d87497147f6364d21e7e2e4a5cd3731a0659c5
parent c5c4ad082fcec38c262bf3daea64578d3002c6b9
Author: Alex Balgavy <alexander.balgavy@spaceapplications.com>
Date:   Mon, 15 Jan 2024 13:46:00 +0100

dmenu-dwmblocks: script to interact with dwmblocks using keyboard

Diffstat:
Ascripts/dmenu-dwmblocks | 7+++++++
1 file changed, 7 insertions(+), 0 deletions(-)

diff --git a/scripts/dmenu-dwmblocks b/scripts/dmenu-dwmblocks @@ -0,0 +1,7 @@ +#!/bin/sh +[ -z "$DOTFILES" ] && notify "Error" "DOTFILES not set." +scriptname="$(find "$DOTFILES/scripts/" -name "dwmblock-*" | dmenu -i -l 5 -p "Script to run")" +[ -z "$scriptname" ] && exit +button="$(printf '1\n2\n3\n4\n5\n6' | dmenu -i -l 6 -p "Button to press:")" +[ -z "$button" ] && exit +BUTTON="$button" "$scriptname"