waybar config

This commit is contained in:
tuxwarrior
2024-05-01 07:16:55 -05:00
parent d7efc11302
commit 9730c6c854

View File

@@ -1,3 +1,7 @@
/*
klevstul
*/
{ {
"layer": "top" "layer": "top"
@@ -9,147 +13,152 @@
] ]
, "modules-center": , "modules-center":
[ [
"hyprland/window" /* display title of focused window */ //"hyprland/window" // display title of focused window
] ]
, , "modules-right":
modules-right = [ [
"idle_inhibitor" "idle_inhibitor"
"pulseaudio" , "pulseaudio"
"network" , "network"
"memory" , "memory"
"disk" , "disk"
"cpu" , "cpu"
"battery" , "battery"
"temperature" , "temperature"
"clock" , "clock"
]; ]
// https://github.com/Alexays/Waybar/wiki/Module:-Battery
# https://github.com/Alexays/Waybar/wiki/Module:-Battery , "battery":
"battery"= { {
"format" = "{capacity}% {icon}"; "format": "{capacity}% {icon}"
"format-icons" = ["" "" "" "" ""]; , "format-icons": ["", "", "", "", ""]
}; }
// # https://github.com/Alexays/Waybar/wiki/Module:-Clock
# https://github.com/Alexays/Waybar/wiki/Module:-Clock , "clock":
"clock"= { {
"format" = "{:%H:%M}  "; "format": "{:%H:%M}  "
"format-alt" = "{:%A, %B %d, %Y (%R)}  "; , "format-alt": "{:%A, %B %d, %Y (%R)}  "
"tooltip-format" = "<tt><small>{calendar}</small></tt>"; , "tooltip-format": "<tt><small>{calendar}</small></tt>"
"calendar" = { , "calendar":
"mode" = "year"; {
"mode-mon-col" = 3; "mode": "year"
"weeks-pos" = "right"; , "mode-mon-col": 3
"on-scroll" = 1; , "weeks-pos": "right"
"on-click-right" = "mode"; , "on-scroll": 1
"format"= { , "on-click-right": "mode"
"months" = "<span color='#ffead3'><b>{}</b></span>"; , "format":
"days" = "<span color='#ecc6d9'><b>{}</b></span>"; {
"weeks" = "<span color='#99ffdd'><b>W{}</b></span>"; "months": "<span color='#ffead3'><b>{}</b></span>"
"weekdays" = "<span color='#ffcc66'><b>{}</b></span>"; , "days": "<span color='#ecc6d9'><b>{}</b></span>"
"today" = "<span color='#ff6699'><b><u>{}</u></b></span>"; , "weeks": "<span color='#99ffdd'><b>W{}</b></span>"
}; , "weekdays": "<span color='#ffcc66'><b>{}</b></span>"
}; , "today": "<span color='#ff6699'><b><u>{}</u></b></span>"
"actions"= { }
"on-click-right" = "mode"; }
"on-click-forward" = "tz_up"; , "actions":
"on-click-backward" = "tz_down"; {
"on-scroll-up" = "shift_up"; "on-click-right": "mode"
"on-scroll-down" = "shift_down"; , "on-click-forward": "tz_up"
}; , "on-click-backward": "tz_down"
}; , "on-scroll-up": "shift_up"
, "on-scroll-down": "shift_down"
# https://wiki.hyprland.org/Useful-Utilities/Status-Bars/#window-title-is-missing }
# https://manpages.opensuse.org/Tumbleweed/waybar/waybar-hyprland-window.5.en.html }
"hyprland/window" = { // https://wiki.hyprland.org/Useful-Utilities/Status-Bars/#window-title-is-missing
"max-length" = 200; // https://manpages.opensuse.org/Tumbleweed/waybar/waybar-hyprland-window.5.en.html
"separate-outputs" = true; , "hyprland/window":
}; {
"max-length": 200
# https://github.com/Alexays/Waybar/wiki/Module:-Workspaces , "separate-outputs": true
# https://github.com/Alexays/Waybar/wiki/Module:-Hyprland }
"hyprland/workspaces" = { // https://github.com/Alexays/Waybar/wiki/Module:-Workspaces
format = "{icon}{name}"; // https://github.com/Alexays/Waybar/wiki/Module:-Hyprland
format-icons = { , "hyprland/workspaces":
default = " "; {
active = " ."; "format": "{icon}{name}"
urgent = " !"; , "format-icons":
}; {
on-scroll-up = "hyprctl dispatch workspace e+1"; "default": " "
on-scroll-down = "hyprctl dispatch workspace e-1"; , "active": " ."
}; , "urgent": " !"
}
# The idle_inhibitor module can inhibit idle behavior such as screen blanking, , "on-scroll-up": "hyprctl dispatch workspace e+1"
# locking, and screensaving, also known as "presentation mode". , "on-scroll-down": "hyprctl dispatch workspace e-1"
# https://github.com/Alexays/Waybar/wiki/Module:-Idle-Inhibitor }
"idle_inhibitor" = { // The idle_inhibitor module can inhibit idle behavior such as screen blanking,
"format" = "{icon}"; // locking, and screensaving, also known as "presentation mode".
"format-icons" = { // https://github.com/Alexays/Waybar/wiki/Module:-Idle-Inhibitor
"activated" = ""; , "idle_inhibitor":
"deactivated" = ""; {
}; "format": "{icon}"
}; , "format-icons":
{
# https://github.com/Alexays/Waybar/wiki/Module:-CPU "activated": ""
"cpu" = { , "deactivated": ""
"interval" = 10; }
"format" = "{}% "; }
"max-length" = 10; // https://github.com/Alexays/Waybar/wiki/Module:-CPU
}; , "cpu":
{
# https://github.com/Alexays/Waybar/wiki/Module:-Disk "interval": 10
"disk" = { , "format": "{}% "
"interval" = 30; , "max-length": 10
"format" = "{path}:{used}/{total} ({percentage_used}%)"; }
"path" = "/"; // https://github.com/Alexays/Waybar/wiki/Module:-Disk
}; , "disk":
{
# https://github.com/Alexays/Waybar/wiki/Module:-Memory "interval": 30
"memory" = { , "format": "{path}:{used}/{total} ({percentage_used}%)"
"interval" = 30; , "path": "/"
"format" = "{used:0.1f}/{total:0.1f}G ({}%) "; }
}; // https://github.com/Alexays/Waybar/wiki/Module:-Memory
, "memory":
# https://github.com/Alexays/Waybar/wiki/Module:-Network {
"network" = { "interval": 30
#"interface" = "wlp2s0"; , "format": "{used:0.1f}/{total:0.1f}G ({}%) "
"format" = "{ifname}"; }
"format-wifi" = "{essid} ({signalStrength}%) "; // https://github.com/Alexays/Waybar/wiki/Module:-Network
"format-ethernet" = "{ipaddr}/{cidr} 󰊗"; , "network":
"format-disconnected" = " "; # An empty format will hide the module. {
"tooltip-format" = "{ifname} via {gwaddr} 󰊗"; //"interface" = "wlp2s0";
"tooltip-format-wifi" = "{essid} ({signalStrength}%) "; "format": "{ifname}"
"tooltip-format-ethernet" = "{ifname} "; , "format-wifi": "{essid} ({signalStrength}%) "
"tooltip-format-disconnected" = "Disconnected"; , "format-ethernet": "{ipaddr}/{cidr} 󰊗"
"max-length" = 50; , "format-disconnected": " " // An empty format will hide the module
"on-click" = "nm-applet"; , "tooltip-format": "{ifname} via {gwaddr} 󰊗"
}; , "tooltip-format-wifi": "{essid} ({signalStrength}%) "
, "tooltip-format-ethernet": "{ifname} "
# https://github.com/Alexays/Waybar/wiki/Module:-PulseAudio , "tooltip-format-disconnected": "Disconnected"
"pulseaudio" = { , "max-length": 50
"format" = "{volume}% {icon}"; , "on-click": "nm-applet"
"format-bluetooth" = "{volume}% {icon}"; }
"format-muted" = ""; // https://github.com/Alexays/Waybar/wiki/Module:-PulseAudio
"format-icons" = { , "pulseaudio":
"headphone" = ""; {
"hands-free" = ""; "format": "{volume}% {icon}"
"headset" = ""; , "format-bluetooth": "{volume}% {icon}"
"phone" = ""; , "format-muted": ""
"portable" = ""; , "format-icons":
"car" = ""; {
"default" = ["" ""]; "headphone": ""
}; , "hands-free": ""
"scroll-step" = 1; , "headset": ""
"on-click" = "pavucontrol"; , "phone": ""
"ignored-sinks" = ["Easy Effects Sink"]; , "portable": ""
}; , "car": ""
, "default": ["", ""]
# https://github.com/Alexays/Waybar/wiki/Module:-Temperature }
"temperature" = { , "scroll-step": 1
# "thermal-zone" = 2; , "on-click": "pavucontrol"
# "hwmon-path" = "/sys/class/hwmon/hwmon2/temp1_input"; , "ignored-sinks": ["Easy Effects Sink"]
# "critical-threshold" = 80; }
# "format-critical" = "{temperatureC}°C "; // https://github.com/Alexays/Waybar/wiki/Module:-Temperature
"format" = "{temperatureC}°C "; , "temperature":
}; {
// "thermal-zone": 2
} // "hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input"
// "critical-threshold": 80
// "format-critical": "{temperatureC}°C "
"format": "{temperatureC}°C "
}
}