convertablet/configs/waybar/config-tablet
Yuki Joou 2049494676 configs: Added sample waybar config
This also adds a few lines to the example hooks to toggle between the
configs depending on the state of the computer
2023-07-21 02:54:09 +02:00

103 lines
2.4 KiB
Text

[
{
// "layer": "top", // Waybar at top layer
// "position": "bottom", // Waybar position (top|bottom|left|right)
"height": 40, // Waybar height (to be removed for auto height)
// "width": 1280, // Waybar width
"spacing": 0, // Gaps between modules (4px)
// Choose the order of the modules
"modules-left": ["sway/workspaces", "sway/mode", "sway/scratchpad"],
"modules-center": ["sway/window"],
"modules-right": ["custom/close", "battery", "clock"],
// Modules configuration
"sway/mode": {
"format": "<span style=\"italic\">{}</span>"
},
"sway/scratchpad": {
"format": "{icon} {count}",
"show-empty": false,
"format-icons": ["", ""],
"tooltip": true,
"tooltip-format": "{app}: {title}"
},
"custom/close": {
"exec": "~/.config/waybar/close-module.sh",
"on-click": "swaymsg kill",
"restart-interval": 1
},
"clock": {
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
"format-alt": "{:%Y-%m-%d}"
},
"cpu": {
"format": "PROC {usage}%",
"tooltip": false
},
"memory": {
"format": "MEM {}%"
},
"temperature": {
"thermal-zone": 2,
// "hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input",
"critical-threshold": 80,
// "format-critical": "{temperatureC}°C {icon}",
"format": "{temperatureC}°C"
},
"backlight": {
// "device": "acpi_video1",
"format": "BKL {percent}%"
},
"battery": {
"states": {
// "good": 95,
"warning": 30,
"critical": 15
},
"format": "{capacity}%",
"format-charging": "+{capacity}%",
"format-plugged": "+{capacity}%"
// "format-good": "", // An empty format will hide the module
// "format-full": "",
}
},
{
"position": "bottom",
"height": 40,
"modules-left": ["custom/launcher"],
"modules-right": ["custom/volume-plus", "custom/volume-minus", "custom/bright-plus", "custom/bright-minus", "tray"],
"custom/launcher": {
"format": "APP",
"on-click": "pkill rofi || rofi -show combi -combi-modes drun"
},
"custom/volume-plus": {
"format": "🔊",
"on-click": "wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+"
},
"custom/volume-minus": {
"format": "🔉",
"on-click": "wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-"
},
"custom/bright-plus": {
"format": "🌞+",
"on-click": "light -A 5"
},
"custom/bright-minus": {
"format": "🌞-",
"on-click": "light -U 5"
},
"tray": {
"icon-size": 22,
"spacing": 10
},
}
]