mirror of
https://github.com/roles-ansible/ansible_role_i3wm.git
synced 2024-08-16 10:09:53 +02:00
Improve some features
This commit is contained in:
parent
1166aa014b
commit
425993da85
6 changed files with 18 additions and 2 deletions
|
@ -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:
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -21,7 +21,6 @@
|
|||
- 'swayidle'
|
||||
- 'swayimg'
|
||||
- 'wdisplays'
|
||||
- 'wlsunset'
|
||||
|
||||
- name: Ensure font-awesome is installed
|
||||
ansible.builtin.apt:
|
||||
|
|
|
@ -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
8
tasks/wlsunset.yml
Normal file
|
@ -0,0 +1,8 @@
|
|||
---
|
||||
- name: Ensure swaywm is installed.
|
||||
ansible.builtin.package:
|
||||
name: "{{ item }}"
|
||||
state: "present"
|
||||
become: true
|
||||
with_items:
|
||||
- 'wlsunset'
|
|
@ -257,5 +257,8 @@ bar {
|
|||
}
|
||||
}
|
||||
{% endif %}
|
||||
exec_always --no-startup-id exec wlsunset
|
||||
{% if sway__wlsunset | bool %}
|
||||
|
||||
{% endif %}
|
||||
include /etc/sway/config.d/*
|
||||
|
|
Loading…
Reference in a new issue