tweaks to simplify eww
This commit is contained in:
parent
472ab71a95
commit
8c9d0a03db
5 changed files with 429 additions and 351 deletions
18
.config/eww/scripts/wks
Executable file
18
.config/eww/scripts/wks
Executable 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
|
Loading…
Add table
Add a link
Reference in a new issue