mirror of
https://github.com/fscotto/infra.git
synced 2026-05-30 15:39:58 +00:00
Screenshots - Swap xfce4-screenshooter for flameshot + grim/slurp/jq; xfce4 used the X11 selection so clipboard didn't round-trip to Wayland clients. Print invokes flameshot's editor; Shift/Alt+Print are quick grim-based captures via a small wrapper script. Flameshot is now autostarted so the first capture isn't slow. Polkit - Add for_window rules so the xfce-polkit dialog (and any other polkit agent) always opens floating. Flatpak dark theme - Write /etc/flatpak/overrides/global with GTK_THEME=Yaru-Blue-dark for legacy GTK apps, plus a sway-portals.conf so the Settings portal is served by xdg-desktop-portal-gtk (wlr doesn't implement it). That lets libadwaita apps see color-scheme=prefer-dark. cleanup-sway: track the new package set. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
62 lines
2.0 KiB
YAML
62 lines
2.0 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: Configure xdg-desktop-portal backend preferences for sway
|
|
tags: [packages, services, sway, portal]
|
|
ansible.builtin.copy:
|
|
src: sway-portals.conf
|
|
dest: /etc/xdg/xdg-desktop-portal/sway-portals.conf
|
|
owner: root
|
|
group: root
|
|
mode: "0644"
|
|
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([]))"
|