This commit is contained in:
Daniel Ziltener 2023-12-26 23:34:36 +01:00
parent 5e8439739b
commit 54876c0968
Signed by: zilti
GPG Key ID: B38976E82C9DAE42
6 changed files with 60 additions and 6 deletions

3
home/Makefile Normal file
View File

@ -0,0 +1,3 @@
reconfigure:
guix home reconfigure ./home-configuration.scm
cd fontforge; direnv exec . make install

View File

@ -133,6 +133,7 @@
:custom-face :custom-face
;;(default ((t (:weight bold :height 113 :width normal :family "VictorMono Nerd Font")))) ;;(default ((t (:weight bold :height 113 :width normal :family "VictorMono Nerd Font"))))
(fixed-pitch ((t (:weight normal :height 105 :width narrow :family "MonaspiceXe Nerd Font Mono")))) (fixed-pitch ((t (:weight normal :height 105 :width narrow :family "MonaspiceXe Nerd Font Mono"))))
;; (fixed-pitch ((t (:weight normal :height 105 :width condensed :family "LibertinusMono Nerd Font Mono"))))
(variable-pitch ((t (:weight normal :height 130 :family "LibertinusSerif Nerd Font Propo")))) (variable-pitch ((t (:weight normal :height 130 :family "LibertinusSerif Nerd Font Propo"))))
;(variable-pitch ((t (:weight normal :height 105 :width narrow :family "MonaspiceXe Nerd Font Propo")))) ;(variable-pitch ((t (:weight normal :height 105 :width narrow :family "MonaspiceXe Nerd Font Propo"))))
:hook :hook
@ -236,7 +237,8 @@
:config :config
(ligature-set-ligatures (ligature-set-ligatures
't 't
'(;; SS01 '(";;"
;; SS01
"==" "===" "=/=" "!=" "!==" "/=" "/==" "~~" "=~" "!~" "==" "===" "=/=" "!=" "!==" "/=" "/==" "~~" "=~" "!~"
;; SS02 ;; SS02
">=" "<=" ">=" "<="
@ -256,7 +258,7 @@
"//" "///" "&&" "!!" "??" "?." "?:" "||" "::" ":::" ";;" ".." "..." "=!=" "#=" ":=" "=:" "=:=" "//" "///" "&&" "!!" "??" "?." "?:" "||" "::" ":::" ";;" ".." "..." "=!=" "#=" ":=" "=:" "=:="
":>" ">:" "<:" ":<" "..=" "..-" ":>" ">:" "<:" ":<" "..=" "..-"
)) ))
(global-ligature-mode t)) (global-ligature-mode nil))
(set-frame-parameter nil 'alpha-background 90) (set-frame-parameter nil 'alpha-background 90)
(add-to-list 'default-frame-alist '(alpha-background . 90)) (add-to-list 'default-frame-alist '(alpha-background . 90))

27
home/fontforge/Makefile Normal file
View File

