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_apps | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100755 X11/eww/scripts/open_apps (limited to 'X11/eww/scripts/open_apps') diff --git a/X11/eww/scripts/open_apps b/X11/eww/scripts/open_apps new file mode 100755 index 0000000..57d3718 --- /dev/null +++ b/X11/eww/scripts/open_apps @@ -0,0 +1,42 @@ +#!/bin/bash + +## Open Applications +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" == "--ff" ]]; then + close_dash && firefox & + +elif [[ "$1" == "--tg" ]]; then + close_dash && telegram-desktop & + +elif [[ "$1" == "--dc" ]]; then + close_dash && discord & + +elif [[ "$1" == "--tr" ]]; then + close_dash && alacritty --working-directory ~ & + +elif [[ "$1" == "--fm" ]]; then + close_dash && thunar ~ & + +elif [[ "$1" == "--ge" ]]; then + close_dash && geany & + +elif [[ "$1" == "--cd" ]]; then + close_dash && code & + +elif [[ "$1" == "--gp" ]]; then + close_dash && gimp & + +elif [[ "$1" == "--vb" ]]; then + close_dash && virtualbox & + +fi -- cgit v1.2.3-70-g09d2