diff --git a/local.yml b/local.yml index e2c3252..5709d7c 100644 --- a/local.yml +++ b/local.yml @@ -123,6 +123,14 @@ - { src: 'wofi-config.j2', dest: 'wofi/config' } - { src: 'wofi-style.css.j2', dest: 'wofi/style.css' } + - name: "DOTFILES :: Kopier Wofi netværks-konfiguration" + become: true + become_user: "{{ username }}" + ansible.builtin.template: + src: "templates/wofi-config-network.j2" + dest: "/home/{{ username }}/.config/wofi/config-network" + mode: '0644' + - name: "TEMA :: Installer Atlantis skrifttype" ansible.builtin.copy: src: "files/fonts/" diff --git a/templates/waybar-config.j2 b/templates/waybar-config.j2 index 2b6a726..41659d6 100644 --- a/templates/waybar-config.j2 +++ b/templates/waybar-config.j2 @@ -63,7 +63,7 @@ "format-ethernet": "{ifname} ", "format-disconnected": "󰌙", "tooltip-format-wifi": "Signal: {signalStrength}% @ {frequency}MHz", - "on-click": "networkmanager_dmenu" + "on-click": "networkmanager_dmenu | wofi --show dmenu --conf /home/{{ username }}/.config/wofi/config-network" }, "battery": { diff --git a/templates/wofi-config-network.j2 b/templates/wofi-config-network.j2 new file mode 100644 index 0000000..33d0c5f --- /dev/null +++ b/templates/wofi-config-network.j2 @@ -0,0 +1,19 @@ + # ===== Wofi Konfiguration KUN til Netværksmenu ===== + + # Adfærd (vil blive overskrevet af kommandoen, men god at have) + show=drun + + # Positionering: Øverste højre hjørne + location=top_right + + # Justering for at skubbe den ned under Waybar og lidt ind fra kanten + # Du skal muligvis finjustere disse tal med et par pixels! + x_offset=-10 + y_offset=45 + + # Vi genbruger den samme styling, som vi allerede har lavet + style=style.css + allow_images=true + image_size=32 + width=300 + height=350 \ No newline at end of file