From 825c29b5e0740b27439003f21e1a1a74e563cfd5 Mon Sep 17 00:00:00 2001 From: Hsieh Chin Fan Date: Sat, 4 Feb 2023 08:33:47 +0800 Subject: Add eww config from aditaya --- X11/eww/scripts/open_folders | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100755 X11/eww/scripts/open_folders (limited to 'X11/eww/scripts/open_folders') 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 @@ +#!/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 -- cgit v1.2.3-70-g09d2