Switched to find

This commit is contained in:
Micah Halter 2019-06-25 08:29:28 -04:00
parent f7d07db392
commit 0743f6dbb0

View File

@ -61,7 +61,7 @@ allposs=$(xrandr -q | grep "connected")
# Get all connected screens. # Get all connected screens.
screens=$(echo "$allposs" | grep " connected" | awk '{print $1}') screens=$(echo "$allposs" | grep " connected" | awk '{print $1}')
layouts=$(ls $layoutloc | awk '{print $1}') layouts=$(find $layoutloc -type f -name "*.sh" -printf "%f\n")
# Get user choice including multi-monitor and manual selection: # Get user choice including multi-monitor and manual selection:
chosen=$(printf "%s\\nmulti-monitor\\nmanual selection" "$screens" | dmenu -i -p "Select display arangement:") && chosen=$(printf "%s\\nmulti-monitor\\nmanual selection" "$screens" | dmenu -i -p "Select display arangement:") &&