mirror of
https://github.com/LukeSmithxyz/voidrice.git
synced 2026-03-20 01:37:45 +01:00
Switched to find
This commit is contained in:
parent
f7d07db392
commit
0743f6dbb0
@ -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:") &&
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user