From 88b328bcb1dc0fc45a16418a75031e6d2ad3be1e Mon Sep 17 00:00:00 2001 From: = <=> Date: Mon, 1 Mar 2021 10:46:05 -0500 Subject: [PATCH] Add games prompt --- dwm-start | 2 +- prompt | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/dwm-start b/dwm-start index 4d3b44c..bee0b20 100755 --- a/dwm-start +++ b/dwm-start @@ -4,7 +4,7 @@ source ~/.profile picom -b ~/.fehbg xbindkeys -f $HOME/backups/configs/xbindkeysrc -( mru update; mru updatedirs; ) & +( mru update; mru updatedirs ) & # relaunch DWM if the binary changes, otherwise bail csum=$(sha1sum $(which dwm)) diff --git a/prompt b/prompt index acdf5b9..6f99a39 100755 --- a/prompt +++ b/prompt @@ -24,6 +24,7 @@ launch() { Go page Package info Images + Games Play clipboard Play downloads Processes" | tr -d '\t' | @@ -39,6 +40,7 @@ launch() { Choose) choose;; Terminal) st -t "Terminal";; Page) pages pager "$(printf "1\n2\n3\n" | dmenu -p 'page')";; + Games) games;; Multiplexer) st -t "Multiplexer" -e tmux attach-session -t 0 || st -t "Multiplexer" -e tmux new-session -s 0;; LBRY) lbry;; 'Go page') num=$(go_page); pages pager $num;; @@ -420,6 +422,23 @@ select_song() { mpc play $num } +games() { + sel=$(printf "Albion + Hellblade + Divinity + Rise to Ruins + Witcher 3 + POE" | dmenu -i -p 'Games') + + case "$sel" in + Albion);; + Divinity);; + 'Rise to Ruins');; + 'Witcher 3');; + 'POE');; + esac +} + case $1 in launch ) launch;; action) action;;