Skip to content

Latest commit

 

History

History
executable file
·
127 lines (101 loc) · 2.15 KB

theme.md

File metadata and controls

executable file
·
127 lines (101 loc) · 2.15 KB

Theme

{ config, pkgs, lib, inputs, ... }:
{
  imports = [
    <<<modules/home/theme-imports>>>
  ];

  <<<modules/home/theme>>>
}

Qt as GTK

Use GTK theme in Qt apps

qt = {
  enable = true;
  platformTheme.name = "adwaita";
  style.name = "adwaita";
};

Icons

gtk.enable = true;
gtk.iconTheme = {
  name = "Tela";
  package = pkgs.tela-icon-theme;
};

Use the same icons in Qt apps

dconf.settings."org/gnome/desktop/interface" = {
  icon-theme = config.gtk.iconTheme.name;
};

home.sessionVariables.XDG_CURRENT_DESKTOP = "Gnome";

Cursors

home.pointerCursor = {
  name = "Bibata-Modern-Classic";
  package = pkgs.bibata-cursors;
  size = 24;
  gtk.enable = true;
  x11.enable = true;
};

Window borders

Remove ugly borders from GTK apps

xdg.configFile."gtk-4.0/gtk.css".text = ''
  window {
    padding: 0;
    box-shadow: none;
  }
'';
xdg.configFile."gtk-3.0/gtk.css".text = ''
  decoration {
    padding: 0;
  }
'';

Window buttons

Hide window buttons

dconf.settings."org/gnome/desktop/wm/preferences".button-layout = "";
xdg.configFile."gtk-3.0/settings.ini".text = ''
   gtk-decoration-layout=:menu
'';
xdg.configFile."gtk-4.0/settings.ini".text = ''
   gtk-decoration-layout=:menu
'';

Background

Use random backgrounds with feh

feh-random-background = {
  url = github:KoviRobi/feh-random-background;
  flake = false;
};
wallpapers = {
  url = gitlab:DPDmancul/dotfiles-wallpapers;
  flake = false;
};
(inputs.feh-random-background + /home-manager-service.nix)
services.feh-random-background = {
  enable = true;
  imageDirectory = "${inputs.wallpapers}";
  interval = "1m";
};

restart the service on monitor config change

programs.autorandr = {
  enable = true;
  hooks.postswitch = {
    "reload-background" = "systemctl --user start feh-random-background";
  };
};