Skip to content

Instantly share code, notes, and snippets.

@xetrics
Last active May 4, 2023 22:48
Show Gist options
  • Save xetrics/5006a00487984281353feaef9d1220ea to your computer and use it in GitHub Desktop.
Save xetrics/5006a00487984281353feaef9d1220ea to your computer and use it in GitHub Desktop.
{
"layer": "top",
"position": "top",
"mod": "dock",
"exclusive": true,
"passthrough": false,
"gtk-layer-shell": true,
"height": 30,
"spacing": 22,
"modules-left": ["wlr/workspaces"],
"modules-center": ["hyprland/window"],
"modules-right": ["cpu", "memory", "network", "pulseaudio", "clock"],
"wlr/workspaces": {
"format": "{icon}",
"all-outputs": true,
"disable-scroll": true,
"on-click": "activate",
"format-icons": {
"8": "",
"9": "",
"10": ""
},
"sort-by-number": true
},
"hyprland/window": {
"max-length": 30
},
"cpu": {
"interval": 10,
"format": " {usage}%"
},
"memory": {
"interval": 10,
"format": " {percentage}%"
},
"network": {
"format-ethernet": " {ifname}",
"format-disconnected": "",
"tooltip-format-ethernet": "{ipaddr}"
},
"clock": {
"format": "{:%I:%M %p}"
},
"pulseaudio": {
"format": "{icon}",
"format-muted": "",
"format-icons": {
"default": ["", "", ""]
},
"on-click-right": "pavucontrol",
"on-click": "~/.config/waybar/scripts/volume --toggle",
"scroll-step": 5,
"on-scroll-up": "~/.config/waybar/scripts/volume --inc",
"on-scroll-down": "~/.config/waybar/scripts/volume --dec",
"tooltip": true,
"tooltip-format": "{icon} at {volume}%"
}
}
* {
border: none;
min-height: 0;
font-family: "SF Pro Rounded", "Font Awesome 6 Free";
font-size: 14px;
font-weight: 500;
}
window#waybar {
background: rgba(0, 0, 0, 0.5);
}
.modules-left {
margin-left: 8px;
}
.modules-right {
margin-right: 8px;
}
#custom-launch_wofi {
color: #fff;
}
#workspaces {
padding: 4px;
}
#workspaces button {
padding: 3px;
margin-right: 6px;
}
#workspaces button.active {
/* background: #3a7f96;
color: #fff; */
animation-name: fade;
animation-duration: 500ms;
animation-timing-function: linear;
animation-fill-mode: forwards;
}
@keyframes fade {
to {
background: rgba(229, 94, 156, 0.5);
color: #fff;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment