// {
// "layer": "top",
// "position": "top",
// "height": 10,
// "width": 1600,
// "margin-bottom": 5,
// "modules-left": ["sep", "ai", "cmus", "hyprland/window"],
// "modules-center": ["hyprland/workspaces"],
// "modules-right": ["custom/cmus", "tray", "cpu", "memory", "pulseaudio", "hyprland/language", "clock", "sep"],
// "tray": {
// "icon-size": 16,
// "spacing": 16
// },
// "cpu": {
// "format": " {usage}%",
// "tooltip": false
// },
// "memory": {
// "format": " {}%",
// "tooltip": false
// },
// "hyprland/window": {
// "format": "{class}",
// "separate-outputs": false,
// },
// "hyprland/workspaces": {
// "format": "{icon}",
// "on-click": "activate",
// "format-icons": {
// "1": "",
// "2": "",
// "3": "",
// "4": "",
// "5": "",
// "6": "",
// "7": "",
// },
// "tooltip": false
// },
// "clock": {
// "tooltip-format": "{:%Y %B}\n{calendar}",
// "format-alt": "{:%Y-%m-%d}"
// },
// "cmus": {
// "format": "Radio playing",
// "max-length": 45,
// "interval": 1,
// "exec": "cmus-remote -C \"format_print '%F'\"",
// "exec-if": "pgrep ollama",
// "on-click": "cmus-remote -u",
// "on-scroll-up": "cmus-remote --next",
// "on-scroll-down": "cmus-remote --prev",
// "escape": true,
// "tooltip": false
// },
// "sep": {
// "format": "_",
// },
// }
[
{
// MAIN BAR //
"name": "main",
"layer": "top",
"position": "top",
"height": 10,
"width": 1600,
"margin-bottom": 5,
"modules-left": [
"group/traym",
"custom/spacer5",
"hyprland/submap",
"hyprland/window",
],
"modules-center": [
"hyprland/workspaces"
],
"modules-right": [
// "custom/spacer1",
"cpu",
"temperature",
"custom/nvidia",
"group/storage",
"disk",
"custom/spacer1",
"network#info",
"custom/spacer1",
"pulseaudio#input",
"pulseaudio#output",
"custom/spacer1",
"backlight",
"hyprland/language",
"custom/battery",
"custom/spacer1",
// "custom/weather",
"clock"
],
// Modules
"disk": {
"interval": 16,
"format": " {percentage_used}%",
"tooltip": "{}",
"tooltip-format": "Free {free}",
"on-click": "qdirstat & aplay ~/.config/sounds/interact.wav",
"states": {
"warning": 85,
"critical": 95
}
},
"custom/weather": {
"format": "{}°",
"tooltip": true,
"interval": 60,
"exec": "wttrbar --nerd --location Oulu-finland",
"return-type": "json"
},
"group/traym": {
"orientation": "horizontal",
"drawer": {},
"modules": ["custom/trayicon"]
},
"group/storage": {
"orientation": "horizontal",
"drawer": {
"transition-duration": "500",
"transition-left-to-right": "true",
"children-class": "drawer-child"
//"click-to-reveal": "false"
},
"modules": ["memory#ram",
"memory#swap"
// "disk"
]
},
"group/power": {
"orientation": "horizontal",
"drawer": {
"transition-duration": "500",
"transition-left-to-right": "true",
"children-class": "drawer-child"
//"click-to-reveal": "false"
},
"modules": ["custom/battery", "backlight"]
},
"backlight": {
"device": "intel_backlight",
"format": "{icon} {percent}%",
"format-icons": ["", "", "", "", ""],
"scroll-step": 2
},
"custom/nvidia": {
"interval": 4,
"return-type": "json",
"exec": "~/.config/hypr/themes/Mocha-Power/nvidia.sh",
"format": "{text}",
"tooltip": "true",
"tooltip-format": "{alt}"
},
"custom/battery": {
"interval": 4,
"return-type": "json",
"exec": "~/.config/hypr/themes/Mocha-Power/bat-pp.sh refresh",
"exec-on-event": true,
"format": "{text}%",
"on-click": "~/.config/hypr/themes/Mocha-Power/bat-pp.sh toggle & aplay ~/.config/sounds/interact.wav",
"tooltip": "true",
"tooltip-format": "{alt}"
},
// "custom/battery": {
// "return-type": "json",
// "exec": "~/.config/hypr/themes/Mocha-Power/bat-pp2.sh refresh",
// "exec-on-event": true,
// "format": "{text}%",
// "on-click": "~/.config/hypr/themes/Mocha-Power/bat-pp2.sh toggle & aplay ~/.config/sounds/interact.wav",
// "tooltip": "true",
// "tooltip-format": "{alt}"
// },
"clock": {
"interval": 1,
"tooltip-format": "{:%Y %B}\n{calendar}",
"format-alt": "{:%d.%m.%Y}",
"calendar": {
"weeks-pos": "right",
"mode": "month",
"format": {
"months": "{}",
"days": "{}",
"weeks": " W{}",
"weekdays": "{}",
"today": "{}"
}
},
},
"cpu": {
"interval": 4,
"format": " {usage}%",
"states": {
"warning": 80,
"critical": 95
}
},
"hyprland/language": {
"format": "{}",
"format-en": "EN",
"format-ru": "RU",
"tooltip": false,
"class": "language"
},
"memory#ram": {
"interval": 4,
"format": " {}%",
"states": {
"warning": 80,
"critical": 95
},
"tooltip": "{}",
"tooltip-format": "{used}/{total} GiB"
},
"memory#swap": {
"interval": 16,
"format": " {swapPercentage}%",
"tooltip": "{}",
"tooltip-format": "{swapUsed}/{swapTotal}GiB"
},
"network#info": {
"interval": 2,
"format": " Offline",
"format-wifi": "{icon} {bandwidthDownBits}",
"format-ethernet": " {bandwidthDownBits}",
"min-length": 11,
"tooltip": "{}",
"tooltip-format-wifi": "{ifname}\n{essid}\n{signalStrength}% \n{frequency} GHz\n {bandwidthDownBits}\n {bandwidthUpBits}",
"tooltip-format-ethernet": "{ifname}\n {bandwidthDownBits} \n {bandwidthUpBits}",
"on-click": "iwgtk& aplay ~/.config/sounds/interact.wav",
"format-icons": ["", "", "", "", ""],
"states": {
"normal": 25
}
},
"network#up": {
"interval": 4,
"format": " ",
"format-wifi": " {bandwidthUpBits}",
"format-ethernet": " {bandwidthUpBits}",
"format-disconnected": " ",
"min-length": 11
},
"network#down": {
"interval": 4,
"format": " {bandwidthDownBits}",
"format-wifi": " {bandwidthDownBits}",
"format-ethernet": " {bandwidthDownBits}",
"min-length": 11
},
"hyprland/submap": {
"always-on": true,
"default-submap": "",
"format": "{}",
"format-RESIZE": "{}lol",
"tooltip": false
},
"hyprland/window": {
"format": "{title}",
"max-length": 48,
"tooltip": false,
"icon": true,
"icon-size": 16,
"tooltip": true
},
"hyprland/workspaces": {
"disable-scroll-wraparound": true,
"smooth-scrolling-threshold": 1,
"enable-bar-scroll": true,
"format": "{icon}",
"show-special": true,
"special-visible-only": false,
"format-icons": {
"1": "",
"2": "",
"3": "",
"4": "",
"5": "",
"6": "",
"7": "",
},
},
"pulseaudio#output": {
"format": "{icon} {volume}%",
"format-bluetooth": "{icon} {volume}%",
"format-source-muted": "{volume}",
"format-icons": {
"headphone": "",
"hands-free": "",
"headset": "",
"phone": "",
"portable": "",
"car": "",
"default": ["", "", ""]
},
"on-click": "pactl set-sink-mute @DEFAULT_SINK@ toggle",
"on-click-right": "pavucontrol & paplay ~/.config/hypr/LibreOS/interact.wav",
"tooltip": true,
"scroll-step": 5
},
"pulseaudio#input": {
"format": " {format_source}%",
"format-source": "{volume}",
"format-source-muted": "{volume}",
"on-scroll-up": "sh -c 'vol=$(pactl get-source-volume @DEFAULT_SOURCE@ | grep -oP \"\\d+(?=%)\" | head -1); if [ \"$vol\" -lt 100 ]; then pactl set-source-volume @DEFAULT_SOURCE@ +2%; else pactl set-source-volume @DEFAULT_SOURCE@ 100%; fi'",
"on-scroll-down": "pactl set-source-volume @DEFAULT_SOURCE@ -2%",
"max-volume": "100",
"on-click": "pactl set-source-mute @DEFAULT_SOURCE@ toggle",
"on-click-right": "pavucontrol & paplay ~/.config/hypr/LibreOS/interact.wav",
"tooltip-format": "{source_desc}"
},
"temperature": {
"critical-threshold": 90,
"interval": 4,
"format": "{icon} {temperatureC}°",
"format-icons": ["", "", "", "", ""],
"tooltip": false
},
"tray": {
"icon-size": 16,
"spacing": 8
},
"custom/spacer": {
"format": " ",
"tooltip": false
},
"custom/spacer1": {
"format": "",
"tooltip": false
},
"custom/spacer2": {
"format": "",
"tooltip": false
},
"custom/spacer3": {
"format": "",
"tooltip": false
},
"custom/spacer4": {
"format": "",
"tooltip": false
},
"custom/spacer5": {
"format": "",
"tooltip": false
},
"custom/spacer6": {
"format": "",
"tooltip": false
},
"custom/trayicon": {
// "format": " ",
// "format": "Zäni",
"format": " Socio-Cybernetics [CC] ",
// "format": " ",
"tooltip": false,
"on-click": "paplay ~/.config/hypr/LibreOS/interact.wav && wofi --show drun --allow-images --allow-markup -c ~/.config/hypr/LibreOS/wofi/ -s ~/.config/hypr/LibreOS/wofi/style.css"
}
},
{
// INDICATOR BAR //
"layer": "top",
"position": "top",
"name": "indicator",
"passthrough": true,
"height": 30,
"margin-top": -29,
// "margin-left": 10,
"margin-right": 24,
"modules-right": ["custom/batteryindicator"],
"custom/batteryindicator": {
"interval": 4,
"return-type": "json",
"tooltip": false,
"format": " ",
"exec": "~/.config/hypr/Libreos/scripts/battery.sh bar"
}
}
]