mirror of
https://github.com/librephoenix/nixos-config
synced 2025-01-18 22:55:52 +05:30
Fixes transparency on custom emacs dashboard logo
This commit is contained in:
parent
656608c84a
commit
a27ddf7d71
|
@ -84,10 +84,11 @@
|
||||||
(require 'dashboard)
|
(require 'dashboard)
|
||||||
(setq initial-buffer-choice (lambda () (get-buffer-create "*dashboard*"))
|
(setq initial-buffer-choice (lambda () (get-buffer-create "*dashboard*"))
|
||||||
doom-fallback-buffer-name "*dashboard*")
|
doom-fallback-buffer-name "*dashboard*")
|
||||||
|
(setq image-scaling-factor 1)
|
||||||
|
|
||||||
;; emacs-dashboard variables
|
;; emacs-dashboard variables
|
||||||
(setq dashboard-banner-logo-title "Welcome to Nix Doom Emacs")
|
(setq dashboard-banner-logo-title "Welcome to Nix Doom Emacs")
|
||||||
(setq dashboard-startup-banner 2)
|
(setq dashboard-startup-banner "~/.emacs.d/dashboard-logo.webp")
|
||||||
(setq dashboard-icon-type 'all-the-icons) ;; use `all-the-icons' package
|
(setq dashboard-icon-type 'all-the-icons) ;; use `all-the-icons' package
|
||||||
(setq dashboard-set-heading-icons t)
|
(setq dashboard-set-heading-icons t)
|
||||||
(setq dashboard-set-file-icons t)
|
(setq dashboard-set-file-icons t)
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{ config, lib, pkgs-emacs, pkgs-stable, inputs, userSettings, systemSettings, ... }:
|
{ config, lib, pkgs-emacs, pkgs-stable, inputs, userSettings, systemSettings, ... }:
|
||||||
let
|
let
|
||||||
themePolarity = lib.removeSuffix "\n" (builtins.readFile (./. + "../../../../themes"+("/"+userSettings.theme)+"/polarity.txt"));
|
themePolarity = lib.removeSuffix "\n" (builtins.readFile (./. + "../../../../themes"+("/"+userSettings.theme)+"/polarity.txt"));
|
||||||
dashboardLogo = ./. + "/nix-" + themePolarity + ".png";
|
dashboardLogo = ./. + "/nix-" + themePolarity + ".webp";
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
|
@ -109,7 +109,7 @@ in
|
||||||
source = "${inputs.org-sliced-images}";
|
source = "${inputs.org-sliced-images}";
|
||||||
};
|
};
|
||||||
|
|
||||||
home.file.".emacs.d/dashboard-logo.png".source = dashboardLogo;
|
home.file.".emacs.d/dashboard-logo.webp".source = dashboardLogo;
|
||||||
home.file.".emacs.d/scripts/copy-link-or-file/copy-link-or-file-to-clipboard.sh" = {
|
home.file.".emacs.d/scripts/copy-link-or-file/copy-link-or-file-to-clipboard.sh" = {
|
||||||
source = ./scripts/copy-link-or-file/copy-link-or-file-to-clipboard.sh;
|
source = ./scripts/copy-link-or-file/copy-link-or-file-to-clipboard.sh;
|
||||||
executable = true;
|
executable = true;
|
||||||
|
|
|
@ -147,10 +147,11 @@ Doom Emacs is traditionally installed by cloning the repository ([[https://githu
|
||||||
(require 'dashboard)
|
(require 'dashboard)
|
||||||
(setq initial-buffer-choice (lambda () (get-buffer-create "*dashboard*"))
|
(setq initial-buffer-choice (lambda () (get-buffer-create "*dashboard*"))
|
||||||
doom-fallback-buffer-name "*dashboard*")
|
doom-fallback-buffer-name "*dashboard*")
|
||||||
|
(setq image-scaling-factor 1)
|
||||||
|
|
||||||
;; emacs-dashboard variables
|
;; emacs-dashboard variables
|
||||||
(setq dashboard-banner-logo-title "Welcome to Nix Doom Emacs")
|
(setq dashboard-banner-logo-title "Welcome to Nix Doom Emacs")
|
||||||
(setq dashboard-startup-banner 2)
|
(setq dashboard-startup-banner "~/.emacs.d/dashboard-logo.webp")
|
||||||
(setq dashboard-icon-type 'all-the-icons) ;; use `all-the-icons' package
|
(setq dashboard-icon-type 'all-the-icons) ;; use `all-the-icons' package
|
||||||
(setq dashboard-set-heading-icons t)
|
(setq dashboard-set-heading-icons t)
|
||||||
(setq dashboard-set-file-icons t)
|
(setq dashboard-set-file-icons t)
|
||||||
|
@ -2082,7 +2083,7 @@ In order to have Nix load my Doom Emacs configuration [[./doom.nix][doom.nix]],
|
||||||
{ config, lib, pkgs-emacs, pkgs-stable, inputs, userSettings, systemSettings, ... }:
|
{ config, lib, pkgs-emacs, pkgs-stable, inputs, userSettings, systemSettings, ... }:
|
||||||
let
|
let
|
||||||
themePolarity = lib.removeSuffix "\n" (builtins.readFile (./. + "../../../../themes"+("/"+userSettings.theme)+"/polarity.txt"));
|
themePolarity = lib.removeSuffix "\n" (builtins.readFile (./. + "../../../../themes"+("/"+userSettings.theme)+"/polarity.txt"));
|
||||||
dashboardLogo = ./. + "/nix-" + themePolarity + ".png";
|
dashboardLogo = ./. + "/nix-" + themePolarity + ".webp";
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
|
@ -2190,7 +2191,7 @@ in
|
||||||
source = "${inputs.org-sliced-images}";
|
source = "${inputs.org-sliced-images}";
|
||||||
};
|
};
|
||||||
|
|
||||||
home.file.".emacs.d/dashboard-logo.png".source = dashboardLogo;
|
home.file.".emacs.d/dashboard-logo.webp".source = dashboardLogo;
|
||||||
home.file.".emacs.d/scripts/copy-link-or-file/copy-link-or-file-to-clipboard.sh" = {
|
home.file.".emacs.d/scripts/copy-link-or-file/copy-link-or-file-to-clipboard.sh" = {
|
||||||
source = ./scripts/copy-link-or-file/copy-link-or-file-to-clipboard.sh;
|
source = ./scripts/copy-link-or-file/copy-link-or-file-to-clipboard.sh;
|
||||||
executable = true;
|
executable = true;
|
||||||
|
|
BIN
user/app/doom-emacs/nix-dark.webp
Normal file
BIN
user/app/doom-emacs/nix-dark.webp
Normal file
Binary file not shown.
After Width: | Height: | Size: 26 KiB |
BIN
user/app/doom-emacs/nix-light.webp
Normal file
BIN
user/app/doom-emacs/nix-light.webp
Normal file
Binary file not shown.
After Width: | Height: | Size: 22 KiB |
Loading…
Reference in a new issue