Added monitor check
This commit is contained in:
parent
d507864ec1
commit
618c02c14b
6 changed files with 143 additions and 76 deletions
|
@ -44,6 +44,8 @@ generate() {
|
|||
|
||||
eww close-all
|
||||
|
||||
sleep 2
|
||||
|
||||
for ((i = 0; i < ${#id[@]}; i++)); do
|
||||
scale_value=$(echo "${scale[$i]}" | bc -l)
|
||||
|
||||
|
@ -56,6 +58,7 @@ generate() {
|
|||
monitorID=$(xrandr --listactivemonitors | grep +${name[$i]} | awk '{sub(/.$/,"",$1); print $1}')
|
||||
|
||||
eww open bar --id bar${monitorID} --arg monitor=${monitorID} --arg width=${new_width} --arg height=25
|
||||
sleep 2
|
||||
|
||||
done
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue