summaryrefslogtreecommitdiff
path: root/home-config/waybar/config
diff options
context:
space:
mode:
Diffstat (limited to 'home-config/waybar/config')
-rw-r--r--home-config/waybar/config116
1 files changed, 116 insertions, 0 deletions
diff --git a/home-config/waybar/config b/home-config/waybar/config
new file mode 100644
index 0000000..10e27c7
--- /dev/null
+++ b/home-config/waybar/config
@@ -0,0 +1,116 @@
1{
2 "layer": "bottom",
3 "position": "top",
4 "height": 30,
5
6 "modules-left": ["sway/workspaces", "sway/mode"],
7 "modules-center": ["sway/window"],
8 "modules-right": ["tray", "custom/spotify", "custom/weather", "custom/mail", "custom/storage", "backlight", "pulseaudio", "network", "idle_inhibitor", "battery", "clock"],
9 "sway/mode": {
10 "format": " {}"
11 },
12 "sway/workspaces": {
13 "format": "{name}",
14 "disable-scroll": true
15 },
16 "sway/window": {
17 "max-length": 80,
18 "tooltip": false
19 },
20 "clock": {
21 "format": "{:%a %d %b %H:%M}",
22 "tooltip": false
23 },
24 "battery": {
25 "format": "{capacity}% {icon}",
26 "format-alt": "{time} {icon}",
27 "format-icons": ["", "", "", "", ""],
28 "format-charging": "{capacity}% ",
29 "interval": 30,
30 "states": {
31 "warning": 25,
32 "critical": 10
33 },
34 "tooltip": false,
35 "bat":"BAT1"
36 },
37 "network": {
38 "format-alt": "{icon}",
39 "format": "{ipaddr}/{cidr} {icon}",
40 "format-alt-click": "click-right",
41 "format-icons": {
42 "wifi": ["", "" ,""],
43 "ethernet": [""],
44 "disconnected": ["睊"]
45 },
46 "on-click": "alacritty -e iwctl",
47 "tooltip": false
48 },
49 "pulseaudio": {
50 "format-alt": "{icon}",
51 "format": "{volume} {icon}",
52 "format-alt-click": "click-right",
53 "format-muted": "",
54 "format-icons": {
55 "phone": [" ", " ", " ", " "],
56 "default": ["", "", "", ""]
57 },
58 "scroll-step": 1,
59 "on-click": "pavucontrol",
60 "tooltip": false
61 },
62 "custom/spotify": {
63 "interval": 2,
64 "return-type": "json",
65 "exec": "~/.config/waybar/modules/spotify.sh",
66 "exec-if": "pgrep spotifyd",
67 "escape": true,
68 "on-click": "~/.config/waybar/modules/spotify-play-pause.sh play-pause"
69 },
70 "custom/storage": {
71 "format-alt": "{} ",
72 "format": "{percentage}% ",
73 "format-alt-click": "click-right",
74 "return-type": "json",
75 "interval": 60,
76 "exec": "~/.config/waybar/modules/storage.sh"
77 },
78 "backlight": {
79 "format-alt": "{icon}",
80 "format": "{percent}% {icon}",
81 "format-alt-click": "click-right",
82 "format-icons": ["", ""],
83 "on-scroll-down": "light -A 1",
84 "on-scroll-up": "light -U 1"
85 },
86 "custom/weather": {
87 "format-alt": "{}",
88 "format": "{alt}: {}",
89 "format-alt-click": "click-right",
90 "interval": 1800,
91 "return-type": "json",
92 "on-click": "alacritty --class ala-wttr --hold -e curl https://v2.wttr.in",
93 "exec": "~/.config/waybar/modules/weather.sh",
94 "exec-if": "ping wttr.in -c1"
95 },
96 "idle_inhibitor": {
97 "format": "{icon}",
98 "format-icons": {
99 "activated": "",
100 "deactivated": ""
101 },
102 "tooltip": false
103 },
104 "custom/mail": {
105 "format": "",
106 "format-alt": "{alt} ",
107 "format-alt-click": "click-right",
108 "interval": 60,
109 "return-type": "json",
110 "exec": "~/.config/waybar/modules/mail.py",
111 "tooltip": false
112 },
113 "tray": {
114 "icon-size": 18
115 }
116}