tvl-depot/users/grfn/system/home/modules/alsi.nix
Vincent Ambo aa122cbae7 style: format entire depot with nixpkgs-fmt
This CL can be used to compare the style of nixpkgs-fmt against other
formatters (nixpkgs, alejandra).

Change-Id: I87c6abff6bcb546b02ead15ad0405f81e01b6d9e
Reviewed-on: https://cl.tvl.fyi/c/depot/+/4397
Tested-by: BuildkiteCI
Reviewed-by: sterni <sternenseemann@systemli.org>
Reviewed-by: lukegb <lukegb@tvl.fyi>
Reviewed-by: wpcarro <wpcarro@gmail.com>
Reviewed-by: Profpatsch <mail@profpatsch.de>
Reviewed-by: kanepyork <rikingcoding@gmail.com>
Reviewed-by: tazjin <tazjin@tvl.su>
Reviewed-by: cynthia <cynthia@tvl.fyi>
Reviewed-by: edef <edef@edef.eu>
Reviewed-by: eta <tvl@eta.st>
Reviewed-by: grfn <grfn@gws.fyi>
2022-01-31 16:11:53 +00:00

58 lines
2 KiB
Nix

{ config, lib, pkgs, ... }:
{
home.packages = [ config.lib.depot.third_party.alsi ];
xdg.configFile."alsi/alsi.logo" = {
source = ./nixos-logo.txt;
force = true;
};
xdg.configFile."alsi/alsi.conf" = {
force = true;
text = ''
#!${pkgs.perl}/bin/perl
scalar {
ALSI_VERSION => "0.4.8",
COLORS_FILE => "/home/grfn/.config/alsi/alsi.colors",
DE_FILE => "/home/grfn/.config/alsi/alsi.de",
DEFAULT_COLOR_BOLD => "blue",
DEFAULT_COLOR_NORMAL => "blue",
DF_COMMAND => "df -Th -x sys -x tmpfs -x devtmpfs &>/dev/stdout",
GTK2_RC_FILE => "/home/grfn/.gtkrc-2.0",
GTK3_RC_FILE => "/home/grfn/.config/gtk-3.0/settings.ini",
LOGO_FILE => "/home/grfn/.config/alsi/alsi.logo",
OUTPUT_FILE => "/home/grfn/.config/alsi/alsi.output",
# PACKAGES_PATH => "/var/lib/pacman/local/",
PS_COMMAND => "ps -A",
USAGE_COLORS => 0,
USAGE_COLORS_BOLD => 0,
USAGE_PRECENT_GREEN => 50,
USAGE_PRECENT_RED => 100,
USAGE_PRECENT_YELLOW => 85,
USE_LOGO_FROM_FILE => 1,
USE_VALUES_COLOR => 0,
WM_FILE => "/home/grfn/.config/alsi/alsi.wm",
}
'';
};
xdg.configFile."alsi/alsi.colors".text = ''
#!${pkgs.perl}/bin/perl
# Colors for alsi
scalar {
black => {normal => "\e[0;30m", bold => "\e[1;30m"},
red => {normal => "\e[0;31m", bold => "\e[1;31m"},
green => {normal => "\e[0;32m", bold => "\e[1;32m"},
yellow => {normal => "\e[0;33m", bold => "\e[1;33m"},
default => {normal => "\e[0;34m", bold => "\e[1;34m"},
blue => {normal => "\e[0;34m", bold => "\e[1;34m"},
purple => {normal => "\e[0;35m", bold => "\e[1;35m"},
cyan => {normal => "\e[0;36m", bold => "\e[1;36m"},
white => {normal => "\e[0;37m", bold => "\e[1;37m"},
reset => "\e[0m",
}
'';
}