refactor(tazjin/dotfiles): move waybar configuration into Nix
Change-Id: Ia031fd755ecf451b0ef1f9e63f3aec8b56fe2d57 Reviewed-on: https://cl.tvl.fyi/c/depot/+/12448 Reviewed-by: tazjin <tazjin@tvl.su> Autosubmit: tazjin <tazjin@tvl.su> Tested-by: BuildkiteCI
This commit is contained in:
parent
863146295b
commit
7903d26054
7 changed files with 82 additions and 33 deletions
51
users/tazjin/dotfiles/waybar/config.nix
Normal file
51
users/tazjin/dotfiles/waybar/config.nix
Normal file
|
@ -0,0 +1,51 @@
|
|||
{ depot, pkgs, ... }:
|
||||
|
||||
let
|
||||
launcher = "${pkgs.xfce4-appfinder}/bin/xfce4-appfinder --disable-server";
|
||||
in
|
||||
{
|
||||
mainBar = {
|
||||
layer = "top";
|
||||
position = "bottom";
|
||||
modules-left = [ "image#start" "custom/start" ];
|
||||
|
||||
"image#start" = {
|
||||
path = "${depot.third_party.chicago95}/share/icons/Chicago95/panel/24/start-here.png";
|
||||
size = 24;
|
||||
on-click = "xfce4-appfinder --disable-server";
|
||||
};
|
||||
|
||||
"custom/start" = {
|
||||
format = " Start";
|
||||
on-click = "xfce4-appfinder --disable-server";
|
||||
};
|
||||
|
||||
modules-right = [ "pulseaudio" "backlight" "battery" "tray" "clock" ];
|
||||
|
||||
pulseaudio = {
|
||||
on-click = "pavucontrol";
|
||||
# Font "Awesome" speaker icons can't be made to render, I don't care why, emoji time.
|
||||
format = "{volume}% 🎧";
|
||||
format-muted = "{volume}% ";
|
||||
};
|
||||
|
||||
battery = {
|
||||
format = "{capacity}% {icon}";
|
||||
format-icons = [ "" "" "" "" "" ];
|
||||
};
|
||||
|
||||
backlight = {
|
||||
format = "{percent}% {icon}";
|
||||
format-icons = [ "" ];
|
||||
on-scroll-up = "light -A 1";
|
||||
on-scroll-down = "light -U 1";
|
||||
};
|
||||
|
||||
clock.format-alt = "{:%a, %d. %b %H:%M}";
|
||||
|
||||
tray = {
|
||||
icon-size = 20;
|
||||
spacing = 10;
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue