Skip to content

Instantly share code, notes, and snippets.

@s1341
Created May 10, 2023 05:40
Show Gist options
  • Save s1341/96b8cd89962c3c4308e07467d1b82ee4 to your computer and use it in GitHub Desktop.
Save s1341/96b8cd89962c3c4308e07467d1b82ee4 to your computer and use it in GitHub Desktop.
waybar config
[
{
"battery": {
"bat": "BAT0",
"format": "{icon} {capacity}%",
"format-charging": "󰂄 {capacity}%",
"format-icons": [
"󰁺",
"󰁻",
"󰁼",
"󰁽",
"󰁾",
"󰁿",
"󰂀",
"󰂁",
"󰂂",
"󰁹"
],
"interval": 10,
"on-click": ""
},
"clock": {
"format": "{:%d/%m %H:%M}",
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>"
},
"cpu": {
"format": " {usage}%",
"on-click": "/nix/store/8vwv6mgnhr3zr3mc3gzyp8gvnrdqdmp0-kitty-0.28.1/bin/kitty $SHELL -i -c /nix/store/7x0552m9xf66klnclc20psnbqzl7ml8i-htop-3.2.2/bin/htop"
},
"custom/currentplayer": {
"exec": "/nix/store/gidcin7pn0zvngisq1lzbfdfxp23mr5b-waybar-currentplayer/bin/waybar-currentplayer",
"format": "{icon}{}",
"format-icons": {
"Celluloid": "󰎁 ",
"No player active": " ",
"discord": " 󰙯 ",
"firefox": " ",
"google-chrome-stable": "󰖟",
"kdeconnect": "󰄡 ",
"ncspot": " 󰓇",
"qutebrowser": "󰖟",
"spotify": " 󰓇",
"sublimemusic": " "
},
"interval": 2,
"on-click": "/nix/store/lzhl9p1klr3148pnvf9g56n5i1p76nkz-playerctl-2.4.1/bin/playerctld shift",
"on-click-right": "/nix/store/lzhl9p1klr3148pnvf9g56n5i1p76nkz-playerctl-2.4.1/bin/playerctld unshift",
"return-type": "json"
},
"custom/hostname": {
"exec": "echo $USER@$(hostname)",
"on-click": "/nix/store/8vwv6mgnhr3zr3mc3gzyp8gvnrdqdmp0-kitty-0.28.1/bin/kitty"
},
"custom/menu": {
"exec": "/nix/store/l9xnnpqniwp96bdxqnpz38amyry3pj05-waybar-menu/bin/waybar-menu",
"on-click": "/nix/store/87cwj90kh0hh44193k1qxidv092rfvmb-fuzzel-1.9.1/bin/fuzzel --background-color=363536f0 --border-color=fc9253f0 --text-color=948ae2ff --selection-text-color=363536ff --selection-color=fc9253c0 --terminal=kitty",
"return-type": "json"
},
"custom/player": {
"exec": "/nix/store/lzhl9p1klr3148pnvf9g56n5i1p76nkz-playerctl-2.4.1/bin/playerctl metadata --format '{\"text\": \"{{artist}} - {{title}}\", \"alt\": \"{{status}}\", \"tooltip\": \"{{title}} ({{artist}} - {{album}})\"}' ",
"exec-if": "/nix/store/lzhl9p1klr3148pnvf9g56n5i1p76nkz-playerctl-2.4.1/bin/playerctl status",
"format": "{icon} {}",
"format-icons": {
"Paused": "󰏤 ",
"Playing": "󰐊",
"Stopped": "󰓛"
},
"interval": 2,
"max-length": 30,
"on-click": "/nix/store/lzhl9p1klr3148pnvf9g56n5i1p76nkz-playerctl-2.4.1/bin/playerctl play-pause",
"return-type": "json"
},
"height": 40,
"hyprland/language": {
"format-en": "EN",
"format-he": "HE"
},
"idle_inhibitor": {
"format": "{icon}",
"format-icons": {
"activated": "󰒳",
"deactivated": "󰒲"
}
},
"layer": "top",
"margin": "6",
"memory": {
"format": "󰍛 {}%",
"interval": 5,
"on-click": "/nix/store/8vwv6mgnhr3zr3mc3gzyp8gvnrdqdmp0-kitty-0.28.1/bin/kitty $SHELL -i -c /nix/store/7x0552m9xf66klnclc20psnbqzl7ml8i-htop-3.2.2/bin/htop"
},
"mode": "dock",
"modules-center": [
"cpu",
"memory",
"clock",
"pulseaudio",
"hyprland/language"
],
"modules-left": [
"custom/menu",
"wlr/workspaces",
"custom/currentplayer",
"custom/player",
"hyprland/window"
],
"modules-right": [
"network",
"battery",
"tray",
"custom/hostname"
],
"network": {
"format-disconnected": "",
"format-ethernet": "󰈁 Connected",
"format-wifi": " {essid}",
"interval": 3,
"on-click": "/nix/store/lwip4gca85zi4wqlrsf125ac8ngs8wp4-networkmanager_dmenu-2.1.0/bin/networkmanager_dmenu",
"tooltip-format": "{ifname}\n{ipaddr}/{cidr}\nUp: {bandwidthUpBits}\nDown: {bandwidthDownBits}"
},
"position": "top",
"pulseaudio": {
"format": "{icon} {volume}%",
"format-icons": {
"default": [
"",
"",
""
],
"headphone": "",
"headset": "󰋎",
"portable": ""
},
"format-muted": " 0%",
"on-click": "/nix/store/v2i9nkkp62w0lngyv0swnij4h104fsyb-pavucontrol-5.0/bin/pavucontrol"
},
"wlr/workspaces": {
"on-click": "activate"
}
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment