Skip to content

Instantly share code, notes, and snippets.

@0Karakurt0
0Karakurt0 / Window_slicer
Created Jan 7, 2021
Дурацкая идея русифицировать баш
View Window_slicer
#! /bin/bash
# variables
X=${X:=0}
Y=${Y:=0}
window_x=${window_x:=0}
window_y=${window_y:=0}
window_width=${window_width:=2}
window_height=${window_height:=2}
instance=${instance:=$TERM}
window_count=$(i3-msg -t get_tree | jq -r '.. | .nodes?[]? | select(.window_type == "normal") | .name' | wc -l)