2023-02-21 12:24:34 +01:00
|
|
|
{ config, pkgs, ... }:
|
2023-01-20 10:46:28 +01:00
|
|
|
{
|
2023-02-28 23:00:18 +01:00
|
|
|
imports = [
|
2023-03-04 21:22:42 +01:00
|
|
|
./hyprpaper.nix
|
|
|
|
./session.nix
|
|
|
|
./waybar.nix
|
2023-02-21 12:24:34 +01:00
|
|
|
];
|
2023-03-04 21:22:42 +01:00
|
|
|
wayland.windowManager.hyprland = {
|
|
|
|
enable = true;
|
|
|
|
extraConfig = builtins.readFile ./hyprland.conf; # todo nix config when available
|
|
|
|
};
|
|
|
|
|
2023-01-21 23:42:49 +01:00
|
|
|
home.sessionVariables = {
|
|
|
|
GRIM_DEFAULT_DIR = "~/Pictures/Screenshots/";
|
|
|
|
};
|
|
|
|
home.packages = with pkgs; [
|
|
|
|
pulseaudio # installed to have pactl
|
2023-01-23 12:02:36 +01:00
|
|
|
jq
|
2023-03-04 19:56:45 +01:00
|
|
|
libnotify
|
2023-01-21 23:42:49 +01:00
|
|
|
wofi
|
|
|
|
wl-clipboard
|
|
|
|
grim
|
|
|
|
slurp
|
2023-01-22 14:49:59 +01:00
|
|
|
swappy
|
2023-01-21 23:42:49 +01:00
|
|
|
];
|
|
|
|
|
2023-01-21 19:03:24 +01:00
|
|
|
xdg.configFile = {
|
2023-01-21 23:42:49 +01:00
|
|
|
"wofi/config".text = ''
|
|
|
|
allow_images = true
|
|
|
|
term = alacritty
|
|
|
|
'';
|
2023-01-21 12:55:13 +01:00
|
|
|
|
2023-01-21 23:42:49 +01:00
|
|
|
"wofi/style.css".text = ''
|
|
|
|
window {
|
|
|
|
margin: 0px;
|
|
|
|
border: 1px solid #${config.colorScheme.colors.base0D};
|
|
|
|
background-color: #${config.colorScheme.colors.base00};
|
2023-02-28 23:33:03 +01:00
|
|
|
border-radius: 15px;
|
2023-01-21 23:42:49 +01:00
|
|
|
}
|
|
|
|
#input {
|
|
|
|
margin: 5px;
|
|
|
|
border: none;
|
|
|
|
color: #${config.colorScheme.colors.base05};
|
|
|
|
background-color: #${config.colorScheme.colors.base02};
|
|
|
|
}
|
|
|
|
#inner-box,
|
|
|
|
#outer-box {
|
|
|
|
margin: 5px;
|
|
|
|
border: none;
|
|
|
|
background-color: #${config.colorScheme.colors.base00};
|
|
|
|
}
|
|
|
|
#text {
|
|
|
|
margin: 5px;
|
|
|
|
border: none;
|
|
|
|
color: #${config.colorScheme.colors.base05};
|
|
|
|
}
|
|
|
|
#entry {
|
|
|
|
background-color: #${config.colorScheme.colors.base00};
|
|
|
|
}
|
|
|
|
#entry:selected {
|
|
|
|
background-color: #${config.colorScheme.colors.base03};
|
|
|
|
}
|
|
|
|
'';
|
2023-01-22 14:49:59 +01:00
|
|
|
"swappy/config".text = ''
|
|
|
|
[Default]
|
|
|
|
save_dir = ~/Pictures/Screenshots/
|
|
|
|
early_exit = true
|
|
|
|
'';
|
2023-01-23 12:02:36 +01:00
|
|
|
"mako/do-not-disturb.sh".text = ''
|
|
|
|
if [[ $(makoctl mode) = 'default' ]];then
|
2023-03-04 19:56:45 +01:00
|
|
|
notify-send 'Enabled Do Not Disturb mode'
|
2023-01-23 12:02:36 +01:00
|
|
|
sleep 5
|
|
|
|
makoctl mode -s do-not-disturb
|
|
|
|
else
|
|
|
|
makoctl mode -s default
|
2023-03-04 19:56:45 +01:00
|
|
|
notify-send 'Disabled Do Not Disturb mode'
|
2023-01-23 12:02:36 +01:00
|
|
|
fi
|
|
|
|
'';
|
2023-01-21 23:42:49 +01:00
|
|
|
};
|
2023-01-20 21:43:16 +01:00
|
|
|
|
2023-03-02 19:01:48 +01:00
|
|
|
services.mako = {
|
2023-01-20 14:37:59 +01:00
|
|
|
enable = true;
|
2023-01-21 12:55:13 +01:00
|
|
|
backgroundColor = "#${config.colorScheme.colors.base02}FF";
|
|
|
|
borderRadius = 20;
|
2023-01-20 21:43:16 +01:00
|
|
|
textColor = "#${config.colorScheme.colors.base05}FF";
|
2023-01-21 12:55:13 +01:00
|
|
|
layer = "overlay";
|
|
|
|
defaultTimeout = 10000;
|
|
|
|
extraConfig = ''
|
|
|
|
[urgency=high]
|
|
|
|
background-color=#${config.colorScheme.colors.base08}
|
|
|
|
default-timeout=0
|
2023-01-23 12:02:36 +01:00
|
|
|
[mode=do-not-disturb]
|
|
|
|
invisible=1
|
2023-01-21 12:55:13 +01:00
|
|
|
'';
|
2023-01-20 14:37:59 +01:00
|
|
|
};
|
2023-01-20 10:46:28 +01:00
|
|
|
}
|