aboutsummaryrefslogtreecommitdiff
path: root/waybar/config
diff options
context:
space:
mode:
Diffstat (limited to 'waybar/config')
-rw-r--r--waybar/config143
1 files changed, 143 insertions, 0 deletions
diff --git a/waybar/config b/waybar/config
new file mode 100644
index 0000000..d3daf39
--- /dev/null
+++ b/waybar/config
@@ -0,0 +1,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"
+ }
+}