34 lines
766 B
Bash
Executable File
34 lines
766 B
Bash
Executable File
#!/bin/sh
|
|
|
|
## 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 && xdg-open ~/Downloads &
|
|
|
|
elif [[ "$1" == "--docs" ]]; then
|
|
close_dash && xdg-open ~/Documents &
|
|
|
|
elif [[ "$1" == "--music" ]]; then
|
|
close_dash && xdg-open ~/Music &
|
|
|
|
elif [[ "$1" == "--pics" ]]; then
|
|
close_dash && xdg-open ~/Pictures &
|
|
|
|
elif [[ "$1" == "--cfg" ]]; then
|
|
close_dash && xdg-open ~/.config &
|
|
|
|
elif [[ "$1" == "--local" ]]; then
|
|
close_dash && xdg-open ~/.local/share &
|
|
|
|
fi
|