mirror of
https://github.com/Cametendo/MyI3Config-fork.git
synced 2026-03-18 03:40:20 +01:00
10 lines
295 B
Bash
Executable File
10 lines
295 B
Bash
Executable File
# Get screen resolution
|
|
res_w=$(xdpyinfo | awk '/dimensions/{print $2}' | cut -d'x' -f1)
|
|
res_h=$(xdpyinfo | awk '/dimensions/{print $2}' | cut -d'x' -f2)
|
|
|
|
# Compute margins if needed
|
|
w_margin=$((res_w / 4))
|
|
h_margin=$((res_h / 4))
|
|
|
|
# Launch wlogout with margins
|
|
wlogout -T $h_margin -B $h_margin |