mirror of
https://github.com/fscotto/infra.git
synced 2026-05-30 23:49:56 +00:00
Align desktop theming around Noctalia Ayu
- Move Sway, GTK, Qt, Alacritty, and Emacs toward the Noctalia-generated Ayu theme - Add shared font/cursor settings, qt5ct/qt6ct templates, and Flatpak theme integration support - Keep browser and Telegram theming manual while preserving generated Noctalia assets where useful
This commit is contained in:
@@ -9,6 +9,16 @@ desktop_default_session_env: xorg
|
||||
desktop_restart_emptty_automatically: false
|
||||
desktop_emptty_session_error_logging: disabled
|
||||
|
||||
desktop_ui_font_family: Noto Sans
|
||||
desktop_ui_font_size: 10
|
||||
desktop_fixed_font_family: Hack Nerd Font
|
||||
desktop_sway_font_size: 10
|
||||
desktop_alacritty_font_size: 12
|
||||
desktop_emacs_font_size: 14
|
||||
desktop_cursor_theme: Yaru
|
||||
desktop_cursor_size: 24
|
||||
desktop_icon_theme: Yaru-orange-dark
|
||||
|
||||
desktop_common_packages:
|
||||
- brightnessctl
|
||||
- dex
|
||||
@@ -47,8 +57,11 @@ desktop_i3_packages:
|
||||
- xss-lock
|
||||
|
||||
desktop_sway_packages:
|
||||
- adw-gtk-theme
|
||||
- grim
|
||||
- kanshi
|
||||
- qt5ct
|
||||
- qt6ct
|
||||
- slurp
|
||||
- swayfx
|
||||
- wl-clipboard
|
||||
@@ -310,4 +323,14 @@ desktop_flatpak_packages:
|
||||
- org.telegram.desktop
|
||||
|
||||
desktop_flatpak_extensions:
|
||||
- org.gtk.Gtk3theme.Yaru-Blue-dark//stable
|
||||
- org.gtk.Gtk3theme.Yaru-Orange-dark//3.22
|
||||
|
||||
desktop_flatpak_global_filesystems:
|
||||
- xdg-config/gtk-3.0:ro
|
||||
- xdg-config/gtk-4.0:ro
|
||||
- xdg-config/qt5ct:ro
|
||||
- xdg-config/qt6ct:ro
|
||||
|
||||
desktop_flatpak_global_env:
|
||||
- QT_QPA_PLATFORM=wayland
|
||||
- QT_QPA_PLATFORMTHEME=qt6ct
|
||||
|
||||
@@ -10,6 +10,10 @@
|
||||
loop:
|
||||
- "{{ user_home }}/.config/sway"
|
||||
- "{{ user_home }}/.config/kanshi"
|
||||
- "{{ user_home }}/.config/qt5ct"
|
||||
- "{{ user_home }}/.config/qt5ct/colors"
|
||||
- "{{ user_home }}/.config/qt6ct"
|
||||
- "{{ user_home }}/.config/qt6ct/colors"
|
||||
when: "'sway' in (desktop_sessions_enabled | default([]))"
|
||||
|
||||
- name: Ensure Noctalia config directories exist
|
||||
@@ -69,6 +73,26 @@
|
||||
mode: "0644"
|
||||
when: "'sway' in (desktop_sessions_enabled | default([]))"
|
||||
|
||||
- name: Render qt5ct config
|
||||
tags: [dotfiles, dotfiles:desktop, sway, noctalia]
|
||||
ansible.builtin.template:
|
||||
src: qt5ct.conf.j2
|
||||
dest: "{{ user_home }}/.config/qt5ct/qt5ct.conf"
|
||||
owner: "{{ username }}"
|
||||
group: "{{ user_group }}"
|
||||
mode: "0644"
|
||||
when: "'sway' in (desktop_sessions_enabled | default([]))"
|
||||
|
||||
- name: Render qt6ct config
|
||||
tags: [dotfiles, dotfiles:desktop, sway, noctalia]
|
||||
ansible.builtin.template:
|
||||
src: qt6ct.conf.j2
|
||||
dest: "{{ user_home }}/.config/qt6ct/qt6ct.conf"
|
||||
owner: "{{ username }}"
|
||||
group: "{{ user_group }}"
|
||||
mode: "0644"
|
||||
when: "'sway' in (desktop_sessions_enabled | default([]))"
|
||||
|
||||
- name: Manage Noctalia shell plugins
|
||||
tags: [dotfiles, dotfiles:desktop, sway, noctalia]
|
||||
ansible.builtin.include_tasks: noctalia.yml
|
||||
@@ -83,3 +107,37 @@
|
||||
group: "{{ user_group }}"
|
||||
mode: "0644"
|
||||
when: "'sway' in (desktop_sessions_enabled | default([]))"
|
||||
|
||||
- name: Allow Flatpak apps to read shared theme configs
|
||||
tags: [packages, dotfiles, dotfiles:desktop, sway, noctalia]
|
||||
ansible.builtin.command:
|
||||
argv:
|
||||
- flatpak
|
||||
- override
|
||||
- --user
|
||||
- "--filesystem={{ item }}"
|
||||
become_user: "{{ username }}"
|
||||
environment:
|
||||
HOME: "{{ user_home }}"
|
||||
changed_when: false
|
||||
loop: "{{ desktop_flatpak_global_filesystems | default([]) }}"
|
||||
when:
|
||||
- "'sway' in (desktop_sessions_enabled | default([]))"
|
||||
- (desktop_flatpak_packages | default([])) | length > 0
|
||||
|
||||
- name: Export global Flatpak environment for theme integration
|
||||
tags: [packages, dotfiles, dotfiles:desktop, sway, noctalia]
|
||||
ansible.builtin.command:
|
||||
argv:
|
||||
- flatpak
|
||||
- override
|
||||
- --user
|
||||
- "--env={{ item }}"
|
||||
become_user: "{{ username }}"
|
||||
environment:
|
||||
HOME: "{{ user_home }}"
|
||||
changed_when: false
|
||||
loop: "{{ desktop_flatpak_global_env | default([]) }}"
|
||||
when:
|
||||
- "'sway' in (desktop_sessions_enabled | default([]))"
|
||||
- (desktop_flatpak_packages | default([])) | length > 0
|
||||
|
||||
@@ -561,15 +561,17 @@
|
||||
{"enabled": true, "id": "alacritty"},
|
||||
{"enabled": true, "id": "gtk"},
|
||||
{"enabled": true, "id": "emacs"},
|
||||
{"enabled": true, "id": "telegram"}
|
||||
{"enabled": true, "id": "telegram"},
|
||||
{"enabled": true, "id": "qt"},
|
||||
{"enabled": true, "id": "sway"}
|
||||
],
|
||||
"enableUserTheming": false
|
||||
},
|
||||
"ui": {
|
||||
"boxBorderEnabled": false,
|
||||
"fontDefault": "Sans Serif",
|
||||
"fontDefault": "{{ desktop_ui_font_family | default('Noto Sans') }}",
|
||||
"fontDefaultScale": 1,
|
||||
"fontFixed": "monospace",
|
||||
"fontFixed": "{{ desktop_fixed_font_family | default('Hack Nerd Font') }}",
|
||||
"fontFixedScale": 1,
|
||||
"panelBackgroundOpacity": 0.93,
|
||||
"panelsAttachedToBar": true,
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
[Appearance]
|
||||
color_scheme_path={{ user_home }}/.config/qt5ct/colors/noctalia.conf
|
||||
custom_palette=true
|
||||
icon_theme={{ desktop_icon_theme | default('Yaru-orange-dark') }}
|
||||
standard_dialogs=default
|
||||
style=Fusion
|
||||
@@ -0,0 +1,6 @@
|
||||
[Appearance]
|
||||
color_scheme_path={{ user_home }}/.config/qt6ct/colors/noctalia.conf
|
||||
custom_palette=true
|
||||
icon_theme={{ desktop_icon_theme | default('Yaru-orange-dark') }}
|
||||
standard_dialogs=default
|
||||
style=Fusion
|
||||
Reference in New Issue
Block a user