Table of Contents
This page contains tips for setting up your polybar environment in different distros, contributed by the community. Also check out the developer documentation.
If you run into any quirks in your distro, feel free to document them here.
Nix
You don't need the Nix distro to use the following, just the Nix package manager. It can be installed in any Linux distro and Mac OS.
How to use:
- Enable Flakes support in your Nix installation.
git clone
the polybar repo and create the below two files (flake.nix, flake.lock) in the root of the repo.- Run
nix develop
This will drop you into a shell with all the packages needed for polybar development installed.
flake.nix
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs";
};
outputs = { self, nixpkgs }:
let
pkgs = nixpkgs.legacyPackages.x86_64-linux;
in {
devShell.x86_64-linux =
pkgs.mkShell {
buildInputs = with pkgs; [
alsaLib
cairo.dev
cmake
curl.dev
i3
jsoncpp.dev
libmpdclient
libpulseaudio
libuv
pkg-config
sphinx
wirelesstools
xorg.libxcb
xorg.xcbproto
xorg.xcbutilimage
xorg.xcbutilwm.dev
];
};
};
}
flake.lock
{
"nodes": {
"nixpkgs": {
"locked": {
"lastModified": 1648400941,
"narHash": "sha256-82VdFzqvRY7oRVQyHW7+BYtwdOVH5hmVysYSV/SecF0=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "d56076aa39859f675bbdc64ea148664406db3278",
"type": "github"
},
"original": {
"owner": "NixOS",
"repo": "nixpkgs",
"type": "github"
}
},
"root": {
"inputs": {
"nixpkgs": "nixpkgs"
}
}
},
"root": "root",
"version": 7
}
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
- 🏠 Home
- ℹ️ Help
- ⚙️ Configuration
- 🎨 Formatting
- 🗛 Fonts
- 💥 Actions
- 🏗️ Compiling
- 🔧 Debugging your Config
- 💬 Inter process messaging
- 🤫 Known Issues
- 📦 Packaging Polybar
- For Developers:
- Modules: