Skip to content

Instantly share code, notes, and snippets.

@enko
Created April 18, 2019 13:24
Show Gist options
  • Save enko/a22b44cd51a441d2e1f37669e48344c5 to your computer and use it in GitHub Desktop.
Save enko/a22b44cd51a441d2e1f37669e48344c5 to your computer and use it in GitHub Desktop.
{
"layer": "top", // Waybar at top layer
// "position": "bottom", // Waybar at the bottom of your screen
"height": 60, // Waybar height
// "width": 1280, // Waybar width
// Choose the order of the modules
"modules-left": ["sway/workspaces", "sway/mode"],
"modules-right": ["idle_inhibitor", "pulseaudio", "network", "battery", "clock", "tray"],
// Modules configuration
"sway/workspaces": {
"disable-scroll": true,
"all-outputs": false,
"format": "{icon} {name}",
"format-icons": {
"term": "๐Ÿ“Ÿ",
"web": "๐Ÿ•ธ๏ธ",
"comm": "โœจ",
"emacs": "๐Ÿง™",
"music": "๐ŸŽง",
"pwsafe": "๐Ÿ”",
"urgent": "๏ช",
"focused": "๏†’",
"default": "๏„‘"
}
},
"sway/mode": {
"format": "<span style=\"italic\">{}</span>"
},
"idle_inhibitor": {
"format": "{icon}",
"format-icons": {
"activated": "๏ฎ",
"deactivated": "๏ฐ"
}
},
"tray": {
"icon-size": 32,
"spacing": 10
},
"clock": {
"tooltip-format": "{:%Y-%m-%d | %H:%M}",
"format": "{:%Y-%m-%d %H:%M}"
},
"cpu": {
"format": "{usage}% ๏‹›"
},
"memory": {
"format": "{}% ๏ƒ‰"
},
"backlight": {
// "device": "acpi_video1",
"format": "{percent}% {icon}",
"format-icons": ["๏†…", "๏„‘"]
},
"battery": {
"states": {
// "good": 95,
"warning": 30,
"critical": 15
},
"format": "{capacity}% {icon}",
// "format-good": "", // An empty format will hide the module
// "format-full": "",
"format-icons": ["๏‰„", "๏‰ƒ", "๏‰‚", "๏‰", "๏‰€"]
},
"battery#bat2": {
"bat": "BAT2"
},
"network": {
// "interface": "wlp2s0", // (Optional) To force the use of this interface
"format-wifi": "{essid} ({signalStrength}%) ๏‡ซ",
"format-ethernet": "{ifname}: {ipaddr}/{cidr} ๏ƒ",
"format-disconnected": "Disconnected โš "
},
"pulseaudio": {
//"scroll-step": 1,
"format": "{volume}% {icon}",
"format-bluetooth": "{volume}% {icon}๏Š”",
"format-muted": "๏€ฆ",
"format-icons": {
"headphones": "๏€ฅ",
"handsfree": "๏–",
"headset": "๏–",
"phone": "๏‚•",
"portable": "๏‚•",
"car": "๏†น",
"default": ["๏€ง", "๏€จ"]
},
"on-click": "pavucontrol"
},
"custom/spotify": {
"format": "๏†ผ {}",
"max-length": 40,
"exec": "$HOME/.config/waybar/mediaplayer.py 2> /dev/null" // Script in resources folder
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment