From 2341d8444599f7bd350d6e12d2f48fe4cecc819d Mon Sep 17 00:00:00 2001 From: auric <104602845+ihateamongus@users.noreply.github.com> Date: Thu, 11 Sep 2025 10:45:46 -0500 Subject: feat: enlarge dmenu input and add dwm power binds --- tools/steam-dmenu.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 tools/steam-dmenu.sh (limited to 'tools/steam-dmenu.sh') diff --git a/tools/steam-dmenu.sh b/tools/steam-dmenu.sh new file mode 100755 index 0000000..286d312 --- /dev/null +++ b/tools/steam-dmenu.sh @@ -0,0 +1,9 @@ +#!/bin/sh +# steam game launcher using dmenu +appdir="$HOME/.local/share/Steam/steamapps" +[ -d "$appdir" ] || exit 1 +list=$(find "$appdir" -name '*.acf' -print0 | \ + xargs -0 -I{} awk -F '"' '/"name"/{name=$4}/"appid"/{printf "%s:%s\n",name,$4}' {} ) +choice=$(printf '%s' "$list" | sort | dmenu -i -l 20) +appid=$(printf '%s' "$choice" | cut -d: -f2) +[ -n "$appid" ] && steam -applaunch "$appid" >/dev/null 2>&1 & -- cgit v1.2.3