summaryrefslogtreecommitdiff
path: root/waybar/config.jsonc
diff options
context:
space:
mode:
Diffstat (limited to 'waybar/config.jsonc')
-rw-r--r--waybar/config.jsonc73
1 files changed, 73 insertions, 0 deletions
diff --git a/waybar/config.jsonc b/waybar/config.jsonc
new file mode 100644
index 0000000..4c55e55
--- /dev/null
+++ b/waybar/config.jsonc
@@ -0,0 +1,73 @@
+{
+ "layer": "top",
+ "position": "top",
+ "height": 30,
+ "spacing": 4,
+ "modules-left": [
+ "niri/workspaces"
+ ],
+ "modules-center": [
+ "clock",
+ "custom/media",
+ "custom/layout"
+ ],
+ "modules-right": [
+ "pulseaudio",
+ "memory",
+ "custom/power",
+ "tray"
+ ],
+
+ "niri/workspaces": {
+ "format": "{idx}/10",
+ "disable-scroll": true
+ },
+
+ "clock": {
+ "format": "[{:%H:%M}]"
+ },
+
+ "custom/media": {
+ "format": "▶ {}",
+ "max-length": 40,
+ "interval": 2,
+ "exec": "playerctl metadata --format '{{ artist }} - {{ title }}' 2>/dev/null",
+ "on-click": "playerctl play-pause"
+ },
+
+ "custom/layout": {
+ "format": "[{}]",
+ "interval": 0,
+ "exec": "niri msg -j keyboard-layouts | jq -r 'if .current_idx == 0 then \"En\" elif .current_idx == 1 then \"Ru\" else .names[.current_idx] end'; niri msg event-stream | while read -r line; do if echo \"$line\" | grep -q 'Keyboard layouts changed'; then niri msg -j keyboard-layouts | jq -r 'if .current_idx == 0 then \"En\" elif .current_idx == 1 then \"Ru\" else .names[.current_idx] end'; fi; done"
+ },
+
+ "tray": {
+ "spacing": 10
+ },
+
+ "pulseaudio": {
+ "format": "VOL {icon} {volume}%",
+ "format-muted": "VOL [x_x ] 00%",
+ "format-icons": [
+ "[> ]",
+ "[=> ]",
+ "[==> ]",
+ "[===> ]",
+ "[====> ]",
+ "[=====> ]",
+ "[======> ]",
+ "[=======>]"
+ ],
+ "on-click": "pavucontrol"
+ },
+
+ "memory": {
+ "interval": 5,
+ "format": "RAM [{percentage:02}%]"
+ },
+
+ "custom/power": {
+ "format": "[ SYS ]",
+ "on-click": "wlogout -b 2"
+ }
+}