14 Commits

Author SHA1 Message Date
Fabio Scotto di Santolo
204ab24f30 sway: use wlogout for powermenu 2026-05-17 22:44:46 +02:00
Fabio Scotto di Santolo
8b647057e0 sway: reduce blur_passes, tune lockscreen indicator 2026-05-17 22:21:25 +02:00
Fabio Scotto di Santolo
6bb1895201 sway: add DND toggle in sway and waybar 2026-05-17 21:58:50 +02:00
Fabio Scotto di Santolo
0aafd5d727 sway: add foot terminal, floating rules for dialogs and apps 2026-05-17 20:44:23 +02:00
Fabio Scotto di Santolo
26c02c8623 sway: tune wlogout appearance and args 2026-05-17 20:24:55 +02:00
Fabio Scotto di Santolo
a69edfbf43 sway: add wlogout, waybar power button, layer effects 2026-05-17 15:32:26 +02:00
Fabio Scotto di Santolo
f7e7313246 docs: update for sway support and package bucket rules 2026-05-17 15:01:00 +02:00
Fabio Scotto di Santolo
57d887486b desktop: move common dotfiles and packages from void to shared 2026-05-17 14:57:17 +02:00
Fabio Scotto di Santolo
b49fdc9aa7 void: add linux packages 2026-05-17 14:12:32 +02:00
Fabio Scotto di Santolo
5b74c905df sway: simplify flameshot bindings, add flameshot dotfiles 2026-05-17 12:46:44 +02:00
Fabio Scotto di Santolo
39e94ed490 desktop_common: make Qt apps follow the GTK theme
Deploy /etc/profile.d/10-qt-theme.sh setting QT_QPA_PLATFORMTHEME=gtk3
system-wide. The gtk3 Qt platform theme plugin (already shipped with
qt5/qt6 base on Void) makes both Qt5 and Qt6 widgets read theme name,
font, icon theme and color scheme from ~/.config/gtk-3.0/settings.ini,
so Qt apps now match the Yaru-blue-dark setup on both i3 and sway.

Also drop the stale QT_QPA_PLATFORMTHEME=qt6ct override in nymph's
session-env (qt6ct is not installed and the override would shadow the
global gtk3 setting).

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-17 08:11:41 +02:00
Fabio Scotto di Santolo
a3df4b7962 desktop_common: drop inert Flatpak GTK_THEME override
The task wrote /etc/flatpak/overrides/global, but Flatpak reads its
overrides from /var/lib/flatpak/overrides/, so the file was never
honored. The dark theme is now correctly applied to Flatpak apps via
xdg-desktop-portal (color-scheme + gtk-theme), which works as long as
the portal backends can start — fixed in the prior commit.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-17 08:05:25 +02:00
Fabio Scotto di Santolo
b7c53378cd sway: propagate Wayland env to dbus for portal backends
Without dbus-update-activation-environment, xdg-desktop-portal-{gtk,wlr}
inherit an empty WAYLAND_DISPLAY/SWAYSOCK from the session bus (started
by dbus-run-session before sway) and crash on activation. As a result
Flatpak apps cannot read color-scheme / gtk-theme from the host and fall
back to a light theme.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-17 07:57:10 +02:00
Fabio Scotto di Santolo
e64028b77a Merge branch 'feature/migrate-wayland' 2026-05-17 00:09:01 +02:00
16 changed files with 254 additions and 92 deletions

View File

@@ -10,7 +10,10 @@
"Bash(git -C /home/fscotto/AnsiblePlaybook diff --stat)",
"Bash(git -C /home/fscotto/AnsiblePlaybook status --short)",
"Bash(git -C /home/fscotto/AnsiblePlaybook log --oneline --all -- ansible/inventory/host_vars/nymph.yml ansible/roles/profile_desktop_host/tasks/nymph.yml 'dotfiles/nymph/*')",
"Bash(git *)"
"Bash(git *)",
"Bash(wlogout --help)",
"Bash(xbps-query *)",
"Bash(xbps-install --dry-run gtklock)"
]
}
}

View File

