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

Merge pull request #2 from roles-ansible/kkup

Improve some waybar click stuff
This commit is contained in:
L3D 2024-07-31 17:01:49 +02:00 committed by GitHub
commit bc0e3c369a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 8 additions and 4 deletions

View file

@ -22,7 +22,6 @@
- 'swayimg'
- 'wdisplays'
- 'cmatrix'
- 'pavucontrol'
- name: Ensure font-awesome is installed
ansible.builtin.apt:

View file

@ -7,6 +7,8 @@
with_items:
- 'waybar'
- 'wlogout'
- 'qpwgraph'
- 'pavucontrol'
- name: Create waybar config folder
become: true

View file

@ -134,7 +134,8 @@
"format-linked": "{ifname} (No IP) ⛒",
"format-disconnected": "Disconnected ⚠",
"format-alt": "{ifname}: {ipaddr}/{cidr}",
"on-click": "gnome-control-center network"
"on-click": "gnome-control-center network",
"on-click-right": "gnome-control-center wifi"
},
"pulseaudio": {
// "scroll-step": 1, // %, can be a float
@ -153,14 +154,16 @@
"car": "",
"default": ["", "", ""]
},
"on-click": "pavucontrol"
"on-click": "pavucontrol",
"on-click-right": "qpwgraph"
},
"custom/weather": {
"format": "{}",
"tooltip": true,
"interval": 300,
"exec": "{{ swayusr.home }}/.config/waybar/wttr.py",
"return-type": "json"
"return-type": "json",
"on-click-middle": "gnome-weather"
},
"custom/power": {
"format": "",