mirror of
https://github.com/fscotto/infra.git
synced 2026-05-31 15:59:56 +00:00
- Move start-sway to /usr/local/bin so emptty resolves it without a user PATH (it runs the launcher with an absolute path). The role copies the script as root; the user dotfile entry is removed. - Fix runtime errors / deprecations in sway/config: tiling_drag accepts only enable|disable|toggle; new_window / new_float have been superseded by default_border / default_floating_border. - Simplify workspace names to numeric only; waybar already maps them to roman numerals via format-icons. - Update cleanup-sway.sh to remove /usr/local/bin/start-sway and the emptty session entry together as system files. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
52 lines
1.6 KiB
YAML
52 lines
1.6 KiB
YAML
---
|
|
- name: Ensure sway config directories exist
|
|
tags: [dotfiles, dotfiles:desktop, sway]
|
|
ansible.builtin.file:
|
|
path: "{{ item }}"
|
|
state: directory
|
|
owner: "{{ username }}"
|
|
group: "{{ user_group }}"
|
|
mode: "0755"
|
|
loop:
|
|
- "{{ user_home }}/.config/alacritty"
|
|
- "{{ user_home }}/.config/dunst"
|
|
- "{{ user_home }}/.config/rofi"
|
|
- "{{ user_home }}/.config/sway"
|
|
- "{{ user_home }}/.config/sway/scripts"
|
|
- "{{ user_home }}/.config/sway/wallpapers"
|
|
- "{{ user_home }}/.config/waybar"
|
|
when: "'sway' in (desktop_sessions_enabled | default([]))"
|
|
|
|
- name: Install allowed emptty Wayland sessions
|
|
tags: [packages, services, emptty, sway]
|
|
ansible.builtin.copy:
|
|
src: sway.desktop
|
|
dest: /etc/emptty/wayland-sessions/sway.desktop
|
|
owner: root
|
|
group: root
|
|
mode: "0644"
|
|
when: "'sway' in (desktop_sessions_enabled | default([]))"
|
|
|
|
- name: Install Sway session launcher in /usr/local/bin
|
|
tags: [packages, services, sway]
|
|
ansible.builtin.copy:
|
|
src: "{{ playbook_dir }}/../dotfiles/desktop/.local/bin/start-sway"
|
|
dest: /usr/local/bin/start-sway
|
|
owner: root
|
|
group: root
|
|
mode: "0755"
|
|
when: "'sway' in (desktop_sessions_enabled | default([]))"
|
|
|
|
- name: Copy sway desktop dotfiles
|
|
tags: [dotfiles, dotfiles:desktop, sway]
|
|
ansible.builtin.copy:
|
|
src: "{{ playbook_dir }}/../dotfiles/desktop/{{ item.src }}"
|
|
dest: "{{ user_home }}/{{ item.dest }}"
|
|
owner: "{{ username }}"
|
|
group: "{{ user_group }}"
|
|
mode: "{{ item.mode }}"
|
|
loop: "{{ desktop_sway_dotfiles | default([]) }}"
|
|
loop_control:
|
|
label: "{{ item.dest }}"
|
|
when: "'sway' in (desktop_sessions_enabled | default([]))"
|