From f55a4c60028ed894b8d40d4953904eb210df5c7f Mon Sep 17 00:00:00 2001 From: L3D Date: Sat, 27 Jul 2024 12:16:07 +0200 Subject: [PATCH] Change launcher to fuzzel --- defaults/main.yml | 2 ++ tasks/setup-Debian.yml | 7 +++++++ templates/config.j2 | 3 ++- vars/main.yml | 2 +- 4 files changed, 12 insertions(+), 2 deletions(-) diff --git a/defaults/main.yml b/defaults/main.yml index cb9b79d..05aaca4 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -39,6 +39,8 @@ sway__waybar_modules_right: - "clock" - "tray" +sway__launcher: 'fuzzel' +sway__install_launcher: ['fuzzel'] sway__waybar_font_size: '13px' sway__waybar_light_up: 'light -A 1' sway__waybar_light_down: 'light -U 1' diff --git a/tasks/setup-Debian.yml b/tasks/setup-Debian.yml index 022e5ac..4ddf353 100644 --- a/tasks/setup-Debian.yml +++ b/tasks/setup-Debian.yml @@ -39,3 +39,10 @@ state: "present" become: true with_items: "{{ sway__term_pkgs }}" + +- name: Ensure launcher Packages are installed + ansible.builtin.apt: + name: "{{ item }}" + state: "present" + become: true + with_items: "{{ sway__install_launcher }}" diff --git a/templates/config.j2 b/templates/config.j2 index 878a0a1..861c2ba 100644 --- a/templates/config.j2 +++ b/templates/config.j2 @@ -22,7 +22,8 @@ set $term {{ sway__term }} # 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. -set $menu dmenu_path | dmenu | xargs swaymsg exec -- +# set $menu dmenu_path | dmenu | xargs swaymsg exec -- +set $menu {{ sway__launcher }} include /etc/sway/config-vars.d/* diff --git a/vars/main.yml b/vars/main.yml index 5434c49..695bc48 100644 --- a/vars/main.yml +++ b/vars/main.yml @@ -1,3 +1,3 @@ --- -playbook_version_number: 9 # should be int +playbook_version_number: 10 # should be int playbook_version_path: 'role-roles-ansible.sway.version'