Homer: Improve styling.
This commit is contained in:
parent
43de7ea325
commit
ded12ad5f5
|
@ -1,8 +1,4 @@
|
||||||
{
|
{ config, lib, ... }:
|
||||||
config,
|
|
||||||
lib,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
let
|
let
|
||||||
cfg = config.module.sway;
|
cfg = config.module.sway;
|
||||||
in
|
in
|
||||||
|
|
|
@ -12,35 +12,36 @@
|
||||||
isDefault = true;
|
isDefault = true;
|
||||||
withExternalGnupg = true;
|
withExternalGnupg = true;
|
||||||
};
|
};
|
||||||
settings = let
|
settings =
|
||||||
dayEnd = 19;
|
let
|
||||||
dayStart = 10;
|
dayEnd = 19;
|
||||||
fontSize = config.module.style.font.size.application;
|
dayStart = 10;
|
||||||
reminderMinutes = 10;
|
fontSize = config.module.style.font.size.application;
|
||||||
snoozeMinutes = 10;
|
reminderMinutes = 10;
|
||||||
in
|
snoozeMinutes = 10;
|
||||||
{
|
in
|
||||||
"browser.download.useDownloadDir" = true;
|
{
|
||||||
"calendar.alarms.defaultsnoozelength" = snoozeMinutes;
|
"browser.download.useDownloadDir" = true;
|
||||||
"calendar.alarms.eventalarmlen" = reminderMinutes;
|
"calendar.alarms.defaultsnoozelength" = snoozeMinutes;
|
||||||
"calendar.alarms.onforevents" = 0;
|
"calendar.alarms.eventalarmlen" = reminderMinutes;
|
||||||
"calendar.alarms.onfortodos" = 0;
|
"calendar.alarms.onforevents" = 0;
|
||||||
"calendar.alarms.show" = true;
|
"calendar.alarms.onfortodos" = 0;
|
||||||
"calendar.alarms.soundType" = 1;
|
"calendar.alarms.show" = true;
|
||||||
"calendar.alarms.soundURL" = "file://${<static/Notification.ogg>}";
|
"calendar.alarms.soundType" = 1;
|
||||||
"calendar.alarms.todoalarmlen" = reminderMinutes;
|
"calendar.alarms.soundURL" = "file://${<static/Notification.ogg>}";
|
||||||
"calendar.item.editInTab" = true;
|
"calendar.alarms.todoalarmlen" = reminderMinutes;
|
||||||
"calendar.notifications.times" = "-PT${toString reminderMinutes}M";
|
"calendar.item.editInTab" = true;
|
||||||
"calendar.view-minimonth.showWeekNumber" = false;
|
"calendar.notifications.times" = "-PT${toString reminderMinutes}M";
|
||||||
"calendar.view.dayendhour" = dayEnd;
|
"calendar.view-minimonth.showWeekNumber" = false;
|
||||||
"calendar.view.daystarthour" = dayStart;
|
"calendar.view.dayendhour" = dayEnd;
|
||||||
"font.minimum-size.x-western" = fontSize;
|
"calendar.view.daystarthour" = dayStart;
|
||||||
"font.size.monospace.x-western" = fontSize;
|
"font.minimum-size.x-western" = fontSize;
|
||||||
"font.size.variable.x-western" = fontSize;
|
"font.size.monospace.x-western" = fontSize;
|
||||||
"mail.biff.use_system_alert" = true;
|
"font.size.variable.x-western" = fontSize;
|
||||||
"mailnews.start_page.enabled" = false;
|
"mail.biff.use_system_alert" = true;
|
||||||
"pdfjs.enabledCache.state" = false;
|
"mailnews.start_page.enabled" = false;
|
||||||
};
|
"pdfjs.enabledCache.state" = false;
|
||||||
|
};
|
||||||
|
|
||||||
# ISSUE: https://github.com/nix-community/home-manager/issues/5775
|
# ISSUE: https://github.com/nix-community/home-manager/issues/5775
|
||||||
# ISSUE: https://github.com/nix-community/home-manager/issues/5933
|
# ISSUE: https://github.com/nix-community/home-manager/issues/5933
|
||||||
|
|
|
@ -62,7 +62,8 @@ let
|
||||||
(mkVideoLink "LiveWallpaperPc" "https://livewallpaperpc.com")
|
(mkVideoLink "LiveWallpaperPc" "https://livewallpaperpc.com")
|
||||||
(mkVideoLink "MoeWalls" "https://moewalls.com")
|
(mkVideoLink "MoeWalls" "https://moewalls.com")
|
||||||
(mkVideoLink "Motion Backgrounds" "https://motionbgs.com")
|
(mkVideoLink "Motion Backgrounds" "https://motionbgs.com")
|
||||||
] ++ [
|
]
|
||||||
|
++ [
|
||||||
(mkImageLink "Unsplash" "https://unsplash.com")
|
(mkImageLink "Unsplash" "https://unsplash.com")
|
||||||
(mkImageLink "Wallhaven" "https://wallhaven.cc")
|
(mkImageLink "Wallhaven" "https://wallhaven.cc")
|
||||||
]
|
]
|
||||||
|
@ -102,6 +103,7 @@ let
|
||||||
theme = "default";
|
theme = "default";
|
||||||
title = "Dashboard";
|
title = "Dashboard";
|
||||||
columns = "auto"; # 1, 2, 3, 4, 6, 12 or auto.
|
columns = "auto"; # 1, 2, 3, 4, 6, 12 or auto.
|
||||||
|
stylesheet = [ "assets/custom.css" ];
|
||||||
defaults = {
|
defaults = {
|
||||||
colorTheme = "dark";
|
colorTheme = "dark";
|
||||||
layout = "columns"; # columns or list.
|
layout = "columns"; # columns or list.
|
||||||
|
|
4
package/homer/Custom.css
Normal file
4
package/homer/Custom.css
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
.search-label {
|
||||||
|
display: none;
|
||||||
|
visibility: hidden;
|
||||||
|
}
|
|
@ -6,6 +6,7 @@
|
||||||
}@args:
|
}@args:
|
||||||
let
|
let
|
||||||
cfg = (import ./Config.nix args).file;
|
cfg = (import ./Config.nix args).file;
|
||||||
|
css = ./Custom.css;
|
||||||
in
|
in
|
||||||
stdenv.mkDerivation (finalAttrs: {
|
stdenv.mkDerivation (finalAttrs: {
|
||||||
dontUnpack = true;
|
dontUnpack = true;
|
||||||
|
@ -23,6 +24,7 @@ stdenv.mkDerivation (finalAttrs: {
|
||||||
pushd $out
|
pushd $out
|
||||||
unzip $src
|
unzip $src
|
||||||
cp ${cfg} $out/assets/config.yml
|
cp ${cfg} $out/assets/config.yml
|
||||||
|
cp ${css} $out/assets/custom.css
|
||||||
|
|
||||||
runHook postInstall
|
runHook postInstall
|
||||||
'';
|
'';
|
||||||
|
|
Loading…
Reference in a new issue