Procházet zdrojové kódy

Add games prompt

master
= před 3 roky
rodič
revize
88b328bcb1
2 změnil soubory, kde provedl 20 přidání a 1 odebrání
  1. +1
    -1
      dwm-start
  2. +19
    -0
      prompt

+ 1
- 1
dwm-start Zobrazit soubor

@@ -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))


+ 19
- 0
prompt Zobrazit soubor

@@ -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;;


Načítá se…
Zrušit
Uložit