theme: fix gtk light theme not being set
This commit is contained in:
parent
dd7785c85c
commit
a023a9f103
|
@ -1,4 +1,8 @@
|
|||
{ pkgs, ... }: {
|
||||
{ pkgs, ... }:
|
||||
let
|
||||
inherit (pkgs.uservars) key accent font theme;
|
||||
in
|
||||
{
|
||||
|
||||
# Enable the X11 windowing system.
|
||||
services.xserver.enable = false;
|
||||
|
@ -20,7 +24,7 @@
|
|||
let
|
||||
greetd_main_script = pkgs.writeShellScriptBin "main" ''
|
||||
${pkgs.dbus-sway-environment}/bin/dbus-sway-environment
|
||||
export XDG_CURRENT_DESKTOP=sway GTK_THEME="${pkgs.uservars.gtk_theme}" XCURSOR_THEME="${pkgs.uservars.cursor_theme}"
|
||||
export XDG_CURRENT_DESKTOP=sway GTK_THEME="${theme.gtk_theme}" XCURSOR_THEME="${theme.cursor_theme}"
|
||||
${pkgs.greetd.gtkgreet}/bin/gtkgreet -l -c sway
|
||||
swaymsg exit
|
||||
'';
|
||||
|
|
|
@ -1,6 +1,9 @@
|
|||
{ config, pkgs, lib, ... }:
|
||||
let inherit (pkgs.uservars) key theme color accent font;
|
||||
in {
|
||||
let
|
||||
inherit (pkgs.uservars) key theme accent font;
|
||||
inherit (theme) color;
|
||||
in
|
||||
{
|
||||
config = {
|
||||
programs.alacritty = {
|
||||
enable = true;
|
||||
|
|
|
@ -1,6 +1,9 @@
|
|||
{ config, pkgs, lib, inputs, ... }:
|
||||
let inherit (pkgs.uservars) key theme color accent font;
|
||||
in {
|
||||
let
|
||||
inherit (pkgs.uservars) key theme accent font;
|
||||
inherit (theme) color;
|
||||
in
|
||||
{
|
||||
# My bemenu wrapper
|
||||
xdg.configFile = {
|
||||
"bmenu.conf".text = ''
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
{ config, pkgs, lib, inputs, ... }:
|
||||
let
|
||||
inherit (pkgs.uservars) key theme color accent font;
|
||||
inherit (pkgs.uservars) key theme accent font;
|
||||
inherit (theme) color;
|
||||
|
||||
colors = {
|
||||
"bg+" = color.bg_light;
|
||||
|
|
|
@ -1,6 +1,9 @@
|
|||
{ config, pkgs, lib, font, ... }:
|
||||
let inherit (pkgs.uservars) key theme color accent font editor;
|
||||
in {
|
||||
let
|
||||
inherit (pkgs.uservars) key theme accent font editor;
|
||||
inherit (theme) color;
|
||||
in
|
||||
{
|
||||
config = {
|
||||
programs.helix = {
|
||||
enable = true;
|
||||
|
|
|
@ -1,6 +1,9 @@
|
|||
{ config, pkgs, lib, font, ... }:
|
||||
let inherit (pkgs.uservars) key theme color accent font dmenu editor;
|
||||
in {
|
||||
let
|
||||
inherit (pkgs.uservars) key theme accent font dmenu editor;
|
||||
inherit (theme) color;
|
||||
in
|
||||
{
|
||||
config = {
|
||||
programs.kakoune = {
|
||||
enable = true;
|
||||
|
|
|
@ -1,6 +1,9 @@
|
|||
{ config, pkgs, lib, font, ... }:
|
||||
let inherit (pkgs.uservars) key theme color accent font browser;
|
||||
in {
|
||||
let
|
||||
inherit (pkgs.uservars) key theme accent font browser;
|
||||
inherit (theme) color;
|
||||
in
|
||||
{
|
||||
config = {
|
||||
programs.qutebrowser = {
|
||||
enable = true;
|
||||
|
|
|
@ -1,6 +1,9 @@
|
|||
{ config, pkgs, lib, font, ... }:
|
||||
let inherit (pkgs.uservars) key theme color accent font;
|
||||
in {
|
||||
let
|
||||
inherit (pkgs.uservars) key theme accent font;
|
||||
inherit (theme) color;
|
||||
in
|
||||
{
|
||||
config = {
|
||||
programs.rofi = {
|
||||
enable = true;
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
{ config, pkgs, lib, ... }:
|
||||
let
|
||||
inherit (pkgs.uservars) key theme color accent font;
|
||||
inherit (pkgs.uservars) key accent font theme;
|
||||
inherit (theme) color;
|
||||
color_picker = pkgs.writeShellScript "color_picker" ''
|
||||
grim -g "$(slurp -b aabbcc00 -p)" - |
|
||||
convert - txt:- |
|
||||
|
|
|
@ -1,5 +1,9 @@
|
|||
{ config, pkgs, lib, inputs, ... }:
|
||||
with pkgs.uservars; {
|
||||
let
|
||||
inherit (pkgs.uservars) theme font;
|
||||
inherit (theme) color gtk_theme icon_theme cursor_theme;
|
||||
in
|
||||
{
|
||||
home.pointerCursor = {
|
||||
name = cursor_theme;
|
||||
size = 24;
|
||||
|
@ -30,10 +34,10 @@ with pkgs.uservars; {
|
|||
|
||||
dconf.settings = {
|
||||
"org/gnome/desktop/interface" = {
|
||||
gtk-theme = pkgs.uservars.gtk_theme;
|
||||
icon-theme = pkgs.uservars.icon_theme;
|
||||
cursor-theme = pkgs.uservars.cursor_theme;
|
||||
color-scheme = "prefer-${pkgs.uservars.color.type}";
|
||||
gtk-theme = gtk_theme;
|
||||
icon-theme = icon_theme;
|
||||
cursor-theme = cursor_theme;
|
||||
color-scheme = "prefer-${color.type}";
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
@ -23,6 +23,10 @@ let
|
|||
};
|
||||
themes = {
|
||||
dark = {
|
||||
gtk_theme = "Orchis-Red-Dark-Compact";
|
||||
icon_theme = "Papirus-Dark";
|
||||
cursor_theme = "Bibata-Modern-Classic";
|
||||
|
||||
background = "~/.local/share/backgrounds/nixos-dark-pattern.png";
|
||||
opacity = 95;
|
||||
opacityHex = "ee";
|
||||
|
@ -50,6 +54,10 @@ let
|
|||
};
|
||||
};
|
||||
light = {
|
||||
gtk_theme = "Orchis-Red-Compact";
|
||||
icon_theme = "Papirus";
|
||||
cursor_theme = "Bibata-Modern-Classic";
|
||||
|
||||
background = "~/.local/share/backgrounds/nixos-light-pattern.png";
|
||||
opacity = 95;
|
||||
opacityHex = "ee";
|
||||
|
@ -84,13 +92,8 @@ rec {
|
|||
key = keys.colemak;
|
||||
|
||||
theme = themes.dark;
|
||||
color = theme.color;
|
||||
accent = accents.red;
|
||||
|
||||
gtk_theme = "Orchis-Red-Dark-Compact";
|
||||
icon_theme = "Papirus-Dark";
|
||||
cursor_theme = "Bibata-Modern-Classic";
|
||||
|
||||
font = {
|
||||
mono = "Hack Nerd Font";
|
||||
interface = "Liberation Sans";
|
||||
|
|
|
@ -1,6 +1,9 @@
|
|||
{ config, pkgs, lib, font, ... }:
|
||||
let inherit (pkgs.uservars) key theme color accent font;
|
||||
in {
|
||||
let
|
||||
inherit (pkgs.uservars) key theme accent font;
|
||||
inherit (theme) color;
|
||||
in
|
||||
{
|
||||
config = {
|
||||
programs.waybar = {
|
||||
enable = true;
|
||||
|
|
|
@ -1,6 +1,9 @@
|
|||
{ config, pkgs, lib, font, ... }:
|
||||
let inherit (pkgs.uservars) key color accent font;
|
||||
in {
|
||||
let
|
||||
inherit (pkgs.uservars) key accent font theme;
|
||||
inherit (theme) color;
|
||||
in
|
||||
{
|
||||
config = {
|
||||
programs.zathura.enable = true;
|
||||
programs.zathura.options = {
|
||||
|
|
Loading…
Reference in a new issue