1
0
Fork 0
mirror of https://github.com/roles-ansible/ansible_role_sway.git synced 2024-08-16 13:49:49 +02:00

Improve some features

This commit is contained in:
L3D 2024-07-23 15:54:25 +02:00
parent 1166aa014b
commit 425993da85
Signed by: l3d
GPG key ID: CD08445BFF4313D1
6 changed files with 18 additions and 2 deletions

View file

@ -19,6 +19,7 @@ sway__keyboard_lang: 'de'
sway__lock: 'swaylock --color 000000 --image /usr/share/backgrounds/sway/Sway_Wallpaper_Blue_1920x1080.png'
sway__waybar: true
sway__waybar_modules_right: ["idle_inhibitor", "custom/weather", "pulseaudio", "network", "cpu", "memory", "temperature", "backlight", "keyboard-state", "sway/language", "battery", "clock", "tray"]
sway__wlsunset: true
sway__keybindings:
- keybinding:

View file

@ -13,6 +13,11 @@
file: "setup-Debian.yml"
when: ansible_os_family == 'Debian'
- name: Install wlsunset
ansible.builtin.import_tasks:
file: "wlsunset.yml"
when: sway__wlsunset | bool
- name: Create sway configuration and features
ansible.builtin.import_tasks:
file: "config.yml"

View file

@ -21,7 +21,6 @@
- 'swayidle'
- 'swayimg'
- 'wdisplays'
- 'wlsunset'
- name: Ensure font-awesome is installed
ansible.builtin.apt:

View file

@ -1,6 +1,6 @@
---
- name: Ensure waybar is installed.
ansible.builtin.apt:
ansible.builtin.package:
name: "{{ item }}"
state: "present"
become: true

8
tasks/wlsunset.yml Normal file
View file

@ -0,0 +1,8 @@
---
- name: Ensure swaywm is installed.
ansible.builtin.package:
name: "{{ item }}"
state: "present"
become: true
with_items:
- 'wlsunset'

View file

@ -257,5 +257,8 @@ bar {
}
}
{% endif %}
exec_always --no-startup-id exec wlsunset
{% if sway__wlsunset | bool %}
{% endif %}
include /etc/sway/config.d/*