blob: 7835e3d278c62e5e07c97d6bd15aafd3cfd0ff13 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
#!/bin/bash
# dmenu script for opening console programs and scripts directly
options="neofetch\ncmus\ncmus (float)\nnewsboat\nneomutt\nweather\nsyncthing\nbrightFirst\nresetConnection\nwifiDown\nyears\nmonths\nbg selection\nshowColors\npython\nmusicMode\nClose music mode\nemojis"
chosen=$(echo -e "$options" | dmenu -i -p "~$ urxvt -e")
case "$chosen" in
# floating windows
neofetch) urxvt -title invisible -sh 100 -cr "#aaddff" -geometry "80x21+50+35" -e ~/scripts/neofetch.sh ;;
showColors) urxvt -title floating -sh 10 -cr black -geometry 43x9 -e ~/scripts/showColors.sh ;;
years) ~/scripts/floats/floatYears.sh ;;
months) ~/scripts/floats/floatMonths.sh ;;
weather) urxvt -title floating -sh 10 -geometry 125x40 -e weather.sh ;;
"bg selection") ~/scripts/floats/floatBgBrowser.sh "~/images/wallpapers/" ;;
python) urxvt -title floating -geometry 80x28 -e python ;;
#programs
cmus) urxvt -cd ~/music -e cmus ;;
"cmus (float)") urxvt -title floating -sh 20 -geometry "150x12+5-8" -cd ~/music -e cmus ;;
newsboat) urxvt -e newsboat ;;
neomutt) urxvt -e neomutt ;;
syncthing) urxvt -e ~/scripts/syncthing.sh ;;
# sudo stuff
#brightFirst) urxvt -title floating -geometry 32x1 -e sudo ~/scripts/brightFirst.sh ;;
brightFirst) sudo ~/scripts/brightFirst.sh ;;
#resetConnection) urxvt -title floating -geometry 32x1 -e sudo ~/scripts/resetConnection.sh ;;
resetConnection) sudo ~/scripts/resetConnection.sh ;;
#wifiDown) urxvt -title floating -geometry 32x1 -e sudo ~/scripts/wifiDown.sh ;;
wifiDown) sudo ~/scripts/wifiDown.sh ;;
# other
musicMode) ~/scripts/musicMode.sh ;;
"Close music mode") ~/scripts/closeMusicMode.sh ;;
emojis) ~/scripts/dmenuUnicode.sh ;;
esac
|