mirror of
https://github.com/ksyasuda/rice.git
synced 2025-12-07 02:53:38 -08:00
updates
This commit is contained in:
43
eww/launch_eww
Executable file
43
eww/launch_eww
Executable file
@@ -0,0 +1,43 @@
|
||||
#!/bin/bash
|
||||
|
||||
## Files and cmd
|
||||
FILE="$HOME/.cache/eww_launch.xyz"
|
||||
EWW="$HOME/.bin/eww"
|
||||
|
||||
## Run eww daemon if not running already
|
||||
if [[ ! `pidof eww` ]]; then
|
||||
${EWW} daemon
|
||||
sleep 1
|
||||
fi
|
||||
|
||||
## Open widgets
|
||||
run_eww() {
|
||||
${EWW} open-many \
|
||||
background \
|
||||
profile \
|
||||
system \
|
||||
clock \
|
||||
uptime \
|
||||
music \
|
||||
github \
|
||||
reddit \
|
||||
twitter \
|
||||
youtube \
|
||||
weather \
|
||||
apps \
|
||||
mail \
|
||||
logout \
|
||||
sleep \
|
||||
reboot \
|
||||
poweroff \
|
||||
folders
|
||||
}
|
||||
|
||||
## Launch or close widgets accordingly
|
||||
if [[ ! -f "$FILE" ]]; then
|
||||
touch "$FILE"
|
||||
run_eww
|
||||
else
|
||||
${EWW} close-all
|
||||
rm "$FILE"
|
||||
fi
|
||||
Reference in New Issue
Block a user