dotfiles

Alpine Linux dotfiles

git clone git://git.lin.moe/dotfiles.git

 1{
 2  "bar_id": "bar-0",
 3  "ipc": true,
 4  "layer": "top",
 5  "position": "top", // Waybar position (top|bottom|left|right)
 6  "height": 30,
 7  "spacing": 4,
 8  "modules-left": ["sway/workspaces", "sway/mode", "custom/media"],
 9  "modules-center": ["sway/window"],
10  "modules-right": ["idle_inhibitor", "clock",  "cpu", "memory", "temperature", "backlight", "custom/audio",  "battery", "tray"],
11  "sway/mode": {
12    "format": "<span style=\"italic\">{}</span>"
13  },
14
15  "idle_inhibitor": {
16     "format": "{icon}",
17     "format-icons": {
18       "activated": "",
19       "deactivated": ""
20     }
21  },
22
23  "tray": {
24    "spacing": 10
25  },
26  
27  "clock": {
28    "interval": 60,
29    "tooltip-format": "<tt><small>{calendar}</small></tt>",
30    "format-alt": "{:%Y-%m-%d}",
31    "format": "⏳{:%H:%M}"
32  },
33
34  "cpu": {
35    "format": "💦 {usage:2}%",
36    "tooltip": false
37  },
38
39  "memory": {
40    "format": "🐑 {}%"
41  },
42
43  "temperature": {
44    "critical-threshold": 80,
45    "format": "🌡️ {temperatureC}°C",
46    "hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input",
47  },
48
49  "backlight": {
50    "format": "🔆 {percent}%",
51    "on-click": "$HOME/.local/bin/light -A 5",
52    "on-click-right": "$HOME/.local/bin/light -U 5",
53    "on-scroll-up": "$HOME/.local/bin/light -A 1",
54    "on-scroll-down": "$HOME/.local/bin/light -U 1",
55  },
56  
57  "battery": {
58    "states": {
59      "warning": 30,
60      "critical": 15
61     },
62     "format": "{icon} {capacity}%",
63     "format-charging": "  {capacity}%",
64     "format-plugged": " {capacity}%",
65     "format-alt": "{time} {icon}",
66     "format-icons": ["", "", "", "", ""]
67  },
68  "custom/audio": {
69    "tooltip": false,
70    "exec": "sleep 0.05; $HOME/.config/waybar/scripts/sound_info.sh",
71    "restart-interval": 10,
72    "on-click": "pactl set-sink-volume @DEFAULT_SINK@ +5%",
73    "on-click-right": "pactl set-sink-volume @DEFAULT_SINK@ -5%",
74    "on-scroll-up": "pactl set-sink-volume @DEFAULT_SINK@ +1%",
75    "on-scroll-down": "pactl set-sink-volume @DEFAULT_SINK@ -1%",
76    "on-click-middle": "pactl set-sink-mute $(pactl get-default-sink) toggle",
77  }
78}