Added swaync and some notifications
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
with lib;
|
||||
let
|
||||
cfg = config.samfelag.modules.desktop.grapheio;
|
||||
hyprCfg = config.samfelag.modules.desktop.wm.hyprland;
|
||||
in
|
||||
{
|
||||
options.samfelag.modules.desktop.grapheio = {
|
||||
@@ -14,11 +15,19 @@ in
|
||||
# - Packages ---------------------------------
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
# - Tools ----------------------------------
|
||||
jq
|
||||
# - Appearance -----------------------------
|
||||
rose-pine-gtk-theme
|
||||
rose-pine-icon-theme
|
||||
# - Cursor
|
||||
inputs.hyprcursor-rose-pine.packages.${pkgs.system}.default
|
||||
rose-pine-cursor
|
||||
];
|
||||
|
||||
# - Data files -------------------------------
|
||||
hm.xdg.configFile."grapheio".source = ../../config/grapheio;
|
||||
|
||||
# - Cursor -----------------------------------
|
||||
hm.home.pointerCursor = {
|
||||
gtk.enable = true;
|
||||
@@ -29,12 +38,42 @@ in
|
||||
|
||||
hm.gtk = {
|
||||
enable = true;
|
||||
theme = {
|
||||
package = pkgs.rose-pine-gtk-theme;
|
||||
name = "rose-pine-gtk-theme";
|
||||
};
|
||||
iconTheme = {
|
||||
package = pkgs.rose-pine-icon-theme;
|
||||
name = "rose-pine-icons";
|
||||
};
|
||||
cursorTheme = {
|
||||
package = pkgs.rose-pine-cursor;
|
||||
name = "BreezeX Cursor";
|
||||
name = "BreezeX-RoséPine";
|
||||
size = 24;
|
||||
};
|
||||
};
|
||||
|
||||
# - Hyprland keybindings ---------------------
|
||||
hm.wayland.windowManager.hyprland.settings = lib.mkIf hyprCfg.enable {
|
||||
bind = [
|
||||
# Pulse Audio controls (mute)
|
||||
", XF86AudioMute, exec, $HOME/.config/grapheio/scripts/volume.sh mute"
|
||||
|
||||
# Media player controls
|
||||
", XF86AudioPlay, exec, playerctl play-pause"
|
||||
", XF86AudioPause, exec, playerctl play-pause"
|
||||
", XF86AudioNext, exec, playerctl next"
|
||||
", XF86AudioPrev, exec, playerctl previous"
|
||||
", XF86AudioStop, exec, playerctl stop"
|
||||
];
|
||||
|
||||
binde = [
|
||||
# Pulse Audio controls (volume)
|
||||
", XF86AudioRaiseVolume, exec, $HOME/.config/grapheio/scripts/volume.sh set +5%"
|
||||
", XF86AudioLowerVolume, exec, $HOME/.config/grapheio/scripts/volume.sh set -5%"
|
||||
];
|
||||
};
|
||||
|
||||
# - Modules ----------------------------------
|
||||
|
||||
samfelag.modules = {
|
||||
|
||||
@@ -19,30 +19,83 @@ in {
|
||||
hm.services.swaync = {
|
||||
enable = true;
|
||||
settings = {
|
||||
widgets = [
|
||||
"title"
|
||||
"dnd"
|
||||
"notifications"
|
||||
];
|
||||
widget-config = {
|
||||
dnd = {
|
||||
text = "Silence";
|
||||
};
|
||||
title = {
|
||||
text = "Notifications";
|
||||
clear-all-button = true;
|
||||
button-text = "";
|
||||
};
|
||||
};
|
||||
};
|
||||
style = ''
|
||||
* {
|
||||
font-family: Iosevka;
|
||||
color: #${config.colorScheme.palette.base05};
|
||||
}
|
||||
|
||||
.notification {
|
||||
padding: 4px 4px 0px 4px;
|
||||
border-width: 2px;
|
||||
padding: 2px 4px;
|
||||
background-color: #${config.colorScheme.palette.base00};
|
||||
color: #${config.colorScheme.palette.base05};
|
||||
}
|
||||
|
||||
.summary {
|
||||
.notification-content {
|
||||
background-color: inherit;
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
.body {
|
||||
.critical.notification {
|
||||
background-color: #${config.colorScheme.palette.base0C};
|
||||
}
|
||||
|
||||
.image {
|
||||
margin: 5px;
|
||||
padding-right: 5px;
|
||||
}
|
||||
|
||||
.control-center {
|
||||
margin: 20px;
|
||||
opacity: 0.95;
|
||||
margin: 30px;
|
||||
margin-left: 0px;
|
||||
border-radius: 10px;
|
||||
border: solid #${config.colorScheme.palette.base05} 1px;
|
||||
background-color: #${config.colorScheme.palette.base01};
|
||||
color: #${config.colorScheme.palette.base05};
|
||||
opacity: 0.95;
|
||||
}
|
||||
|
||||
.control-center-clear-all {
|
||||
background: #${config.colorScheme.palette.base02};
|
||||
}
|
||||
|
||||
.control-center-dnd:checked {
|
||||
background: #${config.colorScheme.palette.base08};
|
||||
}
|
||||
|
||||
.close-button {
|
||||
background: #${config.colorScheme.palette.base08};
|
||||
}
|
||||
|
||||
.notification-group-collapse-button {
|
||||
margin: 4px;
|
||||
box-shadow: none;
|
||||
background: #${config.colorScheme.palette.base0A};
|
||||
}
|
||||
|
||||
.notification-group-close-all-button {
|
||||
margin: 4px;
|
||||
box-shadow: none;
|
||||
background: #${config.colorScheme.palette.base08};
|
||||
}
|
||||
|
||||
'';
|
||||
};
|
||||
|
||||
@@ -53,6 +106,11 @@ in {
|
||||
"swaync"
|
||||
];
|
||||
|
||||
layerrule = [
|
||||
"animation slide top, swaync-control-center"
|
||||
"animation slide top, swaync-notification-window"
|
||||
];
|
||||
|
||||
bind = [
|
||||
# Notification center
|
||||
"${hyprCfg.mod}, n, exec, swaync-client -t -sw"
|
||||
|
||||
Reference in New Issue
Block a user