aboutsummaryrefslogtreecommitdiffhomepage
path: root/X11/eww/scripts/open_folders
blob: c5a5628bb564f92527a14001ad90615cdc53a2b4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/bash

## Open folders in thunar
FILE="$HOME/.cache/eww_launch.dashboard"
CFG="$HOME/.config/eww/dashboard"
EWW=`which eww`

close_dash() {
	${EWW} --config "$CFG" close \
					background profile system clock uptime music github \
					reddit twitter youtube weather apps mail logout sleep reboot poweroff folders
	rm -rf "$FILE"
}

if [[ "$1" == "--dl" ]]; then
	close_dash && thunar ~/Downloads &

elif [[ "$1" == "--docs" ]]; then
	close_dash && thunar ~/Documents &

elif [[ "$1" == "--music" ]]; then
	close_dash && thunar ~/Music &

elif [[ "$1" == "--pics" ]]; then
	close_dash && thunar ~/Pictures &

elif [[ "$1" == "--cfg" ]]; then
	close_dash && thunar ~/.config &

elif [[ "$1" == "--local" ]]; then
	close_dash && thunar ~/.local/share &

fi