guix-config

Guix system and home config for XIII (librebooted T480)
git clone https://g1rls.strangled.net/guix-config.git
Log | Files | Refs | README

theme.scm (3952B)


      1 (define-module (theme)
      2   #:use-module (guix gexp)
      3   #:export (%palette
      4             pal
      5             hex
      6             foot-ini
      7             foot-baseline-ini
      8             mako-conf
      9             wob-ini
     10             niri-baseline-kdl
     11             xiii-baseline-env))
     12 
     13 (define %palette
     14   '((font        . "MonoLisa Freezed")
     15     (font-size   . "11.5")
     16     (hud-font    . "MonoLisa Freezed 10.5")
     17     (alpha       . "0.93")
     18     (bg          . "0e0f10")
     19     (surface     . "161819")
     20     (border-dim  . "26282a")
     21     (fg          . "d6d8d4")
     22     (fg-bright   . "e4e6e2")
     23     (muted       . "44484a")
     24     (dim-fg      . "a8aca8")
     25     (accent      . "b82436")
     26     (accent-hi   . "d43548")
     27     (green       . "6e8f66")
     28     (green-hi    . "86a87d")
     29     (yellow      . "a89962")
     30     (yellow-hi   . "c2b278")
     31     (blue        . "5e7b99")
     32     (blue-hi     . "7897b5")
     33     (purple      . "8c7aa3")
     34     (purple-hi   . "a694bd")
     35     (cyan        . "5c8582")
     36     (cyan-hi     . "75a19d")))
     37 
     38 (define (pal key)
     39   (cdr (assoc key %palette)))
     40 
     41 (define (hex key)
     42   (string-append "#" (pal key)))
     43 
     44 (define (foot-baseline-ini)
     45   (mixed-text-file "foot-baseline.ini"
     46     "[colors-dark]\n"
     47     "alpha=" (pal 'alpha) "\n"
     48     "cursor=" (pal 'bg) " " (pal 'fg) "\n"
     49     "background=" (pal 'bg) "\n"
     50     "foreground=" (pal 'fg) "\n"
     51     "regular0=" (pal 'surface) "\n"
     52     "regular1=" (pal 'accent) "\n"
     53     "regular2=" (pal 'green) "\n"
     54     "regular3=" (pal 'yellow) "\n"
     55     "regular4=" (pal 'blue) "\n"
     56     "regular5=" (pal 'purple) "\n"
     57     "regular6=" (pal 'cyan) "\n"
     58     "regular7=" (pal 'dim-fg) "\n"
     59     "bright0=" (pal 'muted) "\n"
     60     "bright1=" (pal 'accent-hi) "\n"
     61     "bright2=" (pal 'green-hi) "\n"
     62     "bright3=" (pal 'yellow-hi) "\n"
     63     "bright4=" (pal 'blue-hi) "\n"
     64     "bright5=" (pal 'purple-hi) "\n"
     65     "bright6=" (pal 'cyan-hi) "\n"
     66     "bright7=" (pal 'fg-bright) "\n"
     67     "selection-foreground=" (pal 'fg-bright) "\n"
     68     "selection-background=" (pal 'border-dim) "\n"))
     69 
     70 (define (foot-ini)
     71   (mixed-text-file "foot.ini"
     72     "font=" (pal 'font) ":size=" (pal 'font-size) ","
     73     "MonoLisaFreezed Nerd Font:size=" (pal 'font-size) "\n"
     74     "pad=8x8\n\n"
     75     "[scrollback]\nlines=10000\n\n"
     76     "[cursor]\nstyle=block\nblink=no\n\n"
     77     "[mouse]\nhide-when-typing=yes\n\n"
     78     "[main]\n" "include=/home/freya/.config/foot/baseline.ini\n"
     79     "include=/home/freya/.cache/wallust/foot.ini\n"))
     80 
     81 (define (mako-conf)
     82   (mixed-text-file "mako.conf"
     83     "font=" (pal 'hud-font) "\n"
     84     "background-color=" (hex 'bg) "f2\n"
     85     "text-color=" (hex 'fg) "ff\n"
     86     "border-color=" (hex 'accent) "ff\n"
     87     "border-size=1\n"
     88     "border-radius=0\n"
     89     "padding=10,14\n"
     90     "default-timeout=4000\n\n"
     91     "[urgency=high]\n"
     92     "border-color=" (hex 'accent-hi) "ff\n"
     93     "default-timeout=0\n"))
     94 
     95 (define (wob-ini)
     96   (mixed-text-file "wob.ini"
     97     "timeout = 900\n"
     98     "height = 24\n"
     99     "width = 280\n"
    100     "border_offset = 0\n"
    101     "border_size = 1\n"
    102     "bar_padding = 3\n"
    103     "anchor = top right\n"
    104     "margin = 20\n"
    105     "background_color = " (pal 'bg) "f2\n"
    106     "border_color = " (pal 'accent) "ff\n"
    107     "bar_color = " (pal 'fg) "ff\n"
    108     "overflow_background_color = " (pal 'bg) "f2\n"
    109     "overflow_border_color = " (pal 'accent-hi) "ff\n"
    110     "overflow_bar_color = " (pal 'accent) "ff\n"))
    111 
    112 (define (niri-baseline-kdl)
    113   (mixed-text-file "niri-baseline.kdl"
    114     "layout {\n"
    115     "    border {\n"
    116     "        active-color \"" (hex 'accent) "\"\n"
    117     "        inactive-color \"" (hex 'border-dim) "\"\n"
    118     "        urgent-color \"" (hex 'accent-hi) "\"\n"
    119     "    }\n"
    120     "}\n"))
    121 
    122 (define (xiii-baseline-env)
    123   (mixed-text-file "baseline.env"
    124     "MENU_FONT=\"" (pal 'font) " " (pal 'font-size) "\"\n"
    125     "WMENU_BG=" (pal 'bg) "\n"
    126     "WMENU_FG=" (pal 'fg) "\n"
    127     "WMENU_SEL_BG=" (pal 'accent) "\n"
    128     "WMENU_SEL_FG=" (pal 'bg) "\n"
    129     "LOCK_INIT=0x" (pal 'bg) "\n"
    130     "LOCK_INPUT=0x" (pal 'blue) "\n"
    131     "LOCK_FAIL=0x" (pal 'accent) "\n"))