fresh init

This commit is contained in:
sankalp committed 2023-05-25 01:05:57 +05:45
1 parent f208f22443
commit 30c3ff48a5
10 files changed
+1333

No files matched your search

+27
View File
@@ -0,0 +1,27 @@
#!/usr/bin/env bash
#By: S4NKALP https://github.com/S4NKALP
FILE="$HOME/.cache/eww.control"
ewwcfg="$HOME/.config/bspwm/widgets/control-panel"
EWW=`which eww`
if [[ ! `pidof eww` ]]; then
${EWW} -c $HOME/.config/bspwm/widgets/control-panel daemon &
sleep 1
fi
launch_eww() {
${EWW} --config "$ewwcfg" open control-panel
}
## Launch or close widgets accordingly
if [[ ! -f "$FILE" ]]; then
touch "$FILE"
launch_eww
else
${EWW} --config "$ewwcfg" close control-panel
rm "$FILE"
fi