summaryrefslogtreecommitdiff
path: root/dots/waybar/.config/waybar/config
blob: c4e973a13f702ba15c3f294c17275f1ebb9f372e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
{
  "layer": "top",
  "position": "top",
  "margin-top": 10,
  "margin-right": 5,
  "margin-left": 5,
  "height": 50,

  "modules-left": ["custom/now-playing", "custom/clock"],
  "modules-center": ["sway/workspaces"],
  "modules-right": [
    "custom/date",
    "custom/bluetooth",
    "custom/wifi",
    "battery",
    "custom/battery-warning",
    "pulseaudio",
    "memory",
    "custom/menu"
  ],

  "hyprland/workspaces": {
    "format": "{id}",
    "format-icons": {
      "firefox": "",
      "code": "",
      "kitty": "",
      "spotify": "",
      "discord": "",
      "default": "{id}"
    },
    "on-click": "activate",
    "on-scroll-up": "hyprctl dispatch workspace e+1",
    "on-scroll-down": "hyprctl dispatch workspace e-1"
  },

  "battery": {
    "format": "{capacity}% {icon}",
    "format-charging": " {capacity}%",
    "format-icons": ["", "", "", "", ""],
    "tooltip": true,
    "interval": 5
  },

  "custom/battery-warning": {
    "exec": "~/.config/waybar/scripts/battery-notify.sh",
    "interval": 60,
    "format": "",
    "tooltip": false
  },

  "pulseaudio": {
    "format": "{icon} {volume}%",
    "format-muted": " Muted",
    "format-bluetooth": "{icon} {volume}%",
    "scroll-step": 2,
    "on-click": "pavucontrol",
    "ignored-sinks": ["Easy Effects Sink"],
    "format-icons": {
      "headphone": "",
      "headset": "",
      "hands-free": "",
      "phone": "",
      "portable": "",
      "car": "",
      "default": ["", ""]
    }
  },
  "memory": {
    "format": " {used:0.1f}G",
    "interval": 5
  },

  "custom/menu": {
    "exec": "echo '{\"text\": \" \", \"tooltip\": \"System Menu\"}'",
    "return-type": "json",
    "on-click": "~/.config/rofi/applets/bin/powermenu.sh",
    "interval": 5
  },
  "custom/wifi": {
    "exec": "echo '{\"text\": \"\", \"tooltip\": \"Wi-Fi Settings\"}'",
    "return-type": "json",
    "on-click": "nm-connection-editor",
    "interval": 3600
  },

  "custom/bluetooth": {
    "exec": "echo '{\"text\": \"\", \"tooltip\": \"Bluetooth Settings\"}'",
    "return-type": "json",
    "on-click": "blueman-manager",
    "interval": 3600
  },
  "custom/now-playing": {
    "exec": "~/.config/waybar/modules/now-playing.sh",
    "return-type": "text",
    "interval": 2,
    "on-click": "playerctl --player=spotify play-pause",
    "on-scroll-up": "playerctl --player=spotify next",
    "on-scroll-down": "playerctl --player=spotify previous",
    "tooltip": true
  },
  "custom/clock": {
    "exec": "date '+ %H:%M'",
    "return-type": "text",
    "interval": 60,
    "tooltip": true,
    "tooltip-format": "Full date/time"
  },
  "custom/date": {
    "exec": "date '+ %d %b'",
    "return-type": "text",
    "interval": 60,
    "tooltip": true,
    "tooltip-format": "Full date/time"
  }
}