Add waybar conf
This commit is contained in:
parent
70b0b6d909
commit
116f44fe56
2 changed files with 27 additions and 1 deletions
|
@ -21,4 +21,14 @@
|
|||
owner: "{{ uid }}"
|
||||
group: "{{ uid }}"
|
||||
mode: '0640'
|
||||
|
||||
- name: Create waybar dir
|
||||
ansible.builtin.file:
|
||||
dest: "/home/{{ uid }}/.config/waybar"
|
||||
state: directory
|
||||
- name: Install waybar config
|
||||
ansible.builtin.template:
|
||||
src: ../templates/waybar_config.j2
|
||||
dest: "/home/{{ uid }}/.config/waybar/config"
|
||||
owner: "{{ uid }}"
|
||||
group: "{{ uid }}"
|
||||
mode: '0640'
|
||||
|
|
16
templates/waybar_config.j2
Normal file
16
templates/waybar_config.j2
Normal file
|
@ -0,0 +1,16 @@
|
|||
{
|
||||
"layer": "top",
|
||||
"modules-left": ["sway/workspaces", "sway/mode"],
|
||||
"modules-center": ["sway/window"],
|
||||
"modules-right": ["battery", "clock", "tray"],
|
||||
"sway/window": {
|
||||
"max-length": 50
|
||||
},
|
||||
"battery": {
|
||||
"format": "{capacity}% {icon}",
|
||||
"format-icons": ["", "", "", "", ""]
|
||||
},
|
||||
"clock": {
|
||||
"format-alt": "{:%a, %d. %b %H:%M}"
|
||||
}
|
||||
}
|
Loading…
Add table
Reference in a new issue