sway: deploy start-sway system-wide and fix runtime warnings

- 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>
This commit is contained in:
Fabio Scotto di Santolo
2026-05-16 21:20:01 +02:00
parent 099904f69b
commit 2ee4bd963e
5 changed files with 38 additions and 30 deletions

View File

@@ -162,10 +162,6 @@ desktop_sway_dotfiles:
src: .config/sway/
dest: .config/sway/
mode: preserve
- name: Sway session launcher
src: .local/bin/start-sway
dest: .local/bin/start-sway
mode: "0755"
- name: dunst config
src: .config/dunst/
dest: .config/dunst/

View File

@@ -1,5 +1,5 @@
[Desktop Entry]
Name=Sway
Comment=SwayFX (Wayland)
Exec=start-sway
Exec=/usr/local/bin/start-sway
Type=Application

View File

@@ -27,6 +27,16 @@
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: