aboutsummaryrefslogtreecommitdiffhomepage
path: root/X11/eww/scripts/open_apps
diff options
context:
space:
mode:
authorHsieh Chin Fan <typebrook@topo.tw>2023-02-04 08:33:47 +0800
committerHsieh Chin Fan <typebrook@topo.tw>2023-02-04 08:33:47 +0800
commit825c29b5e0740b27439003f21e1a1a74e563cfd5 (patch)
tree97e398b856abe9571efeedbf17e81ccc80118952 /X11/eww/scripts/open_apps
parent4496db3c021d735a324a28c46ce4a18f090270f5 (diff)
Add eww config from aditaya
Diffstat (limited to 'X11/eww/scripts/open_apps')
-rwxr-xr-xX11/eww/scripts/open_apps42
1 files changed, 42 insertions, 0 deletions
diff --git a/X11/eww/scripts/open_apps b/X11/eww/scripts/open_apps
new file mode 100755
index 0000000..57d3718
--- /dev/null
+++ b/X11/eww/scripts/open_apps
@@ -0,0 +1,42 @@
1#!/bin/bash
2
3## Open Applications
4FILE="$HOME/.cache/eww_launch.dashboard"
5CFG="$HOME/.config/eww/dashboard"
6EWW=`which eww`
7
8close_dash() {
9 ${EWW} --config "$CFG" close \
10 background profile system clock uptime music github \
11 reddit twitter youtube weather apps mail logout sleep reboot poweroff folders
12 rm -rf "$FILE"
13}
14
15if [[ "$1" == "--ff" ]]; then
16 close_dash && firefox &
17
18elif [[ "$1" == "--tg" ]]; then
19 close_dash && telegram-desktop &
20
21elif [[ "$1" == "--dc" ]]; then
22 close_dash && discord &
23
24elif [[ "$1" == "--tr" ]]; then
25 close_dash && alacritty --working-directory ~ &
26
27elif [[ "$1" == "--fm" ]]; then
28 close_dash && thunar ~ &
29
30elif [[ "$1" == "--ge" ]]; then
31 close_dash && geany &
32
33elif [[ "$1" == "--cd" ]]; then
34 close_dash && code &
35
36elif [[ "$1" == "--gp" ]]; then
37 close_dash && gimp &
38
39elif [[ "$1" == "--vb" ]]; then
40 close_dash && virtualbox &
41
42fi