🌚
Size: a a a
Лс
VP
∀
echo -e "11\n12\n13" | grep -E "12|" --color
оно и все выводит и нужное подсвечивает, лесс так не умеетЛс
i3-msg -t get_tree | jq -r '..|try select(.focused == true)| .rect | "window_x=\(.x)\nwindow_y=\(.y)\nwindow_width=\(.width)\nwindow_height=\(.height)"'
так же выводить поле instanceQ
i3-msg -t get_tree | jq -r '..|try select(.focused == true)| .rect | "window_x=\(.x)\nwindow_y=\(.y)\nwindow_width=\(.width)\nwindow_height=\(.height)"'
так же выводить поле instancei3-msg -t get_tree | jq -r '..|try select(.focused == true)| "window_x=\(.rect.x)\nwindow_y=\(.rect.y)\nwindow_width=\(.rect.width)\nwindow_height=\(.rect.height)\ninstance=\(.window_properties.instance)"'
Лс
i3-msg -t get_tree | jq -r '..|try select(.focused == true)| "window_x=\(.rect.x)\nwindow_y=\(.rect.y)\nwindow_width=\(.rect.width)\nwindow_height=\(.rect.height)\ninstance=\(.window_properties.instance)"'
Лс
#! /bin/bash
# getting cursor coordinates
eval $(xdotool getmouselocation --shell)
# getting window coordinates and dimentions
eval $( i3-msg -t get_tree | jq -r '..|try select(.focused == true)| .rect | "window_x=\(.x)\nwindow_y=\(.y)\nwindow_width=\(.width)\nwindow_height=\(.height)"' )
myfunc(){
change=$(( $1 / 2 - ($2 - $3) ))
#waiting for kitty to be launched
i3-msg split "$5" && kitty --detach && sleep 2
if [ "$change" -gt 0 ]; then
i3-msg resize grow "$4" "$change"
else
change=$(( change* - 1 ))
i3-msg resize shrink "$4" "$change"
fi
}
if [ "$1" = "horiz" ]; then myfunc $window_height $Y $window_y height v
elif [ "$1" = "vert" ]; then myfunc $window_width $X $window_x width h
fi
🌚
X=${X:=0}
тогда и шелчек не будет гугаться и скрипт в случае если из джсона ничего не получит то ни чего не на хреновертитЛс
X=${X:=0}
тогда и шелчек не будет гугаться и скрипт в случае если из джсона ничего не получит то ни чего не на хреновертитЛс
X=${X:=0}
тогда и шелчек не будет гугаться и скрипт в случае если из джсона ничего не получит то ни чего не на хреновертитЛс
Лс
🌚
️