Skip to content

Commit

Permalink
feat(waybar): Add keyboard module
Browse files Browse the repository at this point in the history
  • Loading branch information
mimre25 committed Jan 11, 2025
1 parent f9dc6ca commit c46aa36
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions waybar/.config/waybar/config.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"sway/window"
],
"modules-right": [
"custom/keyboard",
"mpd",
"idle_inhibitor",
"pulseaudio",
Expand Down Expand Up @@ -212,5 +213,13 @@
"suspend": "systemctl suspend",
"hibernate": "systemctl hibernate"
}
},

"custom/keyboard": {
"exec": "~/.local/bin/read-battery-pct waybar",
"interval": 300,
"exec-if": "test -e /dev/ttyACM0",
"format": "{}",
"on-click": "bazecor"
}
}

0 comments on commit c46aa36

Please sign in to comment.