From b61b58ce2c1371d6f904f108fa7feed3abfbe5c7 Mon Sep 17 00:00:00 2001 From: Robert Günzler Date: Wed, 8 Apr 2026 13:18:14 +0900 Subject: * MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Automated-commit-by: dots Signed-off-by: Robert Günzler --- bin/dskm | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100755 bin/dskm (limited to 'bin/dskm') diff --git a/bin/dskm b/bin/dskm new file mode 100755 index 0000000..c5a0abf --- /dev/null +++ b/bin/dskm @@ -0,0 +1,26 @@ +#!/bin/bash +set -eu + +# shellcheck disable=2034 +description="desk height manager" + +export FUZL_PROMPT=dskm +export FUZL_ICON=󱈹 +. libfuzl.sh + +main() { + local pos + + pos=$( + idesk config | + awk '/positions:/{ok=1; next} ok==1{print gensub(":", "", "g", $1)}' | + fuzl_menu $FUZL_MENU_FILTER + ) + test -n "$pos" || return + + fuzl_loading "moving desk to position: $pos" + idesk "$pos" + fuzl_loading_cancel +} + +main -- cgit 1.4.1