summaryrefslogtreecommitdiff
path: root/.config/waybar/config
blob: 292d5897fc452d1f528ab3abbd8345b98a2cf438 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{
    "layer": "top",
    "modules-left": ["sway/workspaces", "sway/mode"],
    "modules-center": ["sway/window"],
    "modules-right": ["tray", "custom/alsa", "network", "battery", "clock"],
    "sway/window": {
      "max-length": 100
    },
    "tray": {
      "show-passive-items": true
    },
    "custom/alsa": {
      "exec": "amixer get Master | grep '%' | awk -F '[][]' '{print $2}'",
      //"exec-if": "alsactl monitor",
      "format": "V {}",
      "on-scroll-up": "amixer set Master 1%+",
      "on-scroll-down": "amixer set Master 1%-",
      "interval": 1
    },
    "network": {
      "format": "{ipaddr}",
      "format-disconnected": "Offline",
      "interval": 86400
    },
    "battery": {
      "format": "E {capacity}%",
      "format-full": "",
      "full-at": 94
    },
    "clock": {
      "format": "{:%a %d. %b  %H:%M}"
    }
}