From 0743f6dbb0cd827d155c2cd82fc13675b8d7b01c Mon Sep 17 00:00:00 2001 From: Micah Halter Date: Tue, 25 Jun 2019 08:29:28 -0400 Subject: [PATCH] Switched to find --- .local/bin/i3cmds/displayselect | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.local/bin/i3cmds/displayselect b/.local/bin/i3cmds/displayselect index a21785fc..eb1f6fdf 100755 --- a/.local/bin/i3cmds/displayselect +++ b/.local/bin/i3cmds/displayselect @@ -61,7 +61,7 @@ allposs=$(xrandr -q | grep "connected") # Get all connected screens. 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: chosen=$(printf "%s\\nmulti-monitor\\nmanual selection" "$screens" | dmenu -i -p "Select display arangement:") &&