z_mirror/dotfiles

git clone https://git.raiguard.me/z_mirror/dotfiles

Caleb Heuerwaybar: Add power-usage script to version control9124e70

uraya-alpine
1.1 KiB63 linesraw
1{
2  "modules-left": [
3    "sway/workspaces",
4    "sway/mode",
5    "niri/workspaces",
6    "wlr/taskbar"
7  ],
8  "modules-center": [
9    "niri/window",
10    "sway/window"
11  ],
12  "modules-right": [
13    "cpu",
14    "custom/cputemp",
15    "memory",
16    "battery",
17    "custom/wattage",
18    "custom/time",
19    "tray"
20  ],
21  "layer": "top",
22  "position": "top",
23  "wlr/taskbar": {
24    "format": "{icon}",
25    "tooltip-format": "{title} | {app_id}",
26    "on-click": "activate",
27    "on-click-middle": "close",
28    "on-click-right": "fullscreen",
29    "icon-size": 24
30  },
31  "cpu": {
32    "format": "{usage}%",
33    "interval": 2
34  },
35  "custom/cputemp": {
36    "exec": "~/.config/waybar/cputemp.sh",
37    "interval": 1
38  },
39  "memory": {
40    "format": "{percentage}%",
41    "interval": 2
42  },
43  "battery": {
44    "states": {
45      "critical": 20
46    },
47    "format": "{capacity}%",
48    "format-charging": "+{capacity}%",
49    "format-plugged": "={capacity}%",
50    "interval": 2
51  },
52  "custom/wattage": {
53    "exec": "power-usage",
54    "interval": 1
55  },
56  "custom/time": {
57    "exec": "~/.config/waybar/time.sh",
58    "interval": 60
59  },
60  "tray": {
61    "spacing": 3
62  }
63}