*.sh: Fix some shellcheck issues

This commit is contained in:
2025-06-27 12:59:13 +02:00
parent 3eb9113546
commit 5078b6a63f
7 changed files with 16 additions and 15 deletions

View File

@@ -1,6 +1,6 @@
#!/bin/sh
if [ 1 -lt "$(xrandr -q | grep " connected" | wc -l)" ]; then
if [ 1 -lt "$(xrandr -q | grep -c " connected")" ]; then
# scale second monitor to 3200x1800 and put to the left
xrandr --output eDP1 --auto --pos 0x0 --primary \
--output DP1 --auto --scale-from 3200x1800 --pos 3200x0 \