Skip to content

Instantly share code, notes, and snippets.

View 0Karakurt0's full-sized avatar

Karakurt 0Karakurt0

View GitHub Profile
@0Karakurt0
0Karakurt0 / Window_slicer
Created January 7, 2021 21:43
Дурацкая идея русифицировать баш
#! /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)