This commit is contained in:
2026-01-26 17:03:18 +01:00
parent cd1b7cc874
commit 1fe5d48f1b
110 changed files with 12381 additions and 224 deletions

16
bin/lookat Executable file
View File

@@ -0,0 +1,16 @@
#!/bin/bash
# lookat(Desktop) - switch to desktop, if repeated switch back.
# Replacement for GoToDesktop Openbox action.
LD_FILE=~/.cache/.lastdesk
curdesk=$(wmctrl -d |grep '*' | awk '{print $1}')
todesk=$((${1} - 1))
if [[ "${curdesk}" == "${todesk}" ]];then
todesk=$(< "$LD_FILE")
else
echo "${curdesk}" > "$LD_FILE"
fi
wmctrl -s "${todesk}"