339 lines
12 KiB
Plaintext
339 lines
12 KiB
Plaintext
// ███████╗ ██████╗ ██████╗██╗ ██████╗ ██████╗██╗ ██╗██████╗ ███████╗██████╗ ███████╗███████╗███╗ ██╗ ██████╗
|
|
// ██╔════╝██╔═══██╗██╔════╝██║██╔═══██╗ ██╔════╝╚██╗ ██╔╝██╔══██╗██╔════╝██╔══██╗██╔════╝██╔════╝████╗ ██║██╔════╝
|
|
// ███████╗██║ ██║██║ ██║██║ ██║█████╗██║ ╚████╔╝ ██████╔╝█████╗ ██████╔╝█████╗ █████╗ ██╔██╗ ██║██║ ███╗
|
|
// ╚════██║██║ ██║██║ ██║██║ ██║╚════╝██║ ╚██╔╝ ██╔══██╗██╔══╝ ██╔══██╗██╔══╝ ██╔══╝ ██║╚██╗██║██║ ██║
|
|
// ███████║╚██████╔╝╚██████╗██║╚██████╔╝ ╚██████╗ ██║ ██████╔╝███████╗██║ ██║███████╗███████╗██║ ╚████║╚██████╔╝
|
|
// ╚══════╝ ╚═════╝ ╚═════╝╚═╝ ╚═════╝ ╚═════╝ ╚═╝ ╚═════╝ ╚══════╝╚═╝ ╚═╝╚══════╝╚══════╝╚═╝ ╚═══╝ ╚═════╝
|
|
//
|
|
// W A Y B A R — T H E P A N E L
|
|
//
|
|
// LinaraOS [2026]
|
|
//
|
|
// Layout:
|
|
// LEFT: [SCE menu + tray] [submap] [window title]
|
|
// CENTER: [workspaces]
|
|
// RIGHT: [cpu temp gpu ram disk] [network] [audio] [light lang battery] [clock]
|
|
//
|
|
// Reload waybar: killall waybar && waybar -c <this file> -s <style.css>
|
|
|
|
[
|
|
{
|
|
//==========================================================================
|
|
// MAIN BAR
|
|
//==========================================================================
|
|
"name": "main",
|
|
"layer": "top",
|
|
"position": "top",
|
|
"height": 10,
|
|
"width": 1600,
|
|
"margin-bottom": 5,
|
|
|
|
//--- Module placement ----------------------------------------------------
|
|
|
|
"modules-left": [
|
|
"custom/trayicon",
|
|
"tray",
|
|
"custom/spacer5",
|
|
"hyprland/submap",
|
|
"hyprland/window"
|
|
],
|
|
|
|
"modules-center": [
|
|
"hyprland/workspaces"
|
|
],
|
|
|
|
"modules-right": [
|
|
"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",
|
|
"clock"
|
|
],
|
|
|
|
//==========================================================================
|
|
// LEFT: SCE MENU + TRAY
|
|
//==========================================================================
|
|
// Tray is always visible, right after the SCE label.
|
|
// Tray icons: nekoray, flameshot, telegram, etc.
|
|
|
|
"custom/trayicon": {
|
|
"format": " Socio-Cybernetics [CC] ",
|
|
"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"
|
|
},
|
|
|
|
"tray": {
|
|
"icon-size": 16,
|
|
"spacing": 8,
|
|
"show-passive-items": true
|
|
},
|
|
|
|
//==========================================================================
|
|
// LEFT: SUBMAP + WINDOW TITLE
|
|
//==========================================================================
|
|
|
|
"hyprland/submap": {
|
|
"always-on": true,
|
|
"default-submap": "",
|
|
"format": " {}",
|
|
"tooltip": false
|
|
},
|
|
|
|
"hyprland/window": {
|
|
"format": "{title}",
|
|
"max-length": 48,
|
|
"icon": true,
|
|
"icon-size": 16,
|
|
"tooltip": true
|
|
},
|
|
|
|
//==========================================================================
|
|
// CENTER: WORKSPACES
|
|
//==========================================================================
|
|
// ws1 Terminal | ws2 Browser | ws3 Code | ws4 3D/Notes | ws5 Messengers
|
|
// ws6 Graphics | ws7 Office/Media | ws8 OBS/Security | ws9 Games | ws10 Proxy
|
|
|
|
"hyprland/workspaces": {
|
|
"disable-scroll-wraparound": true,
|
|
"smooth-scrolling-threshold": 1,
|
|
"enable-bar-scroll": true,
|
|
"format": "{icon}",
|
|
"show-special": true,
|
|
"special-visible-only": false,
|
|
"on-click": "activate",
|
|
"format-icons": {
|
|
"1": "",
|
|
"2": "",
|
|
"3": "",
|
|
"4": "",
|
|
"5": "",
|
|
"6": "",
|
|
"7": "",
|
|
"8": "",
|
|
"9": "",
|
|
"10": ""
|
|
}
|
|
},
|
|
|
|
//==========================================================================
|
|
// RIGHT: SYSTEM MONITOR
|
|
//==========================================================================
|
|
|
|
"cpu": {
|
|
"interval": 4,
|
|
"format": " {usage}%",
|
|
"states": {
|
|
"warning": 80,
|
|
"critical": 95
|
|
}
|
|
},
|
|
|
|
"temperature": {
|
|
"critical-threshold": 90,
|
|
"interval": 4,
|
|
"format": "{icon} {temperatureC}°",
|
|
"format-icons": ["", "", "", "", ""],
|
|
"tooltip": false
|
|
},
|
|
|
|
"custom/nvidia": {
|
|
"interval": 4,
|
|
"return-type": "json",
|
|
"exec": "~/.config/hypr/waybar/nvidia.sh",
|
|
"format": "<span size='x-large' rise='-2500'></span>{text}",
|
|
"tooltip": "true",
|
|
"tooltip-format": "{alt}"
|
|
},
|
|
|
|
// RAM + swap hidden in a drawer — hover to reveal swap
|
|
"group/storage": {
|
|
"orientation": "horizontal",
|
|
"drawer": {
|
|
"transition-duration": "500",
|
|
"transition-left-to-right": "true",
|
|
"children-class": "drawer-child"
|
|
},
|
|
"modules": ["memory#ram", "memory#swap"]
|
|
},
|
|
|
|
"memory#ram": {
|
|
"interval": 4,
|
|
"format": " {}%",
|
|
"states": {
|
|
"warning": 80,
|
|
"critical": 95
|
|
},
|
|
"tooltip-format": "{used}/{total} GiB"
|
|
},
|
|
|
|
"memory#swap": {
|
|
"interval": 16,
|
|
"format": " {swapPercentage}%",
|
|
"tooltip-format": "{swapUsed}/{swapTotal} GiB"
|
|
},
|
|
|
|
"disk": {
|
|
"interval": 16,
|
|
"format": " {percentage_used}%",
|
|
"tooltip-format": "Free {free}",
|
|
"on-click": "qdirstat & aplay ~/.config/sounds/interact.wav",
|
|
"states": {
|
|
"warning": 85,
|
|
"critical": 95
|
|
}
|
|
},
|
|
|
|
//==========================================================================
|
|
// RIGHT: NETWORK
|
|
//==========================================================================
|
|
|
|
"network#info": {
|
|
"interval": 2,
|
|
"format": " Offline",
|
|
"format-wifi": "{icon} {bandwidthDownBits}",
|
|
"format-ethernet": " {bandwidthDownBits}",
|
|
"min-length": 11,
|
|
"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": "GDK_BACKEND=x11 connman-gtk & aplay ~/.config/sounds/interact.wav",
|
|
"format-icons": ["", "", "", "", ""],
|
|
"states": {
|
|
"normal": 25
|
|
}
|
|
},
|
|
|
|
//==========================================================================
|
|
// RIGHT: AUDIO
|
|
//==========================================================================
|
|
|
|
"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}"
|
|
},
|
|
|
|
"pulseaudio#output": {
|
|
"format": "{icon} {volume}%",
|
|
"format-bluetooth": " {volume}%",
|
|
"format-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
|
|
},
|
|
|
|
//==========================================================================
|
|
// RIGHT: LIGHT / LANG / POWER
|
|
//==========================================================================
|
|
|
|
"backlight": {
|
|
"device": "intel_backlight",
|
|
"format": "{icon} {percent}%",
|
|
"format-icons": ["", "", "", "", ""],
|
|
"scroll-step": 2
|
|
},
|
|
|
|
"hyprland/language": {
|
|
"format": " {}",
|
|
"format-en": "EN",
|
|
"format-ru": "RU",
|
|
"tooltip": false
|
|
},
|
|
|
|
"custom/battery": {
|
|
"interval": 4,
|
|
"return-type": "json",
|
|
"exec": "~/.config/hypr/waybar/bat-pp.sh refresh",
|
|
"exec-on-event": true,
|
|
"format": "{text}%",
|
|
"on-click": "~/.config/hypr/waybar/bat-pp.sh toggle & aplay ~/.config/sounds/interact.wav",
|
|
"tooltip": "true",
|
|
"tooltip-format": "{alt}"
|
|
},
|
|
|
|
//==========================================================================
|
|
// RIGHT: CLOCK
|
|
//==========================================================================
|
|
|
|
"clock": {
|
|
"interval": 1,
|
|
"format": " {:%H:%M:%S}",
|
|
"format-alt": " {:%d.%m.%Y}",
|
|
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
|
|
"calendar": {
|
|
"weeks-pos": "right",
|
|
"mode": "month",
|
|
"format": {
|
|
"months": "<span color='#cba6f7'><b>{}</b></span>",
|
|
"days": "<span color='#cdd6f4'><b>{}</b></span>",
|
|
"weeks": "<span color='#94e2d5'> W{}</span>",
|
|
"weekdays": "<span color='#f9e2af'><b>{}</b></span>",
|
|
"today": "<span color='#f5e0dc'><b><u>{}</u></b></span>"
|
|
}
|
|
}
|
|
},
|
|
|
|
//==========================================================================
|
|
// SPACERS
|
|
//==========================================================================
|
|
|
|
"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 }
|
|
},
|
|
|
|
{
|
|
//==========================================================================
|
|
// INDICATOR BAR (battery overlay)
|
|
//==========================================================================
|
|
"layer": "top",
|
|
"position": "top",
|
|
"name": "indicator",
|
|
"passthrough": true,
|
|
"height": 30,
|
|
|
|
"margin-top": -29,
|
|
"margin-right": 24,
|
|
|
|
"modules-right": ["custom/batteryindicator"],
|
|
|
|
"custom/batteryindicator": {
|
|
"interval": 4,
|
|
"return-type": "json",
|
|
"tooltip": false,
|
|
"format": " ",
|
|
"exec": "~/.config/hypr/waybar/battery.sh bar"
|
|
}
|
|
}
|
|
]
|