.config/waybar/config-common 2.6 KiB raw
1
{
2
  "layer": "top",
3
  "position": "bottom",
4
  "height": 30,
5
  "spacing": 8,
6
  "fixed-center": true,
7
  "modules-left": [ "ext/workspaces" ],
8
  "modules-center": [ "custom/swm-window" ],
9
  "modules-right": [ "cpu", "memory", "disk", "pulseaudio", "battery", "network", "custom/screenshot", "custom/clipboard", "tray", "clock" ],
10
  "custom/swm-window": {
11
    "exec": "swmctl events --filter=active-window",
12
    "max-length": 80,
13
    "tooltip": false
14
  },
15
  "ext/workspaces": {
16
    "format": "{name}",
17
    "sort-by-name": true,
18
    "on-click": "activate"
19
  },
20
  "custom/screenshot": {
21
    "format": "",
22
    "tooltip-format": "Screenshot\nLeft: region\nRight: full output\nMiddle: region edit",
23
    "on-click": "waybar-screenshot region",
24
    "on-click-right": "waybar-screenshot full",
25
    "on-click-middle": "waybar-screenshot edit"
26
  },
27
  "clock": {
28
    "format": "{:%a %H:%M}",
29
    "tooltip-format": "{:%A, %d %B %Y %H:%M:%S}"
30
  },
31
  "network": {
32
    "interval": 2,
33
    "format-wifi": "{icon}",
34
    "format-icons": [ "󰤯", "󰤟", "󰤢", "󰤥", "󰤨" ],
35
    "format-ethernet": "󰈀",
36
    "format-linked": "󰈀",
37
    "format-disconnected": "󰖪",
38
    "tooltip-format-wifi": "{essid} {signalStrength}%",
39
    "tooltip-format-ethernet": "{ifname}\n{ipaddr}",
40
    "tooltip-format-disconnected": "Disconnected"
41
  },
42
  "cpu": {
43
    "interval": 2,
44
    "format": "󰍛 {usage}%"
45
  },
46
  "memory": {
47
    "interval": 5,
48
    "format": "󰾆 {used:0.1f}/{total:0.1f}G"
49
  },
50
  "disk": {
51
    "path": "/",
52
    "interval": 30,
53
    "format": "󰋊 {percentage_used}%",
54
    "tooltip-format": "{used} used of {total} on {path}"
55
  },
56
  "pulseaudio": {
57
    "format": "{icon}",
58
    "format-muted": "󰝟",
59
    "format-icons": {
60
      "default": [ "󰕿", "󰖀", "󰕾" ],
61
      "headphone": "󰋋"
62
    },
63
    "tooltip-format": "{desc} {volume}%",
64
    "scroll-step": 5,
65
    "on-click": "waybar-audio-output-selector",
66
    "on-click-right": "pactl set-sink-mute @DEFAULT_SINK@ toggle"
67
  },
68
  "battery": {
69
    "interval": 30,
70
    "format": "{icon}",
71
    "format-charging": "󰂄",
72
    "format-plugged": "󰂄",
73
    "format-icons": [ "󰂎", "󰁺", "󰁻", "󰁼", "󰁽", "󰁾", "󰁿", "󰂀", "󰂁", "󰂂", "󰁹" ],
74
    "states": {
75
      "warning": 30,
76
      "critical": 15
77
    }
78
  },
79
  "custom/clipboard": {
80
    "format": "",
81
    "interval": "once",
82
    "return-type": "json",
83
    "exec": "waybar-clipboard status",
84
    "exec-if": "waybar-clipboard has-items",
85
    "on-click": "waybar-clipboard copy",
86
    "on-click-right": "waybar-clipboard delete",
87
    "on-click-middle": "waybar-clipboard wipe",
88
    "signal": 9
89
  },
90
  "tray": {
91
    "icon-size": 18,
92
    "spacing": 8
93
  }
94
}