aboutsummaryrefslogtreecommitdiffhomepage
path: root/X11/eww/scripts/open_folders
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_folders
parent4496db3c021d735a324a28c46ce4a18f090270f5 (diff)
Add eww config from aditaya
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