aboutsummaryrefslogtreecommitdiff
path: root/config/polybar/panels/scripts/launcher.sh
blob: 2d4ac1b62751b86780216264f9eab01c3f965f62 (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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#!/usr/bin/env bash

DIR="$HOME/.config/polybar/panels/menu"

launcher() {
	rofi -no-config -no-lazy-grab -show drun -modi drun -theme "$DIR"/"$theme"/launcher.rasi
}

if  [[ "$1" = "--budgie" ]]; then
	theme="budgie"
	launcher

elif  [[ "$1" = "--deepin" ]]; then
	theme="deepin"
	launcher

elif  [[ "$1" = "--elight" ]]; then
	theme="elementary"
	launcher

elif  [[ "$1" = "--edark" ]]; then
	theme="elementary_dark"
	launcher

elif  [[ "$1" = "--gnome" ]]; then
	theme="gnome"
	launcher

elif  [[ "$1" = "--klight" ]]; then
	theme="kde"
	launcher

elif  [[ "$1" = "--kdark" ]]; then
	theme="kde_dark"
	launcher

elif  [[ "$1" = "--liri" ]]; then
	theme="liri"
	launcher

elif  [[ "$1" = "--mint" ]]; then
	theme="mint"
	launcher

elif  [[ "$1" = "--ugnome" ]]; then
	theme="ubuntu_gnome"
	launcher

elif  [[ "$1" = "--unity" ]]; then
	theme="ubuntu_unity"
	launcher

elif  [[ "$1" = "--xubuntu" ]]; then
	theme="xubuntu"
	launcher

elif  [[ "$1" = "--zorin" ]]; then
	theme="zorin"
	launcher

else
	rofi -e "No theme specified."
	exit 1
fi