aboutsummaryrefslogtreecommitdiffhomepage
path: root/X11/eww/scripts/open_folders
diff options
context:
space:
mode:
Diffstat (limited to 'X11/eww/scripts/open_folders')
-rwxr-xr-xX11/eww/scripts/open_folders33
1 files changed, 33 insertions, 0 deletions
diff --git a/X11/eww/scripts/open_folders b/X11/eww/scripts/open_folders
new file mode 100755
index 0000000..c5a5628
--- /dev/null
+++ b/X11/eww/scripts/open_folders
@@ -0,0 +1,33 @@
1#!/bin/bash
2
3## Open folders in thunar
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" == "--dl" ]]; then
16 close_dash && thunar ~/Downloads &
17
18elif [[ "$1" == "--docs" ]]; then
19 close_dash && thunar ~/Documents &
20
21elif [[ "$1" == "--music" ]]; then
22 close_dash && thunar ~/Music &
23
24elif [[ "$1" == "--pics" ]]; then
25 close_dash && thunar ~/Pictures &
26
27elif [[ "$1" == "--cfg" ]]; then
28 close_dash && thunar ~/.config &
29
30elif [[ "$1" == "--local" ]]; then
31 close_dash && thunar ~/.local/share &
32
33fi