diff --git a/roles/desktop/files/sway.conf b/roles/desktop/files/sway.conf index fcf1b18..dda1b6e 100644 --- a/roles/desktop/files/sway.conf +++ b/roles/desktop/files/sway.conf @@ -15,6 +15,6 @@ 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. -set $menu wofi --show run | xargs swaymsg exec -- +set $menu wofi --show run --style ~/.config/wofi/style.css | xargs swaymsg exec -- include ~/.config/sway/config.d/* diff --git a/roles/desktop/files/wofi.css b/roles/desktop/files/wofi.css new file mode 100644 index 0000000..729d7d7 --- /dev/null +++ b/roles/desktop/files/wofi.css @@ -0,0 +1,50 @@ +@define-color bg #282828; +@define-color fg #EBDBB2; + +window { + border: none; + border-radius: 0px; + font-family: JetBrains Mono; + font-size: 16px; +} + +#input { + border: none; + border-radius: 0px; + padding: 8px 10px; + margin: 0px; + color: #8EC07C; + background-color: #554444; +} + +#inner-box { + margin: 0px; + color: @fg; + background-color: @bg; +} + +#outer-box { + margin: 0px; + background-color: @bg; + border-radius: 0px; +} + +#selected { + background-color: #608787; +} + +#entry { + padding: 0px; + margin: 0px; + background-color: @bg; +} + +#scroll { + margin: 5px; + background-color: @bg; +} + +#text { + margin: 0px; + padding: 2px 2px 2px 10px; +} diff --git a/roles/desktop/tasks/main.yml b/roles/desktop/tasks/main.yml index 19a4bfc..e64903f 100644 --- a/roles/desktop/tasks/main.yml +++ b/roles/desktop/tasks/main.yml @@ -2,3 +2,5 @@ import_tasks: sway.yml - name: Waybar import_tasks: waybar.yml +- name: Wofi + import_tasks: wofi.yml diff --git a/roles/desktop/tasks/wofi.yml b/roles/desktop/tasks/wofi.yml new file mode 100644 index 0000000..0b7b173 --- /dev/null +++ b/roles/desktop/tasks/wofi.yml @@ -0,0 +1,16 @@ +- name: Install wofi + become: true + ansible.builtin.apt: + pkg: + - wofi + - fonts-jetbrains-mono +- name: Create wofi config dir + ansible.builtin.file: + path: "{{ ansible_env.HOME }}/.config/wofi" + state: directory + mode: '1770' +- name: Copy wofi config + ansible.builtin.copy: + src: files/wofi.css + dest: "{{ ansible_env.HOME }}/.config/wofi/style.css" + mode: '0660'