@@ -54,15 +54,24 @@ Ansible-driven personal infrastructure repo for Void desktops, Linux workstation
- Use `no_log: true` for secret-bearing task inputs or outputs.
## Desktop Notes
- `profile_desktop_common` owns the shared desktop bootstrap.
- `profile_desktop_common` owns the shared desktop bootstrap; `profile_desktop_i3` (X11) and `profile_desktop_sway` (Wayland/SwayFX) install their respective session in parallel and are both wired into the `void` play in `ansible/site.yml`. `desktop_sessions_enabled` and `desktop_default_session` in host vars decide which sessions are exposed in `emptty` and which is preselected.
- `.emacs.d` is deployed by a dedicated `profile_desktop_common` task tagged `emacs`.
- NTFS filesystem support is provided by `ntfs-3g` in `ansible/inventory/group_vars/void.yml`.
- Void user services are managed by `turnstile` and live under `dotfiles/desktop/.config/service/`.
- `ssh-agent` keeps the stable socket `~/.local/state/ssh-agent/socket`.
- Critical session entrypoints:
- `dotfiles/desktop/.xinitrc`
- `dotfiles/desktop/.xinitrc` (i3 / X11)
- `dotfiles/desktop/.config/sway/config` plus `host.conf` and `session-env` deployed via `host_sway_dotfiles` (sway / Wayland)
- Do not auto-restart `emptty` during playbook runs on active Void desktop hosts; restart it manually from another TTY/SSH session if needed.
- `nymph` is an i3/X11 Void laptop with NVIDIA Optimus; host-specific tasks in `profile_desktop_host/tasks/nymph.yml` handle GRUB NVIDIA cmdline params, `prime-run` wrapper, and the WirePlumber camera priority config.
- `nymph` is a Void laptop with NVIDIA Optimus, running both i3 (X11) and sway (Wayland); host-specific tasks in `profile_desktop_host/tasks/nymph.yml` handle GRUB NVIDIA cmdline params, `prime-run` wrapper, and the WirePlumber camera priority config. Multi-monitor on X11 is driven by `autorandr`; on sway it is driven by `kanshi` (config deployed via `host_sway_dotfiles`).
## Void Package And Dotfile Bucket Rules
The four Void desktop package lists in `ansible/inventory/group_vars/void.yml` are kept disjoint by role:
- `void_packages_base` — system runtime only (init/services, kernel, audio core, networking, filesystem, firewall, hardware daemons, runit logging).
- `desktop_common_packages` — WM-agnostic GUI infra (GTK theme, polkit, keyring, NM-applet, blueman, audio GUI, file manager backend + GVFS, portal, flatpak, printing/scanning).
- `desktop_i3_packages` / `desktop_sway_packages` — binaries specific to each session. Cross-WM packages used by both (`dunst`, `rofi`, `alacritty`) are intentionally duplicated in the two lists.
`profile_packages` in the same file is cross-distro and is overridden by `group_vars/server.yml` and the workstation group vars; do not move desktop-specific Void entries through it.
The dotfile vars follow the same split: `desktop_common_dotfiles` (in `group_vars/desktop.yml`) carries WM-agnostic GUI config and user scripts (Thunar, mimeapps, GTK theme setup, Udiskie, fontconfig, WirePlumber, mpv, …); `desktop_void_dotfiles` (in `group_vars/void.yml`) is reserved for files that need Void runtime (turnstile services, bash runit/dbus/ssh-agent fragments, `update-turnstile-env`).
## Workstation / Windows Notes
- Native Linux workstation hosts can combine `workstation_host_linux` with an OS-specific dev group.

View File

