system/home/modules/window_manager/xmonad.nix

49 lines
1.1 KiB
Nix
Raw Normal View History

2022-10-12 01:41:32 +03:00
{ config, lib, pkgs, ... }:
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;
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;
};
2022-10-12 01:41:32 +03:00
extraPackages = (hp: [
hp.dbus
hp.monad-logger
]);
};
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
}