aboutsummaryrefslogtreecommitdiff
path: root/waybar/config
blob: d3daf3979cb90805cd18ff09f4d664c73cd57f2c (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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
{
    "layer": "top", // Waybar at top layer
    "exclusive": false,
    //"mode": "overlay",
    //"passthrough": false,
    "start_hidden": true,
    "position": "top", // Waybar position (top|bottom|left|right)
    // "width": 1280, // Waybar width
    "spacing": 2, // Gaps between modules (4px)
    // Choose the order of the modules
    // "margin-left":25,
    // "margin-right":25,
    "margin-bottom":-5,
    //"margin-top":5,
    "modules-left": ["hyprland/workspaces","custom/audio_idle_inhibitor"],
    "modules-right": ["cpu","memory","pulseaudio","tray"],
    "modules-center": [ "clock"],
    // Modules configuration


    // custom modules //
    "custom/cycle_wall":{
        "format":"  󰊠  ",
        // "interval": 1,
        "on-click": "~/.config/hypr/scripts/wall",
        "tooltip": false

    },

    "custom/spotify": {
        "exec": "/usr/bin/python3 .config/hypr/scripts//mediaplayer.py --player spotify",
        "format": "{}  󰓇",
        "return-type": "json",
        "on-click": "playerctl next",
        "on-scroll-up": "playerctl previous",
        "on-click-right": "playerctl stop"
    },

    "custom/audio_idle_inhibitor": {
		"format": "{icon}",
		"exec": "sway-audio-idle-inhibit --dry-print-both-waybar",
		"exec-if": "which sway-audio-idle-inhibit",
        "on-click": "playerctl stop",
		"return-type": "json",
        "tooltip": false,
		"format-icons": {
			"output": "󰝚",
			"input": "󰍬",
			"output-input": "󰐌 󰍬",
			"none": ""
		}
	},
    "custom/weather": {
        "exec": "python ~/.config/hypr/scripts/weather.py",
        "restart-interval": 300,
        "return-type": "json",
        "on-click": "xdg-open https://weather.com/en-IN/weather/today/l/$(location_id)"
        // "format-alt": "{alt}",
    },

    // End of custom modules //
    "wlr/workspaces": {
        "format": "{icon}",
        "format-active": " {icon} ",
        "on-click": "activate"
        // "format-icons":{
        //   "10":"10"
        // }
    },
    "tray": {
        "icon-size": 18,
        "spacing": 8,
        "show-passive-items": false
    },
    "clock": {
        // "timezone": "America/New_York",
        "tooltip": false,
        "interval": 60,
        "format": "{:%H:%M}",
        "max-length": 25,
        "on-click": "kitty  --class calendar -e calcure"
    },
    "cpu": {
        "interval":1,
        "format": "{icon0} {icon1} {icon2} {icon3}",
        "format-icons": ["▁", "▂", "▃", "▄", "▅", "▆", "▇", "█"],
        "on-click": "kitty --class system_monitor -e htop"

    },
    "memory": {
        "format": "{percentage}% 󰇖",
        "interval": 1,
        "on-click": "kitty --class system_monitor -e htop",
        "max-lenght": 35
    },
    "backlight": {
        // "device": "acpi_video1",
        "format": "{percent}% {icon}",
        "on-scroll-down": "swayosd-client --brightness raise",
        "on-scroll-up": "swayosd-client --brightness lower",
        "format-icons": ["󰃚", "󰃚", "󰃛", "󰃜", "󰃜", "󰃝", "󰃞", "󰃟", "󰃠"]
    },
    "battery": {
        "states": {
            "warning": 50,
            "critical": 20
        },
        "format": "{capacity}% {icon}",
        "format-charging": "{capacity}% 󰂅",
        "format-plugged": "{capacity}% {icon}",
         "format-good": "", // An empty format will hide the module
         "format-full": "󰁹",
        "format-icons": ["󰂎","󰁺","󰁻","󰁼","󰁽","󰁾","󰁿", "󰂀", "󰂁", "󰂂", "󰁹"],
        "on-click": ".config/rofi/powermenu/type-5/powermenu.sh",
    },
    "pulseaudio": {
        "format": "{volume}% {icon}",
        "format-bluetooth": "{volume}% {icon}",
        "format-bluetooth-muted": "婢  muted",
        "format-muted": "󰖁 muted",
        "format-icons": {
            "headphone": "󰋋",
            "hands-free": "",
            "headset": "󰋋",
            "phone": "󰄜",
            "portable": "",
            "car": "󰸛",
            "default": ["󰕿", "󰖀", "󰕾"]
        },
        "on-click-right": "pavucontrol",
      "on-click": "swayosd-client --output-volume mute-toggle",
      "on-scroll-down": "swayosd-client --output-volume raise",
      "on-scroll-up": "swayosd-client --output-volume lower",
    },
    "network": {
         "interface": "wlan0",
        "format-wifi":  " {signalStrength}% 󰤨 ",
        "format-disconnected": " Offline 󰤭 ",
        "tooltip-format": "{ifname} via {gwaddr} 󰱶",
        "tooltip-format-wifi": "{essid}",
        //"on-click": "~/.config/hypr/scripts/rofi-wifi-menu"
    }
}