Hyprland-dotfiles/eww/ml4w-sidebar/launch.sh
Stephan Raabe 5da5231276 Updates
2024-04-22 14:46:08 +02:00

17 lines
415 B
Bash
Executable File

#!/bin/bash
FILE="$HOME/.cache/ml4w_sidebar"
CFG="$HOME/dotfiles/eww/ml4w-sidebar"
EWW=`which eww`
if [[ ! `pidof eww` ]]; then
${EWW} daemon
sleep 0.5
fi
if [[ ! -f "$FILE" ]]; then
touch "$FILE"
${EWW} --config "$CFG" open-many ml4wlauncher resources logout suspend lock reboot shutdown close
else
${EWW} --config "$CFG" close resources ml4wlauncher logout suspend lock reboot shutdown close
rm "$FILE"
fi