310 current 1970-01-01 01:00:00 23.11.20240514.9ddcaff 6.1.90 *
This commit is contained in:
@ -5,6 +5,13 @@
|
||||
...
|
||||
}: let
|
||||
cfg = config.sway.theming;
|
||||
|
||||
# currently, there is some friction between sway and gtk:
|
||||
# https://github.com/swaywm/sway/wiki/GTK-3-settings-on-Wayland
|
||||
configure-gtk = pkgs.writeShellScriptBin "configure-gtk" ''
|
||||
gnome_schema=org.gnome.desktop.interface
|
||||
gsettings set $gnome_schema gtk-theme 'Dracula'
|
||||
'';
|
||||
in {
|
||||
options = {
|
||||
sway.theming.enable = lib.mkEnableOption "theming for sway";
|
||||
@ -12,6 +19,11 @@ in {
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
wayland.windowManager.sway.config = {
|
||||
fonts = {
|
||||
names = ["FiraCode Nerd Font"];
|
||||
size = 11.0;
|
||||
};
|
||||
|
||||
colors = {
|
||||
background = "#00000000";
|
||||
focused = {
|
||||
@ -59,6 +71,10 @@ in {
|
||||
smartBorders = "no_gaps";
|
||||
};
|
||||
window.titlebar = false;
|
||||
|
||||
startup = [
|
||||
{command = "${configure-gtk}/bin/configure-gtk";}
|
||||
];
|
||||
};
|
||||
|
||||
gtk = {
|
||||
@ -99,5 +115,16 @@ in {
|
||||
x11.defaultCursor = "capitaine-cursors-white";
|
||||
};
|
||||
xsession.enable = true;
|
||||
|
||||
services.mako = {
|
||||
backgroundColor = "#313131";
|
||||
borderColor = "#00FFEE";
|
||||
progressColor = "#338833";
|
||||
textColor = "#e0e0e0";
|
||||
extraConfig = ''
|
||||
[urgency=low]
|
||||
border-color=#008877
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
|
Reference in New Issue
Block a user