db2a8d979c
Waybar: Increase height and font size. Neovim: Fix LSP and buffer numbering.
125 lines
4.4 KiB
Plaintext
125 lines
4.4 KiB
Plaintext
{
|
|
"layer": "top", // Waybar at top layer
|
|
"position": "top", // Waybar position (top|bottom|left|right)
|
|
"height": 26, // Waybar height (to be removed for auto height)
|
|
// "width": 1280, // Waybar width
|
|
// Choose the order of the modules
|
|
"modules-left": ["idle_inhibitor", "sway/workspaces", "tray", "custom/media", "sway/mode"],
|
|
"modules-center": ["sway/window"],
|
|
"modules-right": ["custom/pvpn", "network", "pulseaudio", "cpu", "memory", "battery", "clock"],
|
|
// Modules configuration
|
|
"sway/workspaces": {
|
|
"disable-scroll": true,
|
|
//"all-outputs": true,
|
|
/* "format": "{name}{icon}", */
|
|
"format-icons": {
|
|
"1": " \uf120", // terminal
|
|
"2": " \uf121", // code
|
|
"3": " \ue007", // firefox-browser
|
|
"4": " \uf3ed", // shield-alt
|
|
"5": " \uf0c0", // users
|
|
"6": " \uf086", // comments
|
|
"7": "",
|
|
"8": "",
|
|
"9": "",
|
|
"10": " \uf51f", // compact-disc
|
|
}
|
|
},
|
|
"sway/window": {
|
|
"max-length": 64
|
|
},
|
|
"sway/mode": {
|
|
"format": "<span style=\"italic\">{}</span>"
|
|
},
|
|
"idle_inhibitor": {
|
|
"format": "{icon}",
|
|
"format-icons": {
|
|
"activated": "\uf06e", // eye
|
|
"deactivated": "\uf070" // eye-slash
|
|
},
|
|
"tooltip": false
|
|
},
|
|
"tray": {
|
|
"icon-size": 14,
|
|
"spacing": 8
|
|
},
|
|
"clock": {
|
|
"timezone": "Europe/Copenhagen",
|
|
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
|
|
"format": "{:%Y-%m-%d \uf783 %T \uf017}", // calendar-day, clock
|
|
"interval": 1
|
|
},
|
|
"cpu": {
|
|
"format": "{usage}% \uf2db", // microchip
|
|
"tooltip": true
|
|
},
|
|
"memory": {
|
|
"format": "{}% \uf538"
|
|
},
|
|
"temperature": {
|
|
//"thermal-zone": 2,
|
|
"hwmon-path": "/sys/class/hwmon/hwmon5/temp1_input",
|
|
"critical-threshold": 90,
|
|
"format-critical": "Critical! {temperatureC}°C {icon}",
|
|
"format": "{temperatureC}°C {icon}",
|
|
"format-icons": ["\uf2cb", "\uf76b", "\uf769"], // thermometer-empty, temperature-low, temperature-high
|
|
"tooltip": true
|
|
},
|
|
"battery": {
|
|
"states": {
|
|
"good": 95,
|
|
"warning": 20,
|
|
"critical": 10
|
|
},
|
|
"format": "{capacity}% {icon}",
|
|
"format-charging": "{capacity}% \uf5e7", // charging-station
|
|
"format-plugged": "{capacity}% \uf1e6", // plug
|
|
"format-alt": "{time} {icon}",
|
|
"format-icons": ["\uf244", "\uf243", "\uf242", "\uf241", "\uf240"] // battery-empty, battery-quarter, battery-half, battery-three-quarters, battery-full
|
|
},
|
|
"network": {
|
|
// "interface": "wlp2*", // (Optional) To force the use of this interface
|
|
"format-wifi": "{essid} ({signalStrength}%) ",
|
|
"format-ethernet": "{ifname}: {ipaddr}/{cidr} ",
|
|
"format-linked": "{ifname} (No IP) ",
|
|
"format-disconnected": "Disconnected \uf071" // exclamation-triangle
|
|
},
|
|
"pulseaudio": {
|
|
"scroll-step": 2, // %, can be a float
|
|
"format": "{volume}% {icon} {format_source}",
|
|
"format-bluetooth": "{volume}% {icon} {format_source}",
|
|
"format-bluetooth-muted": " {icon} {format_source}",
|
|
"format-muted": " {format_source}",
|
|
"format-source": "{volume}% ",
|
|
"format-source-muted": "",
|
|
"format-icons": {
|
|
"headphone": "",
|
|
"hands-free": "",
|
|
"headset": "",
|
|
"phone": "",
|
|
"portable": "",
|
|
"car": "",
|
|
"default": ["", "", ""]
|
|
},
|
|
"on-click": "/usr/bin/pavucontrol"
|
|
},
|
|
"custom/media": {
|
|
"format": "{icon} {}",
|
|
"return-type": "json",
|
|
"max-length": 64,
|
|
"format-icons": {
|
|
"chromium": "\uf1bc", // spotify (I use Spotify in my browser)
|
|
},
|
|
"escape": true,
|
|
// "exec": "$HOME/.config/waybar/mediaplayer.py 2> /dev/null" // Script in resources folder
|
|
"exec": "$HOME/.config/waybar/mediaplayer.py --player chromium 2> /dev/null" // Filter player based on name
|
|
},
|
|
"custom/pvpn": { // Custom status module for ProtonVPN
|
|
"format": "ProtonVPN {}",
|
|
"exec": "$HOME/.config/waybar/pvpn.sh",
|
|
"return-type": "json",
|
|
"interval": 5,
|
|
"on-click": "protonvpn refresh && env SUDO_USER=$USER doas protonvpn c -f"
|
|
}
|
|
}
|