diff options
Diffstat (limited to 'X11/eww/scripts/open_apps')
-rwxr-xr-x | X11/eww/scripts/open_apps | 42 |
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 | ||
4 | FILE="$HOME/.cache/eww_launch.dashboard" | ||
5 | CFG="$HOME/.config/eww/dashboard" | ||
6 | EWW=`which eww` | ||
7 | |||
8 | close_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 | |||
15 | if [[ "$1" == "--ff" ]]; then | ||
16 | close_dash && firefox & | ||
17 | |||
18 | elif [[ "$1" == "--tg" ]]; then | ||
19 | close_dash && telegram-desktop & | ||
20 | |||
21 | elif [[ "$1" == "--dc" ]]; then | ||
22 | close_dash && discord & | ||
23 | |||
24 | elif [[ "$1" == "--tr" ]]; then | ||
25 | close_dash && alacritty --working-directory ~ & | ||
26 | |||
27 | elif [[ "$1" == "--fm" ]]; then | ||
28 | close_dash && thunar ~ & | ||
29 | |||
30 | elif [[ "$1" == "--ge" ]]; then | ||
31 | close_dash && geany & | ||
32 | |||
33 | elif [[ "$1" == "--cd" ]]; then | ||
34 | close_dash && code & | ||
35 | |||
36 | elif [[ "$1" == "--gp" ]]; then | ||
37 | close_dash && gimp & | ||
38 | |||
39 | elif [[ "$1" == "--vb" ]]; then | ||
40 | close_dash && virtualbox & | ||
41 | |||
42 | fi | ||