#!/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