better nxsent

This commit is contained in:
Lennart J. Kurzweg (Nx2)
2024-11-09 23:56:00 +01:00
parent 6abff56bbd
commit 2e1c0f495b
3 changed files with 11 additions and 21 deletions

View File

@@ -1,4 +1,4 @@
{ pkgs, rice, user, ... }:
{ pkgs, rice, ... }:
let
my-sent = pkgs.sent.override {
patches = [
@@ -11,25 +11,14 @@ in
{
home = {
packages = [
# pkgs.sent
my-sent
(pkgs.writeShellApplication {
name = "nxsent";
text = with rice.color; let
in /* bash */ ''
echo "$@" | sent -c "${accent.base}" -b "${background}"
'';
})
];
file.".local/share/sent.patch".text = ''
diff --git a/config.def.h b/config.def.h
index 60eb376..64e7f05 100644
--- a/config.def.h
+++ b/config.def.h
@@ -9,8 +9,8 @@ static char *fontfallbacks[] = {
#define FONTSZ(x) ((int)(10.0 * powf(1.1288, (x)))) /* x in [0, NUMFONTSCALES-1] */
static const char *colors[] = {
- "#000000", /* foreground color */
- "#FFFFFF", /* background color */
+ "${rice.color.foreground}", /* foreground color */
+ "${rice.color.background}", /* background color */
};
static const float linespacing = 1.4;
'';
};
}