From b4559a3ae9f0ed6b48a649e241c9bf6abdd6143a Mon Sep 17 00:00:00 2001 From: Olivier DOSSMANN Date: Wed, 15 Jan 2025 10:06:50 +0100 Subject: [PATCH] fix(sway): config - add 12-lanceur.conf to set sway-launcher-desktop correctly --- .config/sway/config | 3 +-- .config/sway/config.d/12-lanceur.conf | 11 +++++++++++ 2 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 .config/sway/config.d/12-lanceur.conf diff --git a/.config/sway/config b/.config/sway/config index 7875b00..9570a0c 100644 --- a/.config/sway/config +++ b/.config/sway/config @@ -18,8 +18,7 @@ set $term alacritty # Your preferred application launcher # Note: pass the final command to swaymsg so that the resulting window can be opened # on the original workspace that the command was run on. -for_window [app_id="^launcher$"] floating enable, sticky enable, resize set 30 ppt 60 ppt, border pixel 10 -set $menu exec alacritty --class launcher -e /usr/bin/sway-launcher-desktop +set $menu wofi --show run | xargs swaymsg exec -- ### Output configuration # diff --git a/.config/sway/config.d/12-lanceur.conf b/.config/sway/config.d/12-lanceur.conf new file mode 100644 index 0000000..a45ca1d --- /dev/null +++ b/.config/sway/config.d/12-lanceur.conf @@ -0,0 +1,11 @@ +# Configuration du lanceur d'application + +# Apparence d'une fenêtre nommée Launcher +for_window [app_id="^launcher$"] floating enable, sticky enable, resize set 30 ppt 60 ppt, border pixel 10 + +# Choix d'un lanceur +set $menu exec alacritty --class launcher -T 'Programmes' -e env TERMINAL_COMMAND='swaymsg exec' /usr/bin/sway-launcher-desktop + +# On change le raccourci clavier en conséquence +unbindsym $mod+d +bindsym $mod+d exec $menu