264 lines
8.3 KiB
Plaintext
264 lines
8.3 KiB
Plaintext
{
|
|
"layer": "top", // Waybar at top layer
|
|
"position": "top", // Waybar position (top|bottom|left|right)
|
|
|
|
// "height": 36, // Waybar height (to be removed for auto height)
|
|
// Archived modules
|
|
// "custom/gpu", "custom/weather","sway/window", "custom/gpu", "custom/media",
|
|
// Choose the order of the modules
|
|
|
|
"modules-left": [
|
|
"clock#time",
|
|
"clock#date",
|
|
"custom/arrow1",
|
|
"custom/pacman",
|
|
"custom/arrow2",
|
|
//"idle_inhibitor",
|
|
"wlr/workspaces",
|
|
"custom/arrow3",
|
|
],
|
|
"modules-center": [
|
|
"custom/arrow4",
|
|
"hyprland/window",
|
|
"custom/arrow5"
|
|
],
|
|
"modules-right": [
|
|
"custom/arrow6",
|
|
//"custom/cpugovernor",
|
|
"battery",
|
|
"custom/arrow7",
|
|
"network",
|
|
"bluetooth",
|
|
"custom/arrow8",
|
|
"pulseaudio",
|
|
"custom/kdeconnect",
|
|
"tray"
|
|
],
|
|
|
|
// Modules configuration
|
|
"hyprland/window": {
|
|
"format": "{}",
|
|
},
|
|
"keyboard-state": {
|
|
"numlock": true,
|
|
"capslock": true,
|
|
"format": {
|
|
"numlock": "N {icon}",
|
|
"capslock": "C {icon}"
|
|
},
|
|
"format-icons": {
|
|
"locked": "",
|
|
"unlocked": ""
|
|
}
|
|
},
|
|
"battery": {
|
|
"states": {
|
|
"good": 95,
|
|
"warning": 30,
|
|
"critical": 20
|
|
},
|
|
"format": "{icon} {capacity}%",
|
|
"format-charging": " {capacity}%",
|
|
"format-plugged": " {capacity}%",
|
|
"format-alt": "{time} {icon}",
|
|
"format-icons": ["", "", "", "", "", "", "", "", "", "", ""]
|
|
},
|
|
"bluetooth": {
|
|
// "controller": "controller1", // specify the alias of the controller if there are more than 1 on the system
|
|
"format": " {status}",
|
|
"format-disabled": "", // an empty format will hide the module
|
|
"format-connected": " {num_connections} connected",
|
|
"tooltip-format": "{controller_alias}\t{controller_address}",
|
|
"tooltip-format-connected": "{controller_alias}\t{controller_address}\n\n{device_enumerate}",
|
|
"tooltip-format-enumerate-connected": "{device_alias}\t{device_address}"
|
|
},
|
|
"idle_inhibitor": {
|
|
"format": "{icon}",
|
|
"format-icons": {
|
|
"activated": "",
|
|
"deactivated": ""
|
|
},
|
|
"tooltip": "true"
|
|
},
|
|
"tray": {
|
|
//"icon-size": 14,
|
|
"spacing": 4
|
|
},
|
|
"clock#time": {
|
|
"interval": 10,
|
|
"format": " {:%H:%M}",
|
|
"tooltip": false
|
|
},
|
|
"clock#date": {
|
|
"interval": 20,
|
|
"format": "{: %a %e/%m}",
|
|
// "tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
|
|
//"today-format": "<b>{}</b>",
|
|
"on-click": "gnome-calendar"
|
|
},
|
|
"temperature": {
|
|
//"thermal-zone": 1,
|
|
"interval": "1",
|
|
"hwmon-path": "/sys/class/hwmon/hwmon3/temp1_input",
|
|
"critical-threshold": 75,
|
|
"format-critical": " {temperatureC}°C",
|
|
"format": "{icon} {temperatureC}°C",
|
|
"format-icons": ["", "", ""],
|
|
"max-length": 8,
|
|
"min-length": 7,
|
|
"tooltip": false
|
|
},
|
|
"cpu": {
|
|
"interval": 5,
|
|
"format": " {max_frequency:1}GHz {usage:2}%",
|
|
"on-click": "kitty -e htop --sort-key PERCENT_CPU",
|
|
"tooltip": false
|
|
},
|
|
"custom/gpu": {
|
|
"exec": "$HOME/.config/waybar/custom_modules/custom-gpu-lite.sh",
|
|
"return-type": "json",
|
|
"format": " {}",
|
|
"interval": 5,
|
|
"tooltip": "{tooltip}",
|
|
"on-click": "powerupp"
|
|
},
|
|
"network": {
|
|
// "interface": "wlan0", // (Optional) To force the use of this interface,
|
|
"format-wifi": "<span color=\"#ebdbb2\"></span> {essid}",
|
|
"format-ethernet": "{ifname}: {ipaddr}/{cidr} ",
|
|
"format-linked": "{ifname} (No IP) ",
|
|
"format-disconnected": "",
|
|
"format-alt": "{ifname}: {ipaddr}/{cidr}",
|
|
"family": "ipv4",
|
|
"tooltip-format-wifi": " {ifname} @ {essid}\nIP: {ipaddr}\nStrength: {signalStrength}%\nFreq: {frequency}MHz\n {bandwidthUpBits} {bandwidthDownBits}",
|
|
"tooltip-format-ethernet": " {ifname}\nIP: {ipaddr}\n {bandwidthUpBits} {bandwidthDownBits}",
|
|
},
|
|
"custom/kdeconnect": {
|
|
"exec": "$HOME/.config/waybar/custom_modules/custom-kdeconnect.sh battery",
|
|
"format": " {}",
|
|
"interval": 60,
|
|
"on-click": "$HOME/.config/waybar/custom_modules/custom-kdeconnect.sh ring"
|
|
},
|
|
"pulseaudio": {
|
|
"scroll-step": 3, // %, can be a float
|
|
"format": "{icon} {volume:2}% {format_source}",
|
|
"format-bluetooth": "{volume}% {icon} {format_source}",
|
|
"format-bluetooth-muted": " {icon} {format_source}",
|
|
"format-muted": " {format_source}",
|
|
"format-source": "",
|
|
"format-source-muted": "<span color=\"#fb4833\"></span>",
|
|
"format-icons": {
|
|
"headphone": "",
|
|
"hands-free": "",
|
|
"headset": "",
|
|
"phone": "",
|
|
"portable": "",
|
|
"car": "",
|
|
"default": ["", "", ""]
|
|
},
|
|
"on-click": "pavucontrol",
|
|
"on-click-right": "pactl set-source-mute @DEFAULT_SOURCE@ toggle"
|
|
},
|
|
"custom/pacman": {
|
|
"format": "<u>↓</u> {}",
|
|
"interval": 3600, // every hour
|
|
"exec": "yay -Qu | wc -l", // # of updates
|
|
"exec-if": "exit 0", // always run; consider advanced run conditions
|
|
"on-click": "alacritty -e 'yay'; pkill -SIGRTMIN+8 waybar", // update system
|
|
"signal": 8,
|
|
"max-length": 5,
|
|
"min-length": 3
|
|
},
|
|
"custom/weather": {
|
|
"exec": "curl 'https://wttr.in/?format=1'",
|
|
"interval": 3600
|
|
},
|
|
"custom/cpugovernor": {
|
|
"format": "{icon}",
|
|
"interval": "once",
|
|
"return-type": "json",
|
|
"exec": "$HOME/.config/waybar/custom_modules/cpugovernor.sh",
|
|
"min-length": 2,
|
|
"max-length": 3,
|
|
"signal": 8,
|
|
"format-icons": {
|
|
"perf": "",
|
|
"ondemand": ""
|
|
},
|
|
"on-click": "$HOME/.config/waybar/custom_modules/cpugovernor.sh switch"
|
|
// Requires cpupower to switch governors
|
|
},
|
|
"custom/playerctl": {
|
|
"exec": "$HOME/.config/waybar/custom_modules/media-player-status.py",
|
|
"return-type": "json",
|
|
"on-click": "playerctl play-pause",
|
|
},
|
|
"custom/media": {
|
|
"format": "{icon} {}",
|
|
"return-type": "json",
|
|
"max-length": 40,
|
|
"format-icons": {
|
|
"spotify": "",
|
|
"default": "🎜"
|
|
},
|
|
"escape": false,
|
|
"exec": "$HOME/.config/waybar/custom_modules/mediaplayer.py 2> /dev/null" // Script in resources folder
|
|
// "exec": "$HOME/.config/waybar/mediaplayer.py --player spotify 2> /dev/null" // Filter player based on
|
|
},
|
|
"custom/scratchpad-indicator": {
|
|
"interval": 3,
|
|
"return-type": "json",
|
|
"exec": "swaymsg -t get_tree | jq --unbuffered --compact-output '( select(.name == \"root\") | .nodes[] | select(.name == \"__i3\") | .nodes[] | select(.name == \"__i3_scratch\") | .focus) as $scratch_ids | [.. | (.nodes? + .floating_nodes?) // empty | .[] | select(.id |IN($scratch_ids[]))] as $scratch_nodes | { text: \"\\($scratch_nodes | length)\", tooltip: $scratch_nodes | map(\"\\(.app_id // .window_properties.class) (\\(.id)): \\(.name)\") | join(\"\\n\") }'",
|
|
"format": "{} ",
|
|
"on-click": "exec swaymsg 'scratchpad show'",
|
|
"on-click-right": "exec swaymsg 'move scratchpad'"
|
|
},
|
|
"custom/arrow1": {
|
|
"format": "",
|
|
"tooltip": false
|
|
},
|
|
"custom/arrow2": {
|
|
"format": "",
|
|
"tooltip": false
|
|
},
|
|
|
|
"custom/arrow3": {
|
|
"format": "",
|
|
"tooltip": false
|
|
},
|
|
|
|
"custom/arrow4": {
|
|
"format": "",
|
|
"tooltip": false
|
|
},
|
|
|
|
"custom/arrow5": {
|
|
"format": "",
|
|
"tooltip": false
|
|
},
|
|
|
|
"custom/arrow6": {
|
|
"format": "",
|
|
"tooltip": false
|
|
},
|
|
|
|
"custom/arrow7": {
|
|
"format": "",
|
|
"tooltip": false
|
|
},
|
|
|
|
"custom/arrow8": {
|
|
"format": "",
|
|
"tooltip": false
|
|
},
|
|
|
|
"custom/arrow9": {
|
|
"format": "",
|
|
"tooltip": false
|
|
},
|
|
|
|
"custom/arrow10": {
|
|
"format": "",
|
|
"tooltip": false
|
|
}
|
|
} |