2023-08-03 23:07:22 -04:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
on() {
|
|
|
|
# open notif panel
|
|
|
|
swaync-client -op
|
|
|
|
|
2023-08-19 20:44:37 -04:00
|
|
|
# open closers to close when outside control center
|
2023-08-03 23:07:22 -04:00
|
|
|
eww open closer-notif1
|
|
|
|
eww open closer-notif2
|
|
|
|
eww open closer-notif3
|
2023-08-19 22:27:18 -04:00
|
|
|
eww open closer-notif4
|
|
|
|
|
|
|
|
eww close notif-panel; eww open notif-panel &&
|
2023-08-03 23:07:22 -04:00
|
|
|
eww update notif-panel-state=true
|
|
|
|
}
|
|
|
|
|
|
|
|
off() {
|
|
|
|
swaync-client -cp
|
|
|
|
|
|
|
|
eww update notif-panel-state=false
|
|
|
|
|
|
|
|
eww close closer-notif1
|
|
|
|
eww close closer-notif2
|
|
|
|
eww close closer-notif3
|
2023-08-19 22:27:18 -04:00
|
|
|
eww close closer-notif4
|
2023-08-03 23:07:22 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
[[ "$1" == "on" ]] && on
|
|
|
|
[[ "$1" == "off" ]] && off
|