@ -0,0 +1,27 @@
font-patcher:
tmp=$(mktemp); \
trap "rm -rf '$tmp'" exit; \
curl -L https://github.com/ryanoasis/nerd-fonts/releases/latest/download/FontPatcher.zip > $tmp; \
unzip $tmp
LibertinusKeyboard-Regular.otf LibertinusSans-Bold.otf LibertinusSerif-Bold.otf LibertinusSerif-Regular.otf LibertinusSerifDisplay-Regular.otf LibertinusMath-Regular.otf LibertinusSans-Italic.otf LibertinusSerif-BoldItalic.otf LibertinusSerif-Semibold.otf LibertinusSerifInitials-Regular.otf LibertinusMono-Regular.otf LibertinusSans-Regular.otf LibertinusSerif-Italic.otf LibertinusSerif-SemiboldItalic.otf:
curl -L https://github.com/alerque/libertinus/releases/download/v7.040/Libertinus-7.040.tar.xz | tar xJ
ln -sf Libertinus-7.040/static/OTF/* .
LibertinusSerifNerdFontPropo-%.otf: LibertinusSerif-%.otf font-patcher
./font-patcher $< -c --variable-width-glyphs
LibertinusSansNerdFontPropo-%.otf: LibertinusSans-%.otf font-patcher
./font-patcher $< -c --variable-width-glyphs
LibertinusMonoNerdFontMono-%.otf: LibertinusMono-%.otf font-patcher
./font-patcher $< -c --mono
install-%: %
install -C -D $< $$XDG_DATA_HOME/fonts/$<
install-serif: install-LibertinusSerifNerdFontPropo-Regular.otf install-LibertinusSerifNerdFontPropo-Bold.otf install-LibertinusSerifNerdFontPropo-BoldItalic.otf install-LibertinusSerifNerdFontPropo-Italic.otf
install-mono: install-LibertinusMonoNerdFontMono-Regular.otf
install: install-serif install-mono

View File

@ -8,6 +8,7 @@
(use-modules (use-modules
(gnu packages) (gnu packages)
(gnu packages gnupg) (gnu packages gnupg)
(gnu packages shellutils)
(gnu services) (gnu services)
(guix gexp) (guix gexp)
(guix channels) (guix channels)
@ -83,6 +84,7 @@
("waybar/style.css" ,(local-file "./waybar/style.css")) ("waybar/style.css" ,(local-file "./waybar/style.css"))
("fuzzel/fuzzel.ini" ,(local-file "./fuzzel/fuzzel.ini")) ("fuzzel/fuzzel.ini" ,(local-file "./fuzzel/fuzzel.ini"))
("git/config" ,(local-file "./git/config")) ("git/config" ,(local-file "./git/config"))
("liquidpromptrc" ,(local-file "./liquidprompt/liquidpromptrc"))
("emacs/init.el" ,(local-file "./emacs/init.el")) ("emacs/init.el" ,(local-file "./emacs/init.el"))
("emacs/early-init.el" ,(local-file "./emacs/early-init.el")) ("emacs/early-init.el" ,(local-file "./emacs/early-init.el"))
("emacs/init.org" ,(local-file "./emacs/init.org")) ("emacs/init.org" ,(local-file "./emacs/init.org"))
@ -97,12 +99,20 @@
("ll" . "ls -l") ("ll" . "ls -l")
("ls" . "ls --color=tty") ("ls" . "ls --color=tty")
("create-guix-patch" . "git format-patch --minimal --to guix-patches@gnu.org --cc dziltener@lyrion.ch --inline --no-attach master; ls *.patch | xargs sed -i '1d'") ("create-guix-patch" . "git format-patch --minimal --to guix-patches@gnu.org --cc dziltener@lyrion.ch --inline --no-attach master; ls *.patch | xargs sed -i '1d'")
("send-guix-patch-series" . "for FILE in $(ls *.patch); do cat $FILE | msmtp -t; done"))) ("send-guix-patch-series" . "for FILE in `find . -name '*.patch'`; do cat $FILE | msmtp -t; done")))
(bashrc (bashrc
(list (list
(local-file (local-file
"./.bashrc" "./.bashrc"
"bashrc"))))) "bashrc")
(mixed-text-file "liquidprompt"
"[[ $- = *i* ]] && source "
liquidprompt
"/share/liquidprompt/liquidprompt")
(mixed-text-file "liquidprompt-theme"
"[[ $- = *i* ]] && source "
liquidprompt
"/share/liquidprompt/themes/alternate_vcs/alternate_vcs.theme")))))
(service home-batsignal-service-type (service home-batsignal-service-type
(home-batsignal-configuration (home-batsignal-configuration
(ignore-missing? #t))) (ignore-missing? #t)))
@ -159,7 +169,7 @@
"icedove-wayland" "icedove-wayland"
"kitty" "kitty"
"ksshaskpass" "ksshaskpass"
;; "liquidprompt" https://issues.guix.gnu.org/67942 "liquidprompt"
"make" "make"
"nm-tray" "nm-tray"
"nnn" "nnn"

View File

@ -1,4 +1,4 @@
font_family VictorMono Nerd Font Mono font_family MonaspiceXe Nerd Font Mono
font_size 10 font_size 10
background_opacity 0.85 background_opacity 0.85
kitty_mod ctrl+shift kitty_mod ctrl+shift

View File

@ -0,0 +1,12 @@
LP_MARK_PREFIX=$'\n'
LP_PATH_LENGTH=50
LP_ENABLE_BATT=1
LP_ENABLE_CONTAINER=1
LP_ENABLE_DIRSTACK=1
LP_ENABLE_RUNTIME_BELL=1
LP_ENABLE_TITLE=1
LP_ENABLE_SCREEN_TITLE=1
LP_ENABLE_SSH_COLORS=1
LP_ENABLE_TIME=1
LP_TIME_ANALOG=1
LP_ENABLE_WIFI_STRENGTH=1