2020-08-09 18:32:27 +00:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
let
|
2020-08-16 21:05:10 +00:00
|
|
|
cfg = config.elkowar.desktop;
|
2020-08-09 18:32:27 +00:00
|
|
|
in
|
|
|
|
{
|
2020-08-16 21:05:10 +00:00
|
|
|
options.elkowar.desktop = {
|
2020-08-09 18:32:27 +00:00
|
|
|
enable = lib.mkEnableOption "Desktop configuration enabled";
|
|
|
|
};
|
|
|
|
|
2020-08-16 21:05:10 +00:00
|
|
|
imports = [ ./desktop ];
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-08-09 18:32:27 +00:00
|
|
|
config = lib.mkIf cfg.enable {
|
|
|
|
home.packages = with pkgs; [
|
2020-08-25 22:26:00 +00:00
|
|
|
(scr.override { extraPackages = [ rofi ]; })
|
2020-09-20 08:29:51 +00:00
|
|
|
my-st
|
2020-08-25 22:26:00 +00:00
|
|
|
mmutils
|
|
|
|
liquidctl
|
|
|
|
bashtop
|
2020-08-09 18:32:27 +00:00
|
|
|
cool-retro-term
|
|
|
|
gromit-mpx
|
2020-08-16 21:05:10 +00:00
|
|
|
dragon-drop
|
2020-08-18 13:20:00 +00:00
|
|
|
polybarFull
|
|
|
|
discord
|
2020-10-19 15:40:50 +00:00
|
|
|
pinta
|
2020-08-09 18:32:27 +00:00
|
|
|
#hyper-haskell
|
|
|
|
];
|
|
|
|
|
|
|
|
|
2020-08-16 21:05:10 +00:00
|
|
|
elkowar.desktop = {
|
|
|
|
gtk.enable = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
elkowar.programs = {
|
|
|
|
alacritty.enable = true;
|
|
|
|
rofi.enable = true;
|
2020-08-18 22:25:19 +00:00
|
|
|
firefox.enable = false;
|
2020-08-16 21:05:10 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
programs = {
|
2020-08-09 18:32:27 +00:00
|
|
|
mpv = {
|
|
|
|
enable = true;
|
|
|
|
bindings = {
|
|
|
|
WHEEL_UP = "add volume 5";
|
|
|
|
WHEEL_DOWN = "add volume -5";
|
|
|
|
WHEEL_LEFT = "seek -3";
|
|
|
|
WHEEL_RIGHT = "seek 3";
|
|
|
|
h = "seek -3";
|
|
|
|
l = "seek 3";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2020-08-16 21:05:10 +00:00
|
|
|
feh = {
|
|
|
|
enable = true;
|
|
|
|
keybindings = { zoom_in = "plus"; zoom_out = "minus"; };
|
|
|
|
};
|
|
|
|
|
2020-08-09 18:32:27 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
services = {
|
|
|
|
mpd = {
|
|
|
|
enable = true;
|
|
|
|
musicDirectory = "/home/leon/Downloads/music";
|
|
|
|
};
|
|
|
|
udiskie.enable = true;
|
2020-09-20 08:29:51 +00:00
|
|
|
kdeconnect = {
|
|
|
|
enable = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
dunst =
|
|
|
|
let dunst_settings = {
|
|
|
|
geometry = "500x5-30+50";
|
|
|
|
background = cfg.colors.primary.bg_darker;
|
|
|
|
foreground = cfg.colors.primary.foreground;
|
|
|
|
padding = "20px";
|
|
|
|
horizontal_padding = "20px";
|
|
|
|
font = "Terminus (TTF)";
|
|
|
|
};
|
|
|
|
in
|
|
|
|
{
|
|
|
|
enable = true;
|
|
|
|
settings.global = dunst_settings;
|
|
|
|
settings.urgency_normal = dunst_settings;
|
|
|
|
settings.urgency_low = dunst_settings;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
xresources.properties = with config.elkowar.desktop.colors; {
|
|
|
|
"Xcursor.size" = "16";
|
|
|
|
"Xcursor.theme" = "capitaine-cursors-light";
|
|
|
|
"Xft.autohint" = "0";
|
|
|
|
"Xft.antialias" = "1";
|
|
|
|
"Xft.hinting" = "true";
|
|
|
|
"Xft.hintstyle" = "hintslight";
|
|
|
|
"Xft.dpi" = "96";
|
|
|
|
"Xft.rgba" = "rgb";
|
|
|
|
"Xft.lcdfilter" = "lcddefault";
|
|
|
|
|
|
|
|
"st.font" = "Terminus (TTF):pixelsize=12";
|
|
|
|
"*.background" = primary.background;
|
|
|
|
"*.foreground" = primary.foreground;
|
|
|
|
"*.color0" = normal.black;
|
|
|
|
"*.color1" = normal.red;
|
|
|
|
"*.color2" = normal.green;
|
|
|
|
"*.color3" = normal.yellow;
|
|
|
|
"*.color4" = normal.blue;
|
|
|
|
"*.color5" = normal.magenta;
|
|
|
|
"*.color6" = normal.cyan;
|
|
|
|
"*.color7" = normal.white;
|
|
|
|
"*.color8" = bright.black;
|
|
|
|
"*.color9" = bright.red;
|
|
|
|
"*.color10" = bright.green;
|
|
|
|
"*.color11" = bright.yellow;
|
|
|
|
"*.color12" = bright.blue;
|
|
|
|
"*.color13" = bright.magenta;
|
|
|
|
"*.color14" = bright.cyan;
|
|
|
|
"*.color15" = bright.white;
|
2020-08-09 18:32:27 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|