diff options
Diffstat (limited to 'X11/eww/scripts/open_folders')
-rwxr-xr-x | X11/eww/scripts/open_folders | 33 |
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 | ||
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" == "--dl" ]]; then | ||
16 | close_dash && thunar ~/Downloads & | ||
17 | |||
18 | elif [[ "$1" == "--docs" ]]; then | ||
19 | close_dash && thunar ~/Documents & | ||
20 | |||
21 | elif [[ "$1" == "--music" ]]; then | ||
22 | close_dash && thunar ~/Music & | ||
23 | |||
24 | elif [[ "$1" == "--pics" ]]; then | ||
25 | close_dash && thunar ~/Pictures & | ||
26 | |||
27 | elif [[ "$1" == "--cfg" ]]; then | ||
28 | close_dash && thunar ~/.config & | ||
29 | |||
30 | elif [[ "$1" == "--local" ]]; then | ||
31 | close_dash && thunar ~/.local/share & | ||
32 | |||
33 | fi | ||