Skip to content

Commit

Permalink
Improve some waybar click stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
DO1JLR committed Jul 31, 2024
1 parent 9cda8c2 commit 57bce3f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
1 change: 0 additions & 1 deletion tasks/setup-Debian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
- 'swayimg'
- 'wdisplays'
- 'cmatrix'
- 'pavucontrol'

- name: Ensure font-awesome is installed
ansible.builtin.apt:
Expand Down
2 changes: 2 additions & 0 deletions tasks/waybar.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
with_items:
- 'waybar'
- 'wlogout'
- 'qpwgraph'
- 'pavucontrol'

- name: Create waybar config folder
become: true
Expand Down
9 changes: 6 additions & 3 deletions templates/waybar.json.j2
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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": "",
Expand Down

0 comments on commit 57bce3f

Please sign in to comment.