diff --git a/ansible/inventory/host_vars/nymph.yml b/ansible/inventory/host_vars/nymph.yml index bbd86ac..3d083df 100644 --- a/ansible/inventory/host_vars/nymph.yml +++ b/ansible/inventory/host_vars/nymph.yml @@ -12,3 +12,8 @@ host_packages: host_enabled_services: - tlp + +host_dotfiles: + - src: .config/autorandr/ + dest: .config/autorandr/ + mode: preserve diff --git a/ansible/roles/profile_desktop_i3/tasks/main.yml b/ansible/roles/profile_desktop_i3/tasks/main.yml index 6fac4c8..bb76682 100644 --- a/ansible/roles/profile_desktop_i3/tasks/main.yml +++ b/ansible/roles/profile_desktop_i3/tasks/main.yml @@ -49,6 +49,19 @@ loop_control: label: "{{ item.dest }}" +- name: Copy host-specific dotfiles + tags: [dotfiles, dotfiles:desktop, dotfiles:host] + ansible.builtin.copy: + src: "{{ playbook_dir }}/../dotfiles/{{ hostname }}/{{ item.src }}" + dest: "{{ user_home }}/{{ item.dest }}" + owner: "{{ username }}" + group: "{{ user_group }}" + mode: "{{ item.mode }}" + loop: "{{ host_dotfiles | default([]) }}" + loop_control: + label: "{{ item.dest }}" + when: host_dotfiles is defined and host_dotfiles | length > 0 + - name: Render desktop templates with private values tags: [dotfiles, dotfiles:desktop] ansible.builtin.template: diff --git a/dotfiles/nymph/.config/autorandr/dual/config b/dotfiles/nymph/.config/autorandr/dual/config new file mode 100644 index 0000000..8350c39 --- /dev/null +++ b/dotfiles/nymph/.config/autorandr/dual/config @@ -0,0 +1,27 @@ +output HDMI-1 +off +output DP-2 +off +output HDMI-2 +off +output eDP-1 +crtc 0 +mode 1920x1080 +pos 0x0 +primary +rate 60.01 +x-prop-broadcast_rgb Automatic +x-prop-colorspace Default +x-prop-max_bpc 12 +x-prop-non_desktop 0 +x-prop-scaling_mode Full aspect +output DP-1 +crtc 1 +mode 3440x1440 +pos 1920x0 +rate 50.00 +x-prop-audio auto +x-prop-broadcast_rgb Automatic +x-prop-colorspace Default +x-prop-max_bpc 12 +x-prop-non_desktop 0 diff --git a/dotfiles/nymph/.config/autorandr/dual/setup b/dotfiles/nymph/.config/autorandr/dual/setup new file mode 100644 index 0000000..2d74fae --- /dev/null +++ b/dotfiles/nymph/.config/autorandr/dual/setup @@ -0,0 +1,2 @@ +DP-1 00ffffffffffff0061a9443400000000101e0104b55021783b64f5ad5049a322135054adcf00714f81c0814081809500a9c0b300d1c0226870a0d0a02950302035001d4e3100001a20fd70a0d0a03c50302035001d4e3100001e000000fd003090a0a03c010a202020202020000000fc004d69204d6f6e69746f720a202002ac020320f44c010203040590111213141f3f2309070783010000e6060701605d29023a801871382d40582c96001d4e3100001e20ac00a0a0382d40302035001d4e3100001ef0d270a0d0a03c50302035001d4e3100001ea348b86861a03250304035001d4e3100001ef57c70a0d0a02950302035001d4e3100001e00000000006b7012790000030014bf2f01046f0d9f002f001f009f053b000280040007000a0881000804000402100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000e190 +eDP-1 00ffffffffffff0006af3d1000000000001a0104951f117802c32592575a942a22505400000001010101010101010101010101010101143780b2703828403064310035ad100000180000000f0000000000000000000000000020000000fe0041554f0a202020202020202020000000fe004231343048414b30312e30200a00bd diff --git a/dotfiles/nymph/.config/autorandr/solo/config b/dotfiles/nymph/.config/autorandr/solo/config new file mode 100644 index 0000000..a20c88d --- /dev/null +++ b/dotfiles/nymph/.config/autorandr/solo/config @@ -0,0 +1,19 @@ +output DP-1 +off +output HDMI-1 +off +output DP-2 +off +output HDMI-2 +off +output eDP-1 +crtc 0 +mode 1920x1080 +pos 0x0 +primary +rate 60.01 +x-prop-broadcast_rgb Automatic +x-prop-colorspace Default +x-prop-max_bpc 12 +x-prop-non_desktop 0 +x-prop-scaling_mode Full aspect diff --git a/dotfiles/nymph/.config/autorandr/solo/setup b/dotfiles/nymph/.config/autorandr/solo/setup new file mode 100644 index 0000000..156ea7b --- /dev/null +++ b/dotfiles/nymph/.config/autorandr/solo/setup @@ -0,0 +1 @@ +eDP-1 00ffffffffffff0006af3d1000000000001a0104951f117802c32592575a942a22505400000001010101010101010101010101010101143780b2703828403064310035ad100000180000000f0000000000000000000000000020000000fe0041554f0a202020202020202020000000fe004231343048414b30312e30200a00bd diff --git a/dotfiles/nymph/.gitkeep b/dotfiles/nymph/.gitkeep deleted file mode 100644 index e69de29..0000000