aboutsummaryrefslogtreecommitdiff
path: root/.config/waybar/config
diff options
context:
space:
mode:
authorGuangxiong Lin <[email protected]>2022-06-19 23:56:13 +0800
committerGuangxiong Lin <[email protected]>2022-06-19 23:56:13 +0800
commitb5d772f01e410d4fe0dcdc661c958657fbf0ca28 (patch)
tree54d3a01f991613df21e2e94ae4085d9b350a7308 /.config/waybar/config
parent36286917b3e209fc4556d7350c065aee55a6f7ec (diff)
downloaddotfiles-b5d772f01e410d4fe0dcdc661c958657fbf0ca28.tar.gz
dotfiles-b5d772f01e410d4fe0dcdc661c958657fbf0ca28.tar.bz2
dotfiles-b5d772f01e410d4fe0dcdc661c958657fbf0ca28.zip
Switch to swaywm
Diffstat (limited to '.config/waybar/config')
-rw-r--r--.config/waybar/config52
1 files changed, 52 insertions, 0 deletions
diff --git a/.config/waybar/config b/.config/waybar/config
new file mode 100644
index 0000000..082b55a
--- /dev/null
+++ b/.config/waybar/config
@@ -0,0 +1,52 @@
+// vim:ft=json
+{
+ "modules-left": ["sway/workspaces", "sway/mode"],
+ "modules-center": ["sway/window"],
+ "modules-right": ["tray", "bluetooth", "network", "pulseaudio", "battery", "clock"],
+
+ "sway/window": {
+ "max-length": 50
+ },
+
+ "bluetooth": {
+ "format": ": {status}",
+ "format-connected": ": {device_alias}",
+ "format-connected-battery": ": {device_alias} {device_battery_percentage}%"
+ },
+
+ "pulseaudio": {
+ "format": "{icon}: {volume}%",
+ "format-bluetooth": "{icon}: {volume}%",
+ "format-muted": "",
+ "format-icons": {
+ "headphone": "",
+ "hands-free": "",
+ "headset": "",
+ "phone": "",
+ "portable": "",
+ "car": "",
+ "default": ["", ""]
+ },
+ "scroll-step": 1,
+ "on-click": "pavucontrol"
+ },
+
+ "network": {
+ "format-wifi": ": {essid} ({signalStrength}%)",
+ "max-length": 50
+ },
+
+ "battery": {
+ "format": "{icon}: {capacity}%",
+ "format-icons": ["", "", "", "", ""]
+ },
+
+ "clock": {
+ "format": "{:%a %d %b %H:%M}"
+ },
+
+ "tray": {
+ "icon-size": 18,
+ "spacing": 10
+ }
+}