i3 automatic screen workspace spread

This commit is contained in:
Geoffrey Frogeye 2022-12-08 10:57:28 +01:00
parent 383336a074
commit 814f6cb71b
2 changed files with 8 additions and 0 deletions

View file

@ -55,6 +55,7 @@
register: base16_schemes
tags:
- color
- i3
- name: Configure Alacritty
template:
@ -106,6 +107,7 @@
- i3-reload
tags:
- color
- i3
when: display_server == 'x11'
- name: Set base16 theme for rofi

View file

@ -24,3 +24,9 @@ fi
feh --no-fehbg --bg-fill "$filepath"
# Make i3 distribute the workspaces on all screens
monitors_json="$(xrandr --listmonitors | tail -n+2 | awk '{ print $4 }' | sed 's|.\+|"\0"|' | tr '\n' ',')"
automatrop -e '{"x11_screens":['"$monitors_json"']}' --tags i3
# TODO Make sure it goes from left to right
# Either with the "main" display or using the geometry data