tweaks to simplify eww

This commit is contained in:
Chris Cochrun 2023-08-30 10:26:25 -05:00
parent 472ab71a95
commit 8c9d0a03db
5 changed files with 429 additions and 351 deletions

18
.config/eww/scripts/wks Executable file
View file

@ -0,0 +1,18 @@
#!/usr/bin/env bash
focused_workspace () {
hyprctl monitors | grep -B 5 "focused: yes" | awk 'NR == 1{print $3}'
}
occupied_workspace () {
hyprctl workspaces
}
case $1 in
fw)
focused_workspace
;;
ow)
occupied_workspace
;;
esac