Added some basic mangowm configuration.
This commit is contained in:
parent
fbb1c6df2e
commit
8ecd3e9447
16 changed files with 1532 additions and 0 deletions
11
.config/mango/scripts/cycle-monitor
Executable file
11
.config/mango/scripts/cycle-monitor
Executable file
|
|
@ -0,0 +1,11 @@
|
|||
#!/bin/bash
|
||||
monitors=($(mmsg get all-monitors | jq -r '.monitors[].name'))
|
||||
total=${#monitors[@]}
|
||||
[[ $total -le 1 ]] && exit 0
|
||||
cur=$(mmsg get all-monitors | jq -r '.monitors[] | select(.active == true) | .name')
|
||||
idx=0
|
||||
for i in "${!monitors[@]}"; do
|
||||
[[ "${monitors[$i]}" == "$cur" ]] && idx=$i && break
|
||||
done
|
||||
idx=$(( (idx + 1) % total ))
|
||||
mmsg dispatch focusmon,"${monitors[$idx]}"
|
||||
Loading…
Add table
Add a link
Reference in a new issue