@@ -72,22 +72,25 @@ Sistema operativo:
Sessioni desktop:
- `ikaros`: i3
- `nymph`: i3
- `ikaros`: i3 (X11) + sway (Wayland), default i3
- `nymph`: i3 (X11) + sway (Wayland), default i3
Macchine:
- `ikaros`
- `nymph`
Queste macchine condividono la stessa configurazione base desktop e vengono mantenute allineate tramite Ansible.
Queste macchine condividono la stessa configurazione base desktop e vengono mantenute allineate tramite Ansible. Sia i3 sia sway/SwayFX sono installate in parallelo e selezionabili da `emptty`; `desktop_default_session` decide quale sessione viene preselezionata al login.
Lo stato attuale del profilo desktop include, tra le altre cose:
- dotfiles comuni e desktop
- sessione i3 su entrambi gli host
- `emptty` con default host-specific per il desktop attivo, con `XORG_SESSIONS_PATH` puntato a `/etc/emptty/xsessions` per esporre solo le sessioni esplicitamente whitelistate
- pacchetti Void Linux e servizi runit
- sessioni i3 e sway su entrambi gli host (default i3, sway disponibile via `emptty`)
- `emptty` con default host-specific per il desktop attivo, con `XORG_SESSIONS_PATH` puntato a `/etc/emptty/xsessions` e session file Wayland esposti su `WAYLAND_SESSIONS_PATH` per `sway`
- pacchetti Void Linux e servizi runit; le liste pacchetti Void desktop sono separate per criterio:
- `void_packages_base` per il runtime sistema (init, kernel, audio core, networking, firewall, hw daemons)
- `desktop_common_packages` per l'infrastruttura GUI WM-agnostic (tema, polkit, keyring, NM-applet, blueman, audio GUI, file manager backend, portal, flatpak, printing/scanning)
- `desktop_i3_packages` e `desktop_sway_packages` per i binari specifici di ciascuna sessione
- `turnstile` per i servizi utente, inclusi `emacs` e `ssh-agent`
- `ssh-agent` con socket stabile condiviso tra shell, SSH ed Emacs in `~/.local/state/ssh-agent/socket`
- `.emacs.d` distribuito da un task dedicato Ansible con tag `emacs`
@@ -95,7 +98,7 @@ Lo stato attuale del profilo desktop include, tra le altre cose:
- Flatpak con remoto Flathub
- GNOME Keyring e bootstrap della posta via script dedicato
- `udiskie` come backend per automount/LUKS
- `autorandr` per profili monitor host-specifici (`nymph` ha profili `dual` e `solo`)
- `autorandr` per profili monitor X11 host-specifici (`nymph` ha profili `dual` e `solo`); sotto sway il multi-monitor è gestito da `kanshi` (config host-specifica in `host_sway_dotfiles` su `nymph`)
- override NVIDIA Optimus su `nymph`: parametri kernel GRUB iniettati in modo idempotente in `GRUB_CMDLINE_LINUX`, wrapper `prime-run` e config WirePlumber per priorità telecamera
---
@@ -271,7 +274,8 @@ I principali ruoli attualmente presenti sono:
| services_runit | gestione servizi runit |
| services_systemd | gestione servizi systemd |
| profile_desktop_common | bootstrap desktop Void condiviso |
| profile_desktop_i3 | sessione desktop i3 |
| profile_desktop_i3 | sessione desktop i3 (X11) |
| profile_desktop_sway | sessione desktop sway / SwayFX (Wayland) |
| profile_desktop_host | override desktop specifici per host |
| profile_workstation_dev_common | configurazione dev workstation condivisa |
| profile_workstation_gnome | configurazione host workstation GNOME |
@@ -289,7 +293,7 @@ Il playbook `ansible/site.yml` e attualmente composto da sette blocchi:
```text
all:!workstation_host_windows -> dotfiles_common
void -> packages_void + services_runit + profile_desktop_common + profile_desktop_i3 + profile_desktop_host
void -> packages_void + services_runit + profile_desktop_common + profile_desktop_i3 + profile_desktop_sway + profile_desktop_host
workstation_dev_ubuntu -> packages_ubuntu + services_systemd + profile_workstation_dev_common
workstation_dev_fedora -> packages_fedora + services_systemd + profile_workstation_dev_common
workstation_host_linux -> profile_workstation_gnome
@@ -439,7 +443,8 @@ Allo stato attuale `ansible/site.yml` espone questi tag:
| `dotfiles:workstation` | dotfiles dedicati alle workstation | workstation Linux, WSL |
| `emptty` | gestione display manager `emptty` | desktop Void |
| `gnome` | configurazione host GNOME | workstation host Linux, parte desktop |
| `i3` | sessione/configurazione i3 | desktop Void |
| `i3` | sessione/configurazione i3 (X11) | desktop Void |
| `sway` | sessione/configurazione sway / SwayFX (Wayland) | desktop Void |
| `npm` | installazione pacchetti npm globali | desktop Void, workstation Linux, WSL |
| `nvidia` | componenti NVIDIA desktop | desktop Void |
| `packages` | installazione e aggiornamento pacchetti | tutti i profili |
@@ -451,6 +456,7 @@ Esempi pratici:
```bash
ansible-playbook ansible/site.yml --limit nymph --tags dotfiles:desktop,i3 --check --diff
ansible-playbook ansible/site.yml --limit ikaros --tags sway,portal --check --diff
ansible-playbook ansible/site.yml --limit deadalus-fedora --tags packages,vscode --check --diff
ansible-playbook ansible/site.yml --limit prometheus --tags services,dotfiles:server --check --diff
```

View File

@@ -44,6 +44,26 @@ desktop_common_dotfiles:
src: .config/fontconfig/
dest: .config/fontconfig/
mode: preserve
- name: GTK theme setup script
src: .local/bin/setup-gtk-theme
dest: .local/bin/setup-gtk-theme
mode: "0755"
- name: MIME application defaults
src: .config/mimeapps.list
dest: .config/mimeapps.list
mode: "0644"
- name: Thunar config
src: .config/Thunar/
dest: .config/Thunar/
mode: preserve
- name: Udiskie config
src: .config/udiskie/
dest: .config/udiskie/
mode: preserve
- name: Udiskie password helper
src: .local/bin/udiskie-password
dest: .local/bin/udiskie-password
mode: "0755"
- name: WirePlumber config
src: .config/wireplumber/
dest: .config/wireplumber/
@@ -158,25 +178,33 @@ desktop_i3_dotfiles:
mode: "0644"
desktop_sway_dotfiles:
- name: sway config
src: .config/sway/
dest: .config/sway/
- name: alacritty config
src: .config/alacritty/
dest: .config/alacritty/
mode: preserve
- name: dunst config
src: .config/dunst/
dest: .config/dunst/
mode: preserve
- name: flameshot config
src: .config/flameshot/
dest: .config/flameshot/
mode: preserve
- name: rofi config
src: .config/rofi/
dest: .config/rofi/
mode: preserve
- name: sway config
src: .config/sway/
dest: .config/sway/
mode: preserve
- name: waybar config
src: .config/waybar/
dest: .config/waybar/
mode: preserve
- name: alacritty config
src: .config/alacritty/
dest: .config/alacritty/
- name: wlogout config
src: .config/wlogout/
dest: .config/wlogout/
mode: preserve
desktop_flatpak_packages:

View File

@@ -11,56 +11,46 @@ void_packages_base:
- NetworkManager
- avahi
- base-system
- bat
- clang
- clang-tools-extra
- cmake
- cups
- cups-filters
- cups-pk-helper
- delta
- elogind
- fastfetch
- flatpak
- fuse3
- gcc
- gdb
- gist
- github-cli
- gnome-keyring
- go
- gvfs
- hugo
- ImageMagick
- isync
- libsecret
- libtool
- linux
- linux-headers
- linux-mainline
- linux-mainline-headers
- linux-tools
- lm_sensors
- man-pages-devel
- man-pages-posix
- msmtp
- mu4e
- network-manager-applet
- nodejs
- ntfs-3g
- pavucontrol
- pipewire
- pkg-config
- plocate
- podman
- podman-compose
- rclone
- sane
- sane-airscan
- seahorse
- simple-scan
- socklog
- socklog-void
- speech-dispatcher
- syncthing
- system-config-printer
- tmux
- tealdeer
- tmux
- tree-sitter-grammars
- ufw
- void-repo-nonfree
@@ -68,7 +58,6 @@ void_packages_base:
- vsv
- xtools
- yt-dlp
- plocate
enabled_services:
- NetworkManager
@@ -94,14 +83,6 @@ desktop_void_dotfiles:
src: .config/service/
dest: .config/service/
mode: preserve
- name: Thunar config
src: .config/Thunar/
dest: .config/Thunar/
mode: preserve
- name: MIME application defaults
src: .config/mimeapps.list
dest: .config/mimeapps.list
mode: "0644"
- name: Bash DBus session fragment
src: .bashrc.d/14-dbus-session.sh
dest: .bashrc.d/14-dbus-session.sh
@@ -114,18 +95,6 @@ desktop_void_dotfiles:
src: .bashrc.d/15-runit-desktop.sh
dest: .bashrc.d/15-runit-desktop.sh
mode: "0644"
- name: GTK theme setup script
src: .local/bin/setup-gtk-theme
dest: .local/bin/setup-gtk-theme
mode: "0755"
- name: Udiskie password helper
src: .local/bin/udiskie-password
dest: .local/bin/udiskie-password
mode: "0755"
- name: Udiskie config
src: .config/udiskie/
dest: .config/udiskie/
mode: preserve
- name: Turnstile environment update script
src: .local/bin/update-turnstile-env
dest: .local/bin/update-turnstile-env
@@ -134,11 +103,24 @@ desktop_void_dotfiles:
desktop_common_packages:
- blueman
- brightnessctl
- cups
- cups-filters
- cups-pk-helper
- dex
- emptty
- flatpak
- gnome-keyring
- gvfs
- libsecret
- network-manager-applet
- pavucontrol
- pinentry-emacs
- pinentry-gtk
- sane
- sane-airscan
- seahorse
- simple-scan
- system-config-printer
- turnstile
- udiskie
- xdg-desktop-portal
@@ -170,13 +152,14 @@ desktop_i3_packages:
- xorg-minimal
- xss-lock
- xdotool
desktop_sway_packages:
- cliphist
- dunst
- flameshot
- foot
- foot-terminfo
- grim
- jq
- kanshi
- rofi
- slurp
@@ -187,6 +170,7 @@ desktop_sway_packages:
- SwayOSD
- Waybar
- wl-clipboard
- wlogout
- xdg-desktop-portal-wlr
- xorg-server-xwayland

View File

@@ -434,6 +434,18 @@
- "{{ user_home }}/Maildir/iCloudAccount"
- "{{ user_home }}/Maildir/ProtonMailAccount"
- name: Make Qt apps follow the GTK theme
tags: [theme]
ansible.builtin.copy:
dest: /etc/profile.d/10-qt-theme.sh
content: |
# Use the gtk3 Qt platform theme so Qt5/Qt6 widgets, file dialogs,
# icon theme and color scheme follow ~/.config/gtk-3.0/settings.ini.
export QT_QPA_PLATFORMTHEME=gtk3
owner: root
group: root
mode: "0644"
- name: Ensure flathub remote is configured
tags: [packages]
community.general.flatpak_remote:
@@ -464,28 +476,6 @@
- (desktop_flatpak_extensions | default([])) | length > 0
- item | length > 0
- name: Ensure /etc/flatpak/overrides exists
tags: [packages, flatpak, theme]
ansible.builtin.file:
path: /etc/flatpak/overrides
state: directory
owner: root
group: root
mode: "0755"
when: (desktop_flatpak_packages | default([])) | length > 0
- name: Force dark GTK theme for Flatpak applications
tags: [packages, flatpak, theme]
ansible.builtin.copy:
dest: /etc/flatpak/overrides/global
content: |
[Environment]
GTK_THEME={{ desktop_flatpak_gtk_theme | default('Yaru-Blue-dark') }}
owner: root
group: root
mode: "0644"
when: (desktop_flatpak_packages | default([])) | length > 0
- name: Bootstrap rustup toolchain installer
tags: [packages]
block:

View File

@@ -10,11 +10,11 @@
loop:
- "{{ user_home }}/.config/alacritty"
- "{{ user_home }}/.config/dunst"
- "{{ user_home }}/.config/flameshot"
- "{{ user_home }}/.config/rofi"
- "{{ user_home }}/.config/sway"
- "{{ user_home }}/.config/sway/scripts"
- "{{ user_home }}/.config/sway/wallpapers"
- "{{ user_home }}/.config/waybar"
- "{{ user_home }}/.config/wlogout"
when: "'sway' in (desktop_sessions_enabled | default([]))"
- name: Install allowed emptty Wayland sessions

View File

@@ -0,0 +1,13 @@
[General]
copyPathAfterSave=false
disabledTrayIcon=true
drawColor=#4a90d9
drawThickness=3
filenamePattern=%Y-%m-%d_%H-%M-%S
savePath=/home/fscotto/Pictures/Screenshots
savePathFixed=true
showDesktopNotification=true
useGrimAdapter=true
showHelp=false
showSidePanelButton=true
startupLaunch=false

View File

@@ -40,11 +40,14 @@ output * bg ~/.config/sway/wallpapers/wallpaper-161664.jpg center
# SwayFX effects
corner_radius 8
blur enable
blur_passes 2
blur_passes 1
blur_radius 5
shadows enable
default_dim_inactive 0.1
# Layer effects (Waybar etc.) — sfrutta il blur globale già attivo
layer_effects "waybar" blur enable; blur_ignore_transparent enable; shadows disable
# Allow X11 applications
xwayland enable
@@ -73,7 +76,40 @@ for_window [app_id="(?i)polkit"] floating enable
for_window [class="(?i)polkit"] floating enable
for_window [title="^Authentication Required"] floating enable
# Floating: dialog X11 (open/save/print, generic transient dialogs)
for_window [window_role="pop-up"] floating enable
for_window [window_role="dialog"] floating enable
for_window [window_role="task_dialog"] floating enable
for_window [window_type="dialog"] floating enable
for_window [window_type="utility"] floating enable
# Floating: Bluetooth manager
for_window [app_id="blueman-manager"] floating enable
for_window [class="Blueman-manager"] floating enable
# Floating: NetworkManager connection editor / VPN / pinentry
for_window [app_id="nm-connection-editor"] floating enable
for_window [class="Nm-connection-editor"] floating enable
for_window [app_id="(?i)pinentry"] floating enable
for_window [class="(?i)pinentry"] floating enable
# Floating: Firefox auxiliary windows (Library/Downloads, About, Preferences, Manager)
for_window [class="(?i)firefox" title="^Library$"] floating enable
for_window [app_id="(?i)firefox" title="^Library$"] floating enable
for_window [class="(?i)firefox" title="^About Mozilla Firefox$"] floating enable
for_window [app_id="(?i)firefox" title="^About Mozilla Firefox$"] floating enable
for_window [class="(?i)firefox" window_role="Preferences"] floating enable
for_window [class="(?i)firefox" window_role="Manager"] floating enable
for_window [class="(?i)firefox" window_role="Dialog"] floating enable
for_window [class="(?i)firefox" window_role="Popup"] floating enable
# Floating: file pickers GTK (open/save) — già coperti da window_type=dialog ma ridondante per portal
for_window [app_id="org.freedesktop.impl.portal.desktop.gtk"] floating enable
# Autostart — XDG and session services
# Propagate Wayland env to dbus so xdg-desktop-portal backends inherit
# WAYLAND_DISPLAY/SWAYSOCK when dbus-activated (otherwise they crash).
exec dbus-update-activation-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP XDG_SESSION_TYPE XDG_SESSION_DESKTOP
exec dex --autostart --environment sway
exec gnome-keyring-daemon --start --components=secrets
exec_always ~/.config/sway/scripts/setup-gtk-theme.sh
@@ -116,6 +152,9 @@ exec swayidle -w \
# Terminal
bindsym $mod+Return exec $terminal
# Emergency terminal fallback
bindsym $mod+Shift+Return exec foot
# Emacs client
bindsym $mod+Shift+e exec emacsclient -c -n
@@ -131,6 +170,9 @@ bindsym $mod+Shift+v exec pavucontrol
# File manager
bindsym $mod+Shift+f exec thunar
# Do not disturb (dunst pause toggle)
bindsym $mod+Shift+d exec dunstctl set-paused toggle
# Manual lock screen
bindsym $mod+Shift+x exec ~/.config/sway/scripts/lockscreen
@@ -138,10 +180,10 @@ bindsym $mod+Shift+x exec ~/.config/sway/scripts/lockscreen
bindsym $mod+Shift+q kill
# Screenshot
# Print → flameshot GUI (annotations, save + clipboard via portal)
# Print → flameshot GUI
# Shift+Print → grim+slurp region → clipboard
# Alt+Print → grim focused output → clipboard
bindsym Print exec flameshot gui --path "$HOME/Pictures/Screenshots" --clipboard
bindsym Print exec flameshot gui
bindsym Shift+Print exec ~/.config/sway/scripts/screenshot region
bindsym Alt+Print exec ~/.config/sway/scripts/screenshot output
@@ -230,7 +272,7 @@ bindsym $mod+Shift+0 move container to workspace number $ws10
bindsym $mod+Shift+c reload
bindsym $mod+Shift+r reload
bindsym $mod+Shift+BackSpace exec swaymsg exit
bindsym $mod+Shift+Escape exec ~/.config/sway/scripts/powermenu.sh
bindsym $mod+Shift+Escape exec wlogout -n -b 3 -c 16 -r 16 -L 1344 -R 1344 -T 650 -B 650
# Resize mode
mode "resize" {

View File

@@ -3,7 +3,7 @@
exec swaylock \
--image "$HOME/.config/sway/wallpapers/maxresdefault.jpg" \
--scaling fill \
--indicator-idle-visible \
--indicator-radius 100 \
--ring-color 2f4058 \
--inside-color 1f1f28 \
--line-color 00000000 \

Binary file not shown.

After

Width:  |  Height:  |  Size: 365 KiB

View File

@@ -6,7 +6,7 @@
"modules-left": ["sway/workspaces"],
"modules-center": [],
"modules-right": ["cpu", "memory", "disk", "temperature", "backlight", "network", "pulseaudio", "battery", "tray", "clock"],
"modules-right": ["cpu", "memory", "disk", "temperature", "backlight", "network", "pulseaudio", "battery", "tray", "clock", "custom/dnd", "custom/power"],
"sway/workspaces": {
"disable-scroll": true,
@@ -97,5 +97,19 @@
"tray": {
"icon-size": 16,
"spacing": 6
},
"custom/dnd": {
"exec": "dunstctl is-paused | grep -q true && echo '{\"text\":\"󰂛\",\"class\":\"paused\"}' || echo '{\"text\":\"󰂚\",\"class\":\"\"}'",
"return-type": "json",
"interval": 2,
"on-click": "dunstctl set-paused toggle",
"tooltip": false
},
"custom/power": {
"format": "⏻",
"tooltip": false,
"on-click": "wlogout -n -b 3 -c 16 -r 16 -L 1344 -R 1344 -T 650 -B 650"
}
}

View File

@@ -5,7 +5,7 @@
}
window#waybar {
background-color: #1f1f28;
background-color: rgba(31, 31, 40, 0.55);
color: #d0d0d0;
border: none;
}
@@ -43,7 +43,9 @@ window#waybar {
#network,
#pulseaudio,
#battery,
#tray {
#tray,
#custom-dnd,
#custom-power {
padding: 0 8px;
}
@@ -65,3 +67,23 @@ window#waybar {
#battery.full { color: #9ec07c; }
#tray { padding: 0 6px; }
#custom-dnd {
color: #8e8e9a;
font-size: 11pt;
}
#custom-dnd.paused {
color: #e0af68;
}
#custom-dnd:hover {
background-color: rgba(224, 175, 104, 0.15);
}
#custom-power {
color: #c7162b;
padding: 0 10px;
font-size: 12pt;
}
#custom-power:hover {
background-color: rgba(199, 22, 43, 0.15);
}

View File

@@ -0,0 +1,3 @@
{"label": "logout", "action": "swaymsg exit", "text": "Logout", "keybind": "l"}
{"label": "reboot", "action": "loginctl reboot", "text": "Reboot", "keybind": "r"}
{"label": "shutdown", "action": "loginctl poweroff", "text": "Shutdown", "keybind": "s"}

View File

@@ -0,0 +1,49 @@
* {
background-image: none;
box-shadow: none;
font-family: "LiterationMono Nerd Font", "Symbols Nerd Font Mono", monospace;
font-size: 10pt;
min-width: 0;
min-height: 0;
margin: 0;
padding: 0;
}
window {
background-color: rgba(31, 31, 40, 0.75);
}
button {
color: #d0d0d0;
background-color: #2b2b36;
border: 1px solid #3a3a46;
border-radius: 10px;
margin: 0;
padding: 0 0 12px 0;
min-width: 240px;
min-height: 140px;
background-repeat: no-repeat;
background-position: center 28%;
background-size: 80px 80px;
}
button:focus,
button:active,
button:hover {
color: #ffffff;
background-color: #4a90d9;
border-color: #4a90d9;
outline-style: none;
}
#logout {
background-image: image(url("/usr/share/wlogout/icons/logout.png"));
}
#reboot {
background-image: image(url("/usr/share/wlogout/icons/reboot.png"));
}
#shutdown {
background-image: image(url("/usr/share/wlogout/icons/shutdown.png"));
}

View File

@@ -1,6 +1,5 @@
export LIBVA_DRIVER_NAME=iHD
export QT_QPA_PLATFORM=wayland
export QT_QPA_PLATFORMTHEME=qt6ct
export SWAY_UNSUPPORTED_GPU=1
export WLR_DRM_DEVICES=/dev/dri/card0:/dev/dri/card1
export WLR_NO_HARDWARE_CURSORS=1