···11+#!/bin/bash
22+33+stringContain() { case $2 in *$1* ) return 0;; *) return 1;; esac ;}
44+55+if [ $# -ne 1 ]; then
66+ echo "usage: toggle_eww_window.sh <eww_window_name>"
77+ exit 1
88+fi
99+1010+name=$1
1111+windows=$(eww active-windows)
1212+1313+if stringContain "$name" "$windows"; then
1414+ eww close $name
1515+ echo "window closed"
1616+ exit 0
1717+fi
1818+1919+eww open $name
+1
window_manager/README.md
···1212- `blueman` - Bluetooth stuff
1313- [Pwvucontrol](https://flathub.org/apps/com.saivert.pwvucontrol) from Flathub - to control audio devices
1414- `grim` and `slurp` - to make screenshots work
1515+- `eww` - poweroff/suspend/logout/reboot menu
15161617Optional/alternatives available:
1718- [Zen Browser](https://flathub.org/apps/app.zen_browser.zen) from Flathub - can be changed at `.config/hypr/hyprland/apps.conf`