+/config

my dotfiles and nix configuration

git clone https://git.julia.blue/+/config

Julia RyanFirst day of work17c374c

main
6.0 KiB204 linesraw
1{
2	"reload_style_on_change": true,
3	"modules-left": ["tray", "custom/prev", "custom/next", "mpris"],
4	"modules-center": ["sway/workspaces"],
5	"modules-right": [
6		"custom/weather",
7		"cpu",
8		"memory",
9		"custom/memory",
10		"temperature",
11		"backlight",
12		"battery",
13		"power-profiles-daemon",
14		"custom/notify",
15		"pulseaudio",
16		"clock"
17	],
18	"sway/workspaces": {
19		"format": "{name}",
20		"disable-scroll": true,
21		"disable-auto-back-and-forth": true
22	},
23	"mpris": {
24		"format": "{status_icon}  {title} {player_icon}",
25		"format-paused": "{status_icon}  <i>{title}</i> {player_icon}",
26		"format-stopped": "{status_icon} {player_icon}",
27		"dynamic-order": ["title", "artist", "album"],
28		"dynamic-separator": " - ",
29		"player-icons": {
30			"default": " ",
31			"mpv": "",
32			"mpd": "",
33			"firefox": "󰈹",
34			"chromium": ""
35		},
36		"status-icons": {
37			"paused": "",
38			"playing": "",
39			"stopped": ""
40		},
41		"on-click-right": "playerctld shift",
42		"on-click-middle": "playerctld unshift",
43		"max-length": 50
44		// "ignored-players": ["chromium"]
45	},
46	"tray": {
47		"icon-size": 20,
48		"spacing": 2
49	},
50	// TODO: lowercase am/pm and no leading zero on hour
51	"clock": {
52		"format": "{:%I:%M%p}",
53		"format-alt": "{:%Y-%m-%d}",
54		"tooltip-format": "<tt><small><span font='Noto Sans Mono'>{calendar}</span></small></tt>",
55		"calendar": {
56			"mode": "month",
57			"mode-mon-col": 4,
58			"weeks-pos": "right",
59			"on-scroll": 1,
60			"format": {
61				"months": "<span color='#f5e0dc'><b>{}</b></span>",
62				"days": "<span color='#89dceb'><b>{}</b></span>",
63				"weeks": "<span color='#f5c2e7'><b>W{}</b></span>",
64				"weekdays": "<span color='#fab387'><b>{}</b></span>",
65				"today": "<span color='#f38ba8'><b><u>{}</u></b></span>"
66			}
67		},
68		"actions": {
69			"on-click-right": "mode"
70		}
71	},
72	"cpu": {
73		// "format": " {usage}%",
74		"format": " {icon}",
75		"format-icons": ["▁", "▂", "▃", "▄", "▅", "▆", "▇", "█"],
76		// "format": "{icon}",
77		// "format-icons": ["󰝦", "󰪞", "󰪟", "󰪠", "󰪡", "󰪢", "󰪣", "󰪤", "󰪥"],
78		"interval": 2,
79		"on-click": "kitty -1 htop"
80	},
81	"memory": {
82		// "format": " {}%",
83		"format": " {icon}",
84		// "format": "{icon}",
85		"format-icons": ["▁", "▂", "▃", "▄", "▅", "▆", "▇", "█"],
86		// "format-icons": ["󰝦", "󰪞", "󰪟", "󰪠", "󰪡", "󰪢", "󰪣", "󰪤", "󰪥"],
87		"interval": 10,
88		"tooltip-format": "RAM: {percentage}% ({used:0.1f}G)\nswap: {swapPercentage}% {swapUsed:0.1f}G",
89		"on-click": "kitty -1 btop"
90	},
91	"temperature": {
92		// "thermal-zone": 2,
93		// "hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input",
94		"critical-threshold": 85,
95		// "format": "{icon} {temperatureC}°C",
96		// "format-icons": ["", "", ""],
97		"format": " {icon}",
98		"format-icons": [" ", " ", "▁", "▁", "▂", "▃", "▄", "▅", "▆", "▇", "█"],
99		// "tooltip": false,
100		// "format": "{icon}",
101		// "format-icons": ["󰝦", "󰪞", "󰪟", "󰪠", "󰪡", "󰪢", "󰪣", "󰪤", "󰪥"],
102		"interval": 5
103	},
104	"backlight": {
105		"device": "intel_backlight",
106		"format": "{icon}", // {percent}%",
107		"format-icons": ["󰌶", "󱩎", "󱩏", "󱩐", "󱩑", "󱩒", "󱩓", "󱩔", "󱩕", "󱩖", "󰛨"],
108		// "format": "󰛨 {icon}",
109		// "format-icons": ["󰝦", "󰪞", "󰪟", "󰪠", "󰪡", "󰪢", "󰪣", "󰪤", "󰪥"],
110		"on-scroll-up": "brightnessctl -q s '+1%'",
111		"on-scroll-down": "brightnessctl -q s '1%-'",
112		"on-click": "brightnessctl -q s '+25%'",
113		"on-click-right": "brightnessctl -q s '25%-'",
114		"on-click-middle": "brightnessctl -q s '50%'",
115		"reverse-scrolling": true,
116		"tooltip": false
117	},
118	"battery": {
119		"states": {
120			"good": 91,
121			"normal": 90,
122			"warning": 30,
123			"critical": 10
124		},
125		"format": "{icon} {capacity}%",
126		"format-full": "{icon}",
127		"format-charging": "󰂄 {capacity}%",
128		"format-plugged": " {capacity}%",
129		"tooltip-format": "{power:.0f}W draw\n{timeTo}\n{cycles} cycles, {health}% health",
130		"format-good": "󰁹",
131		"format-icons": ["󰂎", "󰁺", "󰁻", "󰁼", "󰁽", "󰁾", "󰁿", "󰂀", "󰂁", "󰂂", "󰁹"],
132		"interval": 10
133	},
134	"power-profiles-daemon": {
135		"format": "{icon}",
136		"tooltip-format": "{profile}",
137		"tooltip": true,
138		"format-icons": {
139			"default": "󰓅",
140			"performance": "󰓅",
141			"balanced": "󰾅",
142			"power-saver": "󰾆"
143		}
144	},
145	"pulseaudio": {
146		"reverse-scrolling": true,
147		"scroll-step": 0.25,
148		"format": "{icon} {volume}%{format_source}",
149		"format-bluetooth": "{icon} {volume}% {format_source}",
150		"format-bluetooth-muted": " {icon}{format_source}",
151		"format-muted": " {format_source}",
152		"format-source": "",
153		"format-source-muted": " ",
154		"format-icons": {
155			"headphone": "",
156			"hands-free": "",
157			"headset": "",
158			"phone": "",
159			"portable": "",
160			"default": ["", "", "", "", ""]
161		},
162		"on-click": "audio-select",
163		"on-click-right": "pamixer -t",
164		"on-click-middle": "pavucontrol"
165	},
166	"custom/notify": {
167		"escape": true,
168		"exec": "swaync-client -swb",
169		"exec-if": "which swaync-client",
170		"format": "{icon}",
171		"format-icons": {
172			"dnd-inhibited-none": " <sup></sup>",
173			"dnd-inhibited-notification": "<span foreground='#cba6f7'><sup></sup></span>",
174			"dnd-none": " ",
175			"dnd-notification": " <span foreground='#cba6f7'><sup></sup></span>",
176			"inhibited-none": "<sup>󰜺</sup>",
177			"inhibited-notification": "󰵙<span foreground='#cba6f7'><sup></sup></span>",
178			"notification": " <span foreground='#cba6f7'><sup></sup></span>",
179			"none": " "
180		},
181		"on-click": "sleep 0.1 && swaync-client -t -sw",
182		"on-click-right": "swaync-client -d",
183		"on-click-middle": "swaync-client -C -cp",
184		"return-type": "json",
185		"tooltip": "{} notifs"
186	},
187	"custom/next": {
188		"format": " ",
189		"tooltip": false,
190		"on-click": "playerctl next"
191	},
192	"custom/prev": {
193		"format": " ",
194		"tooltip": false,
195		"on-click": "playerctl previous"
196	},
197	"custom/weather": {
198		"format": "{}°",
199		"tooltip": true,
200		"interval": 600,
201		"exec": "wttrbar --fahrenheit --hide-conditions -m --ampm",
202		"return-type": "json"
203	}
204}