diff --git a/ansible/roles/sway/files/waybar_available_memory_freebsd.bash b/ansible/roles/sway/files/waybar_scripts/waybar_available_memory_freebsd.bash similarity index 100% rename from ansible/roles/sway/files/waybar_available_memory_freebsd.bash rename to ansible/roles/sway/files/waybar_scripts/waybar_available_memory_freebsd.bash diff --git a/ansible/roles/sway/files/waybar_available_memory_linux.bash b/ansible/roles/sway/files/waybar_scripts/waybar_available_memory_linux.bash similarity index 100% rename from ansible/roles/sway/files/waybar_available_memory_linux.bash rename to ansible/roles/sway/files/waybar_scripts/waybar_available_memory_linux.bash diff --git a/ansible/roles/sway/files/waybar_battery_freebsd.bash b/ansible/roles/sway/files/waybar_scripts/waybar_battery_freebsd.bash similarity index 100% rename from ansible/roles/sway/files/waybar_battery_freebsd.bash rename to ansible/roles/sway/files/waybar_scripts/waybar_battery_freebsd.bash diff --git a/ansible/roles/sway/files/waybar_battery_linux.bash b/ansible/roles/sway/files/waybar_scripts/waybar_battery_linux.bash similarity index 100% rename from ansible/roles/sway/files/waybar_battery_linux.bash rename to ansible/roles/sway/files/waybar_scripts/waybar_battery_linux.bash diff --git a/ansible/roles/sway/files/waybar_custom_clock.py b/ansible/roles/sway/files/waybar_scripts/waybar_custom_clock.py similarity index 100% rename from ansible/roles/sway/files/waybar_custom_clock.py rename to ansible/roles/sway/files/waybar_scripts/waybar_custom_clock.py diff --git a/ansible/roles/sway/files/waybar_sound_freebsd.bash b/ansible/roles/sway/files/waybar_scripts/waybar_sound_freebsd.bash similarity index 100% rename from ansible/roles/sway/files/waybar_sound_freebsd.bash rename to ansible/roles/sway/files/waybar_scripts/waybar_sound_freebsd.bash diff --git a/ansible/roles/sway/files/waybar_sound_linux.bash b/ansible/roles/sway/files/waybar_scripts/waybar_sound_linux.bash similarity index 100% rename from ansible/roles/sway/files/waybar_sound_linux.bash rename to ansible/roles/sway/files/waybar_scripts/waybar_sound_linux.bash diff --git a/ansible/roles/sway/tasks/common.yaml b/ansible/roles/sway/tasks/common.yaml index a3c22b8..9742844 100644 --- a/ansible/roles/sway/tasks/common.yaml +++ b/ansible/roles/sway/tasks/common.yaml @@ -1,6 +1,6 @@ - name: Install scripts copy: - src: "files/{{ item.src }}" + src: "files/waybar_scripts/{{ item.src }}" dest: "{{ item.dest }}" mode: 0755 owner: root diff --git a/ansible/roles/sway/tasks/freebsd.yaml b/ansible/roles/sway/tasks/freebsd.yaml index 6e38125..891449c 100644 --- a/ansible/roles/sway/tasks/freebsd.yaml +++ b/ansible/roles/sway/tasks/freebsd.yaml @@ -48,6 +48,15 @@ loop: - src: launch_sway_freebsd.bash dest: /usr/local/bin/launch_sway + +- name: Install scripts + copy: + src: "files/waybar_scripts/{{ item.src }}" + dest: "{{ item.dest }}" + mode: 0755 + owner: root + group: wheel + loop: - src: waybar_battery_freebsd.bash dest: /usr/local/bin/waybar_custom_battery - src: waybar_available_memory_freebsd.bash diff --git a/ansible/roles/sway/tasks/linux.yaml b/ansible/roles/sway/tasks/linux.yaml index b532ab0..7bcd8b6 100644 --- a/ansible/roles/sway/tasks/linux.yaml +++ b/ansible/roles/sway/tasks/linux.yaml @@ -15,6 +15,15 @@ loop: - src: launch_sway_linux.bash dest: /usr/local/bin/launch_sway + +- name: Install scripts + copy: + src: "files/waybar_scripts/{{ item.src }}" + dest: "{{ item.dest }}" + mode: 0755 + owner: root + group: wheel + loop: - src: waybar_battery_linux.bash dest: /usr/local/bin/waybar_custom_battery - src: waybar_available_memory_linux.bash