fixed the identification of an active monitor

This commit is contained in:
Tomas Baca 2018-09-14 21:53:29 +02:00
parent 7bdb386d6e
commit 3dc873a755

View File

@ -163,7 +163,7 @@ MATCH ANY" | rofi -i -dmenu -p "How to identify windows? (xprop style)")
ALL_WS_FILE=$LAYOUT_PATH/all-layouts.json
CURRENT_MONITOR=$(xrandr | grep -w connected | awk '{print $1}')
CURRENT_MONITOR=$(i3-msg -t get_workspaces | jq '.[] | select(.focused==true).output' | cut -d"\"" -f2)
# get the i3-tree for all workspaces for the current monitor
i3-save-tree --output "$CURRENT_MONITOR" > "$ALL_WS_FILE" 2>&1