fichier ~/.config/sway/config.d/07-window-rules.conf

Avatar
Messages 7

hello
ajouter dans la partie auto floating : keepassxc et gnome.calculator

la diff au format git:

TEXT

diff --unified /etc/skel/.config/sway/config.d/07-window-rules.conf ~/.config/sway/config.d/07-window-rules.conf
--- /etc/skel/.config/sway/config.d/07-window-rules.conf    2026-04-05 15:09:58.843467847 +0200
+++ /home/stephane/.config/sway/config.d/07-window-rules.conf   2026-04-20 19:40:23.978803268 +0200
@@ -1,9 +1,12 @@
 #sway # window rules

+#test screenruler
+for_window [app_id=screenruler.rb] floating enable, border none
+
 #auto floating
 for_window [class="XTerm|XCalc|Xmessage|Lxappearance|Sxiv|Nsxiv|Tk"] floating enable, move absolute position center
-for_window [app_id="engrampa|file-roller|lxappearance|mpv|swayimg*|mixer|pavucontrol"] floating enable, move absolute position center
-for_window [title="Infos-System|Infos System"] floating enable, move absolute position center
+for_window [app_id="org.keepassxc.KeePassXC|org.gnome.Calculator|engrampa|file-roller|lxappearance|mpv|swayimg*|mixer|pavucontrol"] floating enable, move absolute position center
+for_window [title="Password Required - Mozilla Thunderbird|Infos-System|Infos System"] floating enable, move absolute position center
 for_window [window_role="pop-up|bubble|task_dialog|Preferences|About"] floating enable, move absolute position center
 for_window [window_type="dialog"] floating enable, move absolute position center

@@ -64,3 +67,6 @@
 #ws12 zik
 assign [app_id="player"] $ws12

+#####test wiki arch, savoir quel fenetre utilise Xwayland#######
+for_window [shell="xwayland"] title_format "[XWayland] %title"
Avatar
Messages 44

je n'utilise pas ces apps, merci pour l'ajout :)
tu as l'équivalant pour i3 avec la 'class' et pas 'l'app_id' ?

Avatar
Messages 7

la class c'est le nom du container?

TEXT

 #25: floating_con "Calculatrice" (xdg_shell, pid: 7839, app_id: "org.gnome.Calculator")
#26: floating_con "Screen Ruler" (xdg_shell, pid: 7889, app_id: "screenruler.rb")
#27: floating_con "m-d-p.kdbx - KeePassXC" (xdg_shell, pid: 8427, app_id: "org.keepassxc.KeePassXC")

Édité le  avr. 24, 2026  Par  croutons .

Avatar
Messages 44

non, la class se trouve sur une session x11 (fluxbox ou i3) en utilisant l'outil xprop.
par exemple, pour keepassxc, la class est obtenue en cliquant sur keepassxc après avoir lancé xprop et on obtient "KeePassXC" (c'est le second terme de la ligne "class"). je suis passé sur fluxbox et j'ai trouvé les équivalences, merci :)

ça donne ça pour i3

TEXT

for_window [class="KeePassXC"] floating enable, move absolute position center
for_window [class="gnome-calculator"] floating enable, move absolute position center

d'ailleurs, ta modification ne fonctionne pas chez moi avec keepassxc : ma version de keepassxc s'ouvre avec xwayland et n'a pas de app_id :

TEXT

#25: con "KeePassXC" (xwayland, pid: 9066, instance: "keepassxc", class: "KeePassXC", X11 window: 0x400006)

Édité le  avr. 24, 2026  Par  arpinux .

Avatar
Messages 7

je pense pas que nos version soit différente

TEXT

keepassxc:
  Installé : 2.7.10+dfsg1-1
  Candidat : 2.7.10+dfsg1-1
 Table de version :
 *** 2.7.10+dfsg1-1 500
        500 http://mirror.gitoyen.net/debian trixie/main amd64 Packages
        500 http://mirror.gitoyen.net/debian trixie/main i386 Packages
        100 /var/lib/dpkg/status

il te manque peut être des variables d'environnement pour démarrer les applications QT sous Wayland
QT_ACCESSIBILITY=1
QT_QPA_PLATFORMTHEME=qt5ct
QT_QPA_PLATFORM=wayland

My favorite application isn't displayed right, how can I fix this?
Disabling client-side Qt decorations

Qt currently defaults to using the X11 backend instead of its native Wayland backend. To use the Wayland backend, set QT_QPA_PLATFORM=wayland. Then Qt will also draw client-side decorations for all windows, to disable this, set QT_WAYLAND_DISABLE_WINDOWDECORATION="1"
https://github.com/swaywm/sway/wiki#troubleshooting

Avatar
Messages 44

il te manque peut être des variables d'environnement pour démarrer les applications QT sous Wayland
QT_ACCESSIBILITY=1
QT_QPA_PLATFORMTHEME=qt5ct
QT_QPA_PLATFORM=wayland

bien vu ! :D

Visiteur, répondez à ce sujet…
Connectez-vous pour répondre
Navigation
6 Messages
message #1
23 avr. 2026
Par Utilisateur
Statistiques
36
Discussions
159
Réponses
13
Flatboarders
3
Contributeurs
Nouveau membre : tyzef