[provisioning] Add hyprland

This commit is contained in:
Correl Roush 2023-09-05 23:08:29 -04:00
parent fad1925fb6
commit dae19b6947
5 changed files with 104 additions and 8 deletions

View file

@ -66,6 +66,12 @@ https://dtinth.github.io/comic-mono-font/
(after! php-mode
(add-hook 'php-mode-hook #'my/buffer-face-comic-mono))
#+end_src
** Emoji Support
Use the Noto Emoji font.
#+begin_src emacs-lisp
(setf use-default-font-for-symbols nil)
(set-fontset-font t 'unicode "Noto Emoji" nil 'append)
#+end_src
** Mixed Pitch
Facilitates mixing monospace and proportional fonts. I'm using an MIT-licensed
version of the [[https://github.com/edwardtufte/et-book][Edward Tufte book font]] because it's /gorgeous/.
@ -1045,6 +1051,11 @@ Download and use a recent version of [[https://github.com/stathissideris/ditaa][
(setq org-ditaa-jar-path jar-path
org-ditaa-eps-jar-path jar-path)))
#+end_src
*** DND
#+begin_src emacs-lisp
(use-package! org-d20
:after org)
#+end_src
** ReStructuredText
#+begin_src emacs-lisp
(use-package! polymode
@ -1239,7 +1250,7 @@ Prefer sending HTML-formatted messages with plain text as a fallback option
(interactive)
(ement-disconnect (mapcar #'cdr ement-sessions))
(when (modulep! :ui workspaces)
(+workspace/delete +matrix-workspace-name))
(+workspace/delete +matrix-workspace-name))
(when +matrix--old-wconf
(set-window-configuration +matrix--old-wconf)
(setq +matrix--old-wconf nil)))
@ -1248,7 +1259,8 @@ Prefer sending HTML-formatted messages with plain text as a fallback option
(set-popup-rule! "\\*Ement " :ignore t))
:custom
(ement-room-prism 'both)
(ement-save-sessions t))
(ement-save-sessions t) ;; Beware, this stores your token to disk in plain text!
)
#+end_src
** Music
Configure EMMS for playing music files on my computer.
@ -1542,6 +1554,14 @@ Manage background services
:cwd (expand-file-name "~/Public/roam")
:tags '(personal autostart)
:kill-signal 'sigkill))
(when (f-exists? (expand-file-name "~/code/correl.github.io"))
(prodigy-define-service
:name "Blog"
:command "hugo"
:args '("serve" "-D")
:cwd (expand-file-name "~/code/correl.github.io")
:rags '(personal)
:kill-signal 'sigkill))
(mapcar
#'prodigy-start-service
(-concat (prodigy-services-tagged-with 'autostart))))
@ -1727,3 +1747,8 @@ Emits rich presence to Discord.
elcord-use-major-mode-as-main-icon t)
(elcord-mode t))
#+end_src
** MTG Mode
#+begin_src emacs-lisp
(use-package! mtg
:commands (mtg-mode))
#+end_src

View file

@ -107,8 +107,8 @@
;;rgb ; creating color strings
;;taskrunner ; taskrunner for all your projects
;;terraform ; infrastructure as code
tree-sitter
;;tmux ; an API for interacting with tmux
tree-sitter ; syntax and parsing, sitting in a tree...
;;upload ; map local to remote projects via ssh/ftp
:os
@ -128,7 +128,9 @@
;;(dart +flutter) ; paint ui and not much else
;;dhall
(elixir +lsp) ; erlang done right
(elm +lsp) ; care for a cup of TEA?
(elm ; care for a cup of TEA?
+lsp
+tree-sitter)
emacs-lisp ; drown in parentheses
;;erlang ; an elegant language for a more civilized age
;;ess ; emacs speaks statistics
@ -168,7 +170,12 @@
(php +lsp) ; perl's insecure younger brother
plantuml ; diagrams for confusing people more
;;purescript ; javascript, but functional
(python +lsp +pyenv +pyright +tree-sitter) ; beautiful is better than ugly
(python ; beautiful is better than ugly
+lsp
+pyenv
+pyright
+poetry
+tree-sitter)
;;qt ; the 'cutest' gui framework ever
;;racket ; a DSL for DSLs
;;raku ; the artist formerly known as perl6
@ -184,7 +191,9 @@
;;swift ; who asked for emoji variables?
;;terra ; Earth and Moon in alignment for performance.
web ; the tubes
yaml ; JSON, but readable
(yaml ; JSON, but readable
+lsp
+tree-sitter)
;;zig ; C, but simpler
:email

View file

@ -26,10 +26,12 @@
(package! kubernetes-tramp)
(package! migemo)
(package! mixed-pitch)
(package! mtg :recipe (:host nil :repo "git@git.phoenixinquis.net:correlr/emacs-mtg"))
(package! nov)
(package! ob-http)
(package! scad-mode)
(package! org-chef)
(package! org-d20)
(package! org-msg)
(package! org-ref)
(package! org-roam-bibtex :recipe (:host github :repo "org-roam/org-roam-bibtex"))
@ -64,5 +66,5 @@
(package! ob-ledger :recipe (:local-repo "lisp/ob-ledger"))
;; HACK: Pin transient and with-editor until https://github.com/doomemacs/doomemacs/issues/7078 is fixed
(package! transient :pin "c2bdf7e12c530eb85476d3aef317eb2941ab9440")
(package! with-editor :pin "391e76a256aeec6b9e4cbd733088f30c677d965b")
;; (package! transient :pin "c2bdf7e12c530eb85476d3aef317eb2941ab9440")
;; (package! with-editor :pin "391e76a256aeec6b9e4cbd733088f30c677d965b")

15
.zshrc
View file

@ -45,3 +45,18 @@ alias erl='rlwrap -a erl'
if [ -d ${HOME}/.cabal/bin ]; then
export PATH="${HOME}/.cabal/bin:$PATH"
fi
export NVM_DIR="$HOME/.nvm"
# [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
# [ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
# OPAM configuration
# . /home/correlr/.opam/opam-init/init.zsh > /dev/null 2> /dev/null || true
# eval "$(pyenv init --path)"
# eval "$(pyenv virtualenv-init -)"
# pyenv global $(pyenv versions --bare --skip-aliases | egrep "^(\.?[[:digit:]]+)+$" | sort -rV) > /dev/null 2> /dev/null
export STACK_ROOT=/run/media/correlr/Correl/.stack
export PLATFORMIO_CORE_DIR=/run/media/correlr/Correl/.platformio
[ -f "/media/correlr/Correl/.ghcup/env" ] && source "/run/media/correlr/Correl/.ghcup/env" # ghcup-env

45
recipes/hyprland Normal file
View file

@ -0,0 +1,45 @@
#!/bin/bash
# Description: Hyprland Wayland Compositor and Tiling Desktop Environment
set -e
# TODO:
# - Install hyprland
# - Install wlr-randr to check, control resolution
# - Install kitty
# - Install brightnessctl
# - Install waybar
# - Install latest otf-font-awesome
# - Install catppuccin theme and configure
# - Install nwgbar(-bin)
# - Install nwg-drawer(-bin)
# - Install catppuccin theme for rofi
# - Install ttf-jetbrains-mono-nerd
# - Install swaylock-effects
# - Install cava (terminal audio visualizer)
# - Install grimblast and wl-clipboard (screenshotting)
#
# Use (some) configuration files from https://github.com/yurihikari/garuda-sway-config.git
case $_PLATFORM in
arch)
_recipe _arch
_yay hyprland
_yay hyprpaper
_yay wlr-randr
_yay kitty
_yay brightnessctl
_yay waybar
_yay otf-font-awesome
_yay nwg-bar-bin
_yay nwg-drawer
_yay ttf-jetbrains-mono-nerd
_yay swaylock-effects
_yay cava
_yay grimblast
_yay wl-clipboard
;;
esac