Added Nyxt stuff
This commit is contained in:
@@ -12,4 +12,4 @@ export XDG_DATA_HOME=~/.local/share
|
|||||||
export XDG_STATE_HOME=~/.config/zsh
|
export XDG_STATE_HOME=~/.config/zsh
|
||||||
export EDITOR=nvim
|
export EDITOR=nvim
|
||||||
export VISUAL=nvim
|
export VISUAL=nvim
|
||||||
export GUIX_PROFILE="/home/ry/.config//guix/current" . "$GUIX_PROFILE/etc/profile"
|
export GUIX_PROFILE="/home/ry/.config/guix/current" . "$GUIX_PROFILE/etc/profile"
|
||||||
|
|||||||
@@ -15,16 +15,12 @@ source $ZSH/oh-my-zsh.sh
|
|||||||
export PATH=/home/ry/scripts:$PATH
|
export PATH=/home/ry/scripts:$PATH
|
||||||
# cron scripts
|
# cron scripts
|
||||||
export PATH=/home/ry/scripts/cron-scripts:$PATH
|
export PATH=/home/ry/scripts/cron-scripts:$PATH
|
||||||
# rust
|
|
||||||
export PATH=/home/ry/.cargo/bin:$PATH
|
|
||||||
# bin
|
|
||||||
export PATH=/bin:$PATH
|
|
||||||
# doom
|
# doom
|
||||||
export PATH=~/.config/emacs/bin:$PATH
|
export PATH=~/.config/emacs/bin:$PATH
|
||||||
# GUIX PATH
|
# GNU Guix path
|
||||||
export PATH=/home/ry/.guix-profile/bin:$PATH
|
export PATH=/home/ry/.guix-profile/bin:$PATH
|
||||||
|
|
||||||
# locale --- #
|
# --- locale --- #
|
||||||
export LANG=en_US.UTF-8
|
export LANG=en_US.UTF-8
|
||||||
|
|
||||||
# --- autostart --- #
|
# --- autostart --- #
|
||||||
|
|||||||
39
Desktop.org
39
Desktop.org
@@ -1,13 +1,48 @@
|
|||||||
#+TITLE: Desktop Configuration
|
#+TITLE: Desktop Configuration
|
||||||
|
|
||||||
This =.org= document is where I store all of my user-level application configuration including shells, terminal emulators, etc.
|
This =.org= document is where I store all of my user-level application configuration including shells, terminal emulators, browsers etc.
|
||||||
|
|
||||||
|
* Nyxt
|
||||||
|
|
||||||
|
Nyxt is a browser written in Common Lisp that follows the same philosophy of extensibility as Emacs. This makes it a perfect companion to an Emacs centered eco-system when you need a browser with more features than Eww.
|
||||||
|
|
||||||
|
#+begin_src lisp :tangle ~/Dotfiles/.config/nyxt/init.lisp :mkdirp yes
|
||||||
|
;; Set default modes when opening Nyxt.
|
||||||
|
(define-configuration buffer
|
||||||
|
((default-modes (append '(dark-mode
|
||||||
|
vi-normal-mode) %slot-default%))))
|
||||||
|
|
||||||
|
;; Keybindings
|
||||||
|
;; (Note: Override Map will override any other custom keybindings so use a prefix key.)
|
||||||
|
(define-configuration buffer
|
||||||
|
((override-map (define-key %slot-default%
|
||||||
|
"C-x s" 'nyxt/web-mode:search-buffers
|
||||||
|
"C-x d" 'delete-current-buffer))))
|
||||||
|
|
||||||
|
;; todo: Redirect reddit to teddit
|
||||||
|
;; (defun old-reddit-handler (request-data)
|
||||||
|
;; (let ((url (url request-data)))
|
||||||
|
;; (setf (url request-data)
|
||||||
|
;; (if (search "reddit.com" (quri:uri-host url))
|
||||||
|
;; (progn
|
||||||
|
;; (setf (quri:uri-host url) "old.reddit.com")
|
||||||
|
;; (log:info "Switching to old Reddit: ~s" (render-url url))
|
||||||
|
;; url)
|
||||||
|
;; url)))
|
||||||
|
;; request-data)
|
||||||
|
|
||||||
|
;; (define-configuration web-buffer
|
||||||
|
;; ((request-resource-hook
|
||||||
|
;; (hooks:add-hook %slot-default% (make-handler-resource #'old-reddit-handler)))))
|
||||||
|
;; (See url-dispatching-handler for a simpler way to achieve the same result.)
|
||||||
|
#+end_src
|
||||||
|
|
||||||
* Shell
|
* Shell
|
||||||
|
|
||||||
Aside from using e-shell for quick command line usage, I mainly use vterm with Zsh. It's a bit of a complicated setup but allows for the maximum number of files possible to live in .config instead of littering my home directory. The entry-poignado
|
Aside from using e-shell for quick command line usage, I mainly use vterm with Zsh. It's a bit of a complicated setup but allows for the maximum number of files possible to live in .config instead of littering my home directory. The entry-poignado
|
||||||
|
|
||||||
** zshrc
|
** zshrc
|
||||||
#+begin_src shell :tangle ~/Dotfiles/.config/zsh/.zshrc
|
#+begin_src shell :tangle ~/Dotfiles/.config/zsh/.zshrc :mkdirp yes
|
||||||
[[ $TERM == "dumb" ]] && unsetopt zle && PS1='$ ' && return
|
[[ $TERM == "dumb" ]] && unsetopt zle && PS1='$ ' && return
|
||||||
|
|
||||||
# --- zsh config --- #
|
# --- zsh config --- #
|
||||||
|
|||||||
Reference in New Issue
Block a user