-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathamx_start
161 lines (155 loc) · 5.05 KB
/
amx_start
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
# ====================================================
# AMX_Manager Copyright(C) 2018 Furkan Türkal
# This program comes with ABSOLUTELY NO WARRANTY; This is free software,
# and you are welcome to redistribute it under certain conditions; See
# file LICENSE, which is part of this source code package, for details.
# ====================================================
#!/bin/bash
main() {
case "$1" in
android-emulator)
/home/dentrax/android/emulator/emulator -avd Nexus4-23 -camera-back webcam0 -netdelay none -netspeed full -netfast -accel on -nojni -no-boot-anim -timezone Europe/Istanbul -gpu host
;;
android-studio)
android-studio
;;
anaconda-navigator)
export CONDA_PYTHON_EXE=/home/dentrax/anaconda3/bin/python
export PATH=/home/dentrax/anaconda3/bin:$PATH
python /home/dentrax/anaconda3/bin/anaconda-navigator
;;
chromium)
chromium
;;
polybar)
killall -qw polybar
while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done
nohup polybar -q top > /dev/null 2>&1 &
nohup polybar -q bottom > /dev/null 2>&1 &
;;
rofi)
case "$2" in
normal)
rofi modi run,drun \
-show drun \
-lines 3 \
-columns 2 \
-eh 1 \
-width 200 \
-padding 450 \
-opacity "85" \
-bw 0 \
-bc "$bg-color" -bg "$bg-color" -fg "$text-color" -hlbg "$bg-color" -hlfg "#9575cd" \
-font "System San Francisco Display 25"
;;
window)
rofi -show window -lines 2 -eh 2 -width 200 -padding 450 -opacity "85" -bw 0 -bc "$bg-color" -bg "$bg-color" -fg "$text-color" -hlbg "$bg-color" -hlfg "#9575cd" -font "System San Francisco Display 13"
;;
*)
printf "amx_start rofi <command>\n"
printf " normal\n"
printf " window\n"
esac
;;
firefox)
firefox -url https://www.google.com -P "default" -fullscreen
;;
firefox-safe)
TZ=UTC firefox --no-remote -private --safe-mode -url https://www.duckduckgo.com -new-instance -P "incognito" -fullscreen -foreground -silent
;;
figlet-time)
watch -t -n1 "date +%A%n%x%n%r | figlet -t -c"
;;
godot)
/opt/godot/Godot_v3.1.1-stable_x11.64
;;
termite)
termite
;;
thunar)
thunar
;;
mailspring)
mailspring
;;
qalculate)
qalculate-gtk
;;
putty-usb)
sudo putty /dev/ttyUSB0 -serial -sercfg 9600,8,n,1,N
;;
emacs)
emacsclient -a '' -nqc "$@"
;;
vscode)
code
;;
spyder)
/home/dentrax/anaconda3/bin/python /home/dentrax/anaconda3/bin/spyder
;;
ranger)
case "$2" in
documents)
ranger ~/Documents
;;
downloads)
ranger ~/Downloads
;;
projects)
ranger ~/Projects
;;
pictures)
ranger ~/Pictures
;;
music)
ranger ~/Music
;;
*)
printf "amx_start ranger <command>\n"
printf " downloads\n"
printf " documents\n"
printf " projects\n"
printf " pictures\n"
printf " music\n"
esac
;;
wavemon)
wavemon -i wlp3s0
;;
wego)
if ping -q -c 1 -W 1 8.8.8.8 >/dev/null; then
wego -days 1 -frontend ascii-art-table
fi
;;
htop)
htop
;;
i3)
startx ~/.xinitrc i3
;;
ob)
startx ~/.xinitrc openbox
;;
x)
startx ~/.xinitrc i3
;;
*)
printf "amx_start <command>\n"
printf " i3 (i3)\n"
printf " ob (Openbox)\n"
printf " android-emulator\n"
printf " anaconda-navigator \n"
printf " rofi\n"
printf " firefox\n"
printf " firefox-safe\n"
printf " termite\n"
printf " thunar\n"
printf " mailspring\n"
printf " putty-usb\n"
printf " emacs\n"
printf " ranger\n"
printf " wavemon\n"
printf " htop\n"
esac
}
main "$@"