dotfiles/home/ags/default.nix

156 lines
3.2 KiB
Nix
Raw Normal View History

2024-07-05 22:46:16 +02:00
{ inputs, pkgs, config, ... }:
2024-07-05 01:33:59 +02:00
{
imports = [ inputs.ags.homeManagerModules.default ];
2024-07-05 18:24:53 +02:00
home.packages = [
pkgs.adw-gtk3
pkgs.papirus-icon-theme
];
2024-07-05 01:33:59 +02:00
programs.ags = {
enable = true;
extraPackages = with pkgs; [
gtksourceview
webkitgtk
accountsservice
];
};
2024-07-05 22:46:16 +02:00
home.file."${config.xdg.configHome}/ags" = {
source = ./files;
recursive = true;
};
home.file."${config.xdg.configHome}/ags/settings.json".text = pkgs.lib.mkDefault (builtins.toJSON {
2024-07-05 23:07:29 +02:00
temperature-cmd = "bash -c 'sensors | grep Package | cut -c17-23'";
2024-07-06 00:01:45 +02:00
enable-battery = true;
2024-07-05 22:46:16 +02:00
});
2024-07-05 22:52:38 +02:00
home.file."${config.xdg.configHome}/ags/style.css".text = ''
window.bar {
background-color: rgba(0, 0, 0, 0.2);
font-size: 1em;
font-family: "Noto Sans", "FontAwesome";
}
.systray-item {
margin-left: 0.4em;
margin-right: 0.4em;
}
.systray {
2024-07-05 23:07:29 +02:00
margin-left: 0.6em;
2024-07-05 22:52:38 +02:00
}
.window-box {
margin-bottom: 0.3em;
margin-top: 0.2em;
}
.clients box {
margin-right: 0.3em;
}
2024-07-06 00:22:01 +02:00
.battery-item {
padding-left: 0.6em;
padding-right: 0.6em;
border-radius: 0.3em;
2024-07-06 01:11:33 +02:00
background: #1f2430;
2024-07-06 00:22:01 +02:00
}
2024-07-05 22:52:38 +02:00
.item, .clients box {
background: #1f2430;
padding-left: 0.7em;
padding-right: 0.7em;
border-radius: 0.3em;
}
.app-icon {
margin-right: 0.6em;
}
button {
background: #1f2430;
border:none;
padding: 0.2em;
border-radius: 0.3em;
}
.focused, .clients box.focused {
background: #023269;
}
button:hover {
background: #023269;
}
.workspaces button {
padding-left: 0.4em;
padding-right: 0.4em;
margin-left: 0.2em;
margin-right: 0.2em;
}
.notification {
color: yellow;
}
.blue {
background: #023269;
}
/* Notifications */
window.notification-popups box.notifications {
padding: .5em;
}
.icon {
min-width: 68px;
min-height: 68px;
margin-right: 1em;
}
.icon image {
font-size: 58px;
/* to center the icon */
margin: 5px;
color: @theme_fg_color;
}
.icon box {
min-width: 68px;
min-height: 68px;
border-radius: 7px;
}
.notification {
min-width: 350px;
border-radius: 11px;
padding: 1em;
margin: .5em;
background-color: #1f2430;
}
.notification.critical {
border: 1px solid lightcoral;
}
.title {
color: @theme_fg_color;
font-size: 1.4em;
}
.body {
color: @theme_unfocused_fg_color;
}
.actions .action-button {
margin: 0 .4em;
margin-top: .8em;
}
.actions .action-button:first-child {
margin-left: 0;
}
.actions .action-button:last-child {
margin-right: 0;
}
'';
2024-07-05 01:33:59 +02:00
}