update: dmenu and add setxkbmap

This commit is contained in:
2026-09-27 12:09:07 +02:00
parent 0105696f5e
commit dc3c51f19e
7 changed files with 149 additions and 10 deletions
+18
View File
@@ -0,0 +1,18 @@
#!/bin/sh
cachedir="${XDG_CACHE_HOME:-"$HOME/.cache"}"
cache="$cachedir/dmenu_run_desktop"
[ ! -e "$cachedir" ] && mkdir -p "$cachedir"
dirs=""
IFS=:
for dir in "${XDG_DATA_DIRS:-"/usr/local/share:/usr/share"}"; do
dirs="${dirs}:${dir}/applications"
done;
if stest -dqr -n "$cache" $PATH; then
stest -fl $dirs | grep -v 'mimeinfo.cache' | sed 's/\.[^./]*$//' | sort -u | tee "$cache"
else
cat "$cache"
fi