1
0
mirror of https://github.com/eoli3n/dotfiles synced 2024-11-22 06:51:58 +01:00

updated sway and kanshi display config at work

This commit is contained in:
eoli3n 2023-11-14 14:21:41 +01:00
parent 3abeffef2a
commit 280bce9025
5 changed files with 14 additions and 7 deletions

2
.gitignore vendored

@ -1,3 +1,3 @@
.vagrant .vagrant
*.swp *.swp
./hosts hosts

@ -7,19 +7,19 @@ displays:
mode: 1920x1080 mode: 1920x1080
scale: 1.6 scale: 1.6
- name: screen1 - name: screen1
id: DP-7 id: DP-8
x: 0 x: 0
y: 0 y: 0
mode: 1920x1080 mode: 1920x1080
scale: 1 scale: 1
- name: screen2 - name: screen2
id: DP-5 id: DP-6
mode: 1920x1080 mode: 1920x1080
x: 1920 x: 1920
y: 0 y: 0
scale: 1 scale: 1
- name: screen2 - name: screen3
id: DP-6 id: DP-7
mode: 1920x1080 mode: 1920x1080
x: 3840 x: 3840
y: 0 y: 0

3
hosts

@ -1,4 +1,3 @@
[cli] [cli]
[desktop] [desktop]
osz ansible_connection=local work ansible_connection=local

@ -3,6 +3,7 @@
set $laptop "{{ (displays | selectattr('name', 'eq', 'laptop')).0.id }}" set $laptop "{{ (displays | selectattr('name', 'eq', 'laptop')).0.id }}"
set $screen1 "{{ (displays | selectattr('name', 'eq', 'screen1')).0.id }}" set $screen1 "{{ (displays | selectattr('name', 'eq', 'screen1')).0.id }}"
set $screen2 "{{ (displays | selectattr('name', 'eq', 'screen2')).0.id }}" set $screen2 "{{ (displays | selectattr('name', 'eq', 'screen2')).0.id }}"
set $screen3 "{{ (displays | selectattr('name', 'eq', 'screen3')).0.id }}"
# dpms # dpms
output * dpms on output * dpms on

@ -1,3 +1,10 @@
profile {
output "{{ (displays | selectattr('name', 'eq', 'screen3')).0.id }}" position {{ (displays | selectattr('name', 'eq', 'screen3')).0.x }},{{ (displays | selectattr('name', 'eq', 'screen3')).0.y }} mode {{ (displays | selectattr('name', 'eq', 'screen3')).0.mode }} scale {{ (displays | selectattr('name', 'eq', 'screen3')).0.scale }}
output "{{ (displays | selectattr('name', 'eq', 'screen2')).0.id }}" position {{ (displays | selectattr('name', 'eq', 'screen2')).0.x }},{{ (displays | selectattr('name', 'eq', 'screen2')).0.y }} mode {{ (displays | selectattr('name', 'eq', 'screen2')).0.mode }} scale {{ (displays | selectattr('name', 'eq', 'screen2')).0.scale }}
output "{{ (displays | selectattr('name', 'eq', 'screen1')).0.id }}" position {{ (displays | selectattr('name', 'eq', 'screen1')).0.x }},{{ (displays | selectattr('name', 'eq', 'screen1')).0.y }} mode {{ (displays | selectattr('name', 'eq', 'screen1')).0.mode }} scale {{ (displays | selectattr('name', 'eq', 'screen1')).0.scale }}
output "{{ (displays | selectattr('name', 'eq', 'laptop')).0.id }}" position {{ (displays | selectattr('name', 'eq', 'laptop')).0.x }},{{ (displays | selectattr('name', 'eq', 'laptop')).0.y }} mode {{ (displays | selectattr('name', 'eq', 'laptop')).0.mode }} scale {{ (displays | selectattr('name', 'eq', 'laptop')).0.scale }}
}
profile { profile {
output "{{ (displays | selectattr('name', 'eq', 'screen2')).0.id }}" disable output "{{ (displays | selectattr('name', 'eq', 'screen2')).0.id }}" disable
output "{{ (displays | selectattr('name', 'eq', 'screen1')).0.id }}" position {{ (displays | selectattr('name', 'eq', 'screen1')).0.x }},{{ (displays | selectattr('name', 'eq', 'screen1')).0.y }} mode {{ (displays | selectattr('name', 'eq', 'screen1')).0.mode }} scale {{ (displays | selectattr('name', 'eq', 'screen1')).0.scale }} output "{{ (displays | selectattr('name', 'eq', 'screen1')).0.id }}" position {{ (displays | selectattr('name', 'eq', 'screen1')).0.x }},{{ (displays | selectattr('name', 'eq', 'screen1')).0.y }} mode {{ (displays | selectattr('name', 'eq', 'screen1')).0.mode }} scale {{ (displays | selectattr('name', 'eq', 'screen1')).0.scale }}