2022-10-12 01:41:32 +03:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
2022-10-28 15:26:00 +03:00
|
|
|
let themeCfg = config.local.theme; in
|
2022-10-12 01:41:32 +03:00
|
|
|
{
|
|
|
|
home.packages = with pkgs; [
|
|
|
|
xclip # access x clipboard from a console
|
|
|
|
dmenu # menu for x window system
|
|
|
|
nitrogen # wallpaper manager
|
|
|
|
];
|
|
|
|
|
|
|
|
xsession = {
|
|
|
|
enable = true;
|
|
|
|
|
|
|
|
windowManager.xmonad = {
|
|
|
|
enable = true;
|
|
|
|
enableContribAndExtras = true;
|
2023-03-31 17:40:22 +03:00
|
|
|
|
|
|
|
haskellPackages = pkgs.unstable.haskellPackages;
|
|
|
|
extraPackages = (hp: [
|
|
|
|
hp.dbus
|
|
|
|
hp.monad-logger
|
|
|
|
]);
|
|
|
|
|
2022-10-28 15:26:00 +03:00
|
|
|
config = pkgs.substituteAll {
|
|
|
|
src = ./xmonad_config.hs;
|
|
|
|
inherit (themeCfg.bar) background mainText inactiveText;
|
|
|
|
inherit (themeCfg.window) activeBorder inactiveBorder;
|
|
|
|
inherit (themeCfg.highlights) critical warning success;
|
|
|
|
inherit (themeCfg.syntax) mark1 mark2 mark3;
|
2023-07-31 15:50:52 +03:00
|
|
|
kdbBrightnessScriptPath = "${./scripts/kdb_brightness.sh}";
|
2022-10-28 15:26:00 +03:00
|
|
|
};
|
2022-10-12 01:41:32 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
initExtra = ''
|
|
|
|
${pkgs.nitrogen}/bin/nitrogen --restore &
|
|
|
|
'';
|
|
|
|
};
|
2022-10-17 17:43:12 +03:00
|
|
|
|
|
|
|
services.flameshot = {
|
|
|
|
enable = true;
|
|
|
|
|
|
|
|
# See: https://github.com/flameshot-org/flameshot/blob/master/flameshot.example.ini
|
|
|
|
settings = {
|
|
|
|
General = {
|
|
|
|
disabledTrayIcon = true;
|
|
|
|
savePathFixed = true;
|
|
|
|
showDesktopNotification = false;
|
|
|
|
showSidePanelButton = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2022-10-12 01:41:32 +03:00
|
|
|
}
|