From 1743869b07937ae0e69a17b0260150795eeaa511 Mon Sep 17 00:00:00 2001 From: Sam Date: Sat, 20 Jul 2024 12:39:36 +0100 Subject: [PATCH] Add xresources to semita --- home/common/optional/desktop/dwm/default.nix | 1 - home/semita.nix | 65 +++++++++++++------- hosts/semita/default.nix | 2 +- 3 files changed, 44 insertions(+), 24 deletions(-) diff --git a/home/common/optional/desktop/dwm/default.nix b/home/common/optional/desktop/dwm/default.nix index 0cf3e5e..e6d7598 100644 --- a/home/common/optional/desktop/dwm/default.nix +++ b/home/common/optional/desktop/dwm/default.nix @@ -7,7 +7,6 @@ ./xinitrc.nix ./sxhkdrc.nix ./picom.nix - # ./xresources.nix ./dunst.nix ./music_player.nix diff --git a/home/semita.nix b/home/semita.nix index 30def67..f23611a 100644 --- a/home/semita.nix +++ b/home/semita.nix @@ -1,4 +1,5 @@ -{ ... +{ config +, ... }: { imports = [ # Import users @@ -14,27 +15,6 @@ ./common/optional/desktop/common/themes/standard-dark.nix ]; - # ------ - # | DP-1 - # ------ - monitors = [ - { - name = "DP-1"; - width = 2560; - height = 1440; - x = 0; - y = 0; - workspace = "1"; - primary = true; - } - { - name = "DP-2"; - width = 2560; - height = 1440; - x = 2560; - y = 0; - } - ]; colorScheme = { slug = "serene"; @@ -60,4 +40,45 @@ }; }; + home.file.".Xresources" = { + recursive = true; + text = '' + ! scale + Xft.dpi: 144 + + ! st + st.alpha: 0.8 + St.font: monospace:pixelsize=21:antialias=true:autohint=true; + St.font2: NotoColorEmoji:pixelsize=19:antialias=true:autohint=true; + + ! dwm + dwm.borderpx: 3 + dwm.font: monospace:size=12 + dwm.col_base00: #${config.colorScheme.colors.base00} + dwm.col_base03: #${config.colorScheme.colors.base03} + dwm.col_base04: #${config.colorScheme.colors.base04} + dwm.col_base05: #${config.colorScheme.colors.base05} + dwm.col_base08: #${config.colorScheme.colors.base08} + dwm.col_base0B: #${config.colorScheme.colors.base0B} + + ! dmenu + dmenu.font: monospace:size=12 + dmenu.font2: NotoColorEmoji:pixelsize=22:antialias=true:autohint=true + dmenu.topbar: 1 + dmenu.normfgcolor: #${config.colorScheme.colors.base05} + dmenu.normbgcolor: #${config.colorScheme.colors.base03} + dmenu.selfgcolor: #${config.colorScheme.colors.base00} + dmenu.selbgcolor: #${config.colorScheme.colors.base0B} + + Nsxiv.window.background: #${config.colorScheme.colors.base03} + Nsxiv.window.foreground: #${config.colorScheme.colors.base05} + Nsxiv.mark.foreground: #${config.colorScheme.colors.base08} + + Nsxiv.bar.background: #${config.colorScheme.colors.base00} + Nsxiv.bar.foreground: #${config.colorScheme.colors.base05} + Nsxiv.bar.font: monospace:size=12 + + + ''; + }; } diff --git a/hosts/semita/default.nix b/hosts/semita/default.nix index ffe8367..f7e1d8f 100644 --- a/hosts/semita/default.nix +++ b/hosts/semita/default.nix @@ -1,4 +1,4 @@ -{ inputs, config, lib, pkgs, outputs, ... }: +{ inputs, lib, pkgs, ... }: let # Disko setup fsType = "btrfs"; # one of ext4 or btrfs. Use btrfs if using impermanence