diff --git a/.gitignore b/.gitignore index bd31edf..e69de29 100644 --- a/.gitignore +++ b/.gitignore @@ -1,10 +0,0 @@ -/.config/emacs/auto-save-list/ -/.config/emacs/elpa -/.config/emacs/eshell -/.config/emacs/history -/.config/emacs/projectile* -/.config/emacs/session* -/.config/emacs/straight/ -/.config/emacs/transient -/.config/zsh/.history -/.config/zsh/.zcompdump* \ No newline at end of file diff --git a/dotfiles/README.org b/dotfiles/README.org new file mode 100644 index 0000000..4d6747f --- /dev/null +++ b/dotfiles/README.org @@ -0,0 +1,13 @@ +#+TITLE: Dotfiles + +* Workflow +I prefer software that presents a low cognitive load in integrating and using on a day to day basis. This typically ends up being software that I can manipulate through the use of configuration files. + +* Tools (or How I Do My Computing) +With a slight nod to RMS's article of a similar name; here is a list of programs that I use on a day to day basis. + +*Text Editor*: Emacs with Evil mode. Truly the best of both worlds. +*Browser*: Nyxt Browser, an extensible browser in the vein of Emacs written in Common Lisp. I use Icecat/Firefox for anything that Nyxt can't handle. +*Windows Manager*: I've found SwayWM recently. I'm a huge fan of Wayland over Xorg and it had the least complicated integration into my workflow. +*Desktop Environment*: If I need a full DE, I use GNOME. By far the most minimal and 'out of the way' of the GNU/Linux DE's in my opinion. +*Chat*: Someone turned my onto Matrix recently and I've been really liking it. I'm able to bridge into IRC chatrooms and it keeps chat history locally so I don't need a bouncer. diff --git a/dotfiles/archive/.stow-local-ignore b/dotfiles/archive/.stow-local-ignore new file mode 100644 index 0000000..bb20453 --- /dev/null +++ b/dotfiles/archive/.stow-local-ignore @@ -0,0 +1,7 @@ +\.git +^/.*\.org +LICENSE +README: +.gitignore +.gitmodules +archive/ diff --git a/dotfiles/archive/doom/config.el b/dotfiles/archive/doom/config.el new file mode 100644 index 0000000..91b4b46 --- /dev/null +++ b/dotfiles/archive/doom/config.el @@ -0,0 +1,298 @@ +(add-to-list 'load-path "~/.guix-profile/bin/guile") +(add-to-list 'load-path "~/.guix-profile/share/emacs/site-lisp") + +;; Match Emacs program path to be the same as user shell +(defun set-exec-path-from-shell-PATH () + "Set up Emacs' `exec-path' and PATH environment variable to match +that used by the user's shell." + (interactive) + (let ((path-from-shell (replace-regexp-in-string + "[ \t\n]*$" "" (shell-command-to-string + "$SHELL --login -c 'echo $PATH'")))) + (setenv "PATH" path-from-shell) + (setq exec-path (split-string path-from-shell path-separator)))) + +(set-exec-path-from-shell-PATH) + +;; Setting general info +(setq user-full-name "Ry" + user-mail-address "ry@opal.sh") + +;; Set line number +(setq display-line-numbers-type t) + +;; Keeps text lines from going off screen. +(set-default 'truncate-lines nil) +;; Add this hook to ERC if I run into trouble with truncated lines in other modes. +;; (add-hook 'erc-mode-hook (lambda () (setq-default truncate-lines nil))) + + +;; Only enable line numbers for certain modes +(dolist (mode '(org-mode-hook + term-mode-hook + shell-mode-hook + eshell-mode-hook)) + (add-hook mode (lambda () (display-line-numbers-mode 0)))) + +;; Enable clipboard +(setq x-select-enable-clipboard t) + +;; load theme +(setq doom-theme 'modus-operandi) + +;; Configure Modus theme +(use-package modus-themes + :init + (setq modus-themes-italic-constructs t + modus-themes-bold-constructs nil + modus-themes-region '(accented bg-only no-extend) + modus-themes-org-blocks 'greyscale + modus-themes-paren-match 'intense + modus-themes-mixed-fonts t) + + ;; Load the theme files before enabling a theme + (modus-themes-load-themes) + :config + + (modus-themes-load-vivendi) ;; OR (modus-themes-load-operandi) + :bind ("" . modus-themes-toggle)) + +;; Set fonts +(set-face-attribute 'default nil :font "Fira Code" :height 125 :weight 'medium) +(set-face-attribute 'variable-pitch nil :font "Fira Sans" :height 1.0 :weight 'regular) +(set-face-attribute 'fixed-pitch nil :font "Fira Code" :height 1.0 :weight 'medium) + +(defun rymacs/org-font-setup () + ;; Replace list hyphen with dot + (font-lock-add-keywords 'org-mode + '(("^ *\\([-]\\) " + (0 (prog1 () (compose-region (match-beginning 1) (match-end 1) + "•")))))) + + ;; Set faces for heading levels + (dolist (face '((org-level-1 . 1.2) + (org-level-2 . 1.1) + (org-level-3 . 1.05) + (org-level-4 . 1.0) + (org-level-5 . 1.1) + (org-level-6 . 1.1) + (org-level-7 . 1.1) + (org-level-8 . 1.1))) + (set-face-attribute (car face) nil :font "Cantarell" :weight 'regular :height (cdr face))) + + ;; Ensure that anything that should be fixed-pitch in Org files appears that way + (set-face-attribute 'org-block nil :foreground nil :inherit 'fixed-pitch) + (set-face-attribute 'org-table nil :inherit 'fixed-pitch) + (set-face-attribute 'org-formula nil :inherit 'fixed-pitch) + (set-face-attribute 'org-code nil :inherit '(shadow fixed-pitch)) + (set-face-attribute 'org-table nil :inherit '(shadow fixed-pitch)) + (set-face-attribute 'org-verbatim nil :inherit '(shadow fixed-pitch)) + (set-face-attribute 'org-special-keyword nil :inherit '(font-lock-comment-face fixed-pitch)) + (set-face-attribute 'org-meta-line nil :inherit '(font-lock-comment-face fixed-pitch)) + (set-face-attribute 'org-checkbox nil :inherit 'fixed-pitch) + (set-face-attribute 'line-number nil :inherit 'fixed-pitch) + (set-face-attribute 'line-number-current-line nil :inherit 'fixed-pitch)) + +;; Set org agenda dir +(setq org-directory "~/org/") + +(defun rymacs/org-mode-setup () + (org-indent-mode) + (variable-pitch-mode 1) + (visual-line-mode 1) + (setq org-startup-folded t)) + +(use-package org + :commands (org-capture org-agenda) + :hook (org-mode . rymacs/org-mode-setup) + :config + (setq org-ellipsis " ▾") + (setq org-agenda-start-with-log-mode t) + (setq org-log-done 'time) + (setq org-log-into-drawer t) + + (setq org-agenda-files + '("~/org/projects/" + "~/org/tasks/" + )) + + (require 'org-habit) + (add-to-list 'org-modules 'org-habit) + (setq org-habit-graph-column 60) + + (setq org-todo-keywords + '((sequence "TODO(t)" "NEXT(n)" "|" "DONE(d!)") + (sequence "BACKLOG(b)" "PLAN(p)" "READY(r)" "ACTIVE(a)" "REVIEW(v)" "WAIT(w@/!)" "HOLD(h)" "|" "COMPLETED(c)" "CANC(k@)"))) + + (setq org-refile-targets + '(("archive.org" :maxlevel . 1) + ("planner.org" :maxlevel . 1))) + + ;; Save Org buffers after refiling! + (advice-add 'org-refile :after 'org-save-all-org-buffers) + + (setq org-tag-alist + '((:startgroup) + ; Put mutually exclusive tags here + (:endgroup) + ("@errand" . ?E) + ("@home" . ?H) + ("@work" . ?W) + ("agenda" . ?a) + ("planning" . ?p) + ("publish" . ?P) + ("batch" . ?b) + ("note" . ?n) + ("idea" . ?i))) + + ;; Configure custom agenda views + (setq org-agenda-custom-commands + '(("d" "Dashboard" + ((agenda "" ((org-deadline-warning-days 7))) + (todo "NEXT" + ((org-agenda-overriding-header "Next Tasks"))) + (tags-todo "agenda/ACTIVE" ((org-agenda-overriding-header "Active Projects"))))) + + ("n" "Next Tasks" + ((todo "NEXT" + ((org-agenda-overriding-header "Next Tasks"))))) + + ;; Low-effort next actions + ("e" tags-todo "+TODO=\"NEXT\"+Effort<15&+Effort>0" + ((org-agenda-overriding-header "Low Effort Tasks") + (org-agenda-max-todos 20) + (org-agenda-files org-agenda-files))))) + + ;; Create capture templates + (setq org-capture-templates + `(("t" "Tasks") + ("tt" "Task" entry (file+olp "~/org/planner/tasks.org" "Inbox") + "* TODO %?\n %U\n %a\n %i" :empty-lines 1) + + ("p" "Projects") + ("pp" "Project File" entry (file+olp "~/org/projects/auto-infra-overview.org" "Inbox") + "* TODO %?\n %U\n %a\n %i" :empty-lines 1))) + ;; Init font setup + (rymacs/org-font-setup)) + +;; Change default pretty bullets to circles +(use-package org-bullets + :after org + :hook (org-mode . org-bullets-mode) + :custom + (org-bullets-bullet-list '("◉" "○" "●" "○" "●" "○" "●"))) + +;; Creates margins, and centerrs content in org mode. +(defun rymacs/org-mode-visual-fill () + (setq visual-fill-column-width 100 + visual-fill-column-center-text t) + (visual-fill-column-mode 1)) + +(use-package visual-fill-column + :hook (org-mode . rymacs/org-mode-visual-fill)) + +(use-package ob-racket + :after org + :config + (add-hook 'ob-racket-pre-runtime-library-load-hook + #'ob-racket-raco-make-runtime-library)) + +;; Load languages for babel code blocks. +(with-eval-after-load 'org + (org-babel-do-load-languages + 'org-babel-load-languages + '((emacs-lisp . t) + (racket . t) + (python . t) + (scheme . t) + (javascript . t) + (html . t) + (css . t) + (lisp . t))) + + (push '("conf-unix" . conf-unix) org-src-lang-modes)) + +(setq geiser-default-implementation '(guile)) + +;; Make shortcuts to easily create babel source code blocks. +(with-eval-after-load 'org + (require 'org-tempo) + + (add-to-list 'org-structure-template-alist '("sh" . "src shell")) + (add-to-list 'org-structure-template-alist '("el" . "src emacs-lisp")) + (add-to-list 'org-structure-template-alist '("py" . "src python")) + (add-to-list 'org-structure-template-alist '("yml" . "src yaml")) + (add-to-list 'org-structure-template-alist '("scm" . "src scheme")) + (add-to-list 'org-structure-template-alist '("js" . "src javascript")) + (add-to-list 'org-structure-template-alist '("html" . "src html")) + (add-to-list 'org-structure-template-alist '("css" . "src css")) + (add-to-list 'org-structure-template-alist '("rt" . "src racket")) + (add-to-list 'org-structure-template-alist '("cl" . "src lisp"))) + +;; ;; Define a function that automatically executes rymacs/org-babel-tangle-config (a wrapper around org-babel-tangle) when saving this file. +;; (defun rymacs/org-babel-tangle-config () +;; (when (string-equal (file-name-directory (buffer-file-name)) +;; (expand-file-name "~/.dotfiles/.config/doom")) + +;; (let ((org-confirm-babel-evaluate nil)) +;; (org-babel-tangle)))) + +;; (add-hook 'org-mode-hook (lambda () (add-hook 'after-save-hook #'rymacs/org-babel-tangle-config))) + +(after! sly + (load "/home/ry/quicklisp/clhs-use-local.el" t) + (setq sly-lisp-implementations + '((sbcl ("/bin/sbcl" "-L" "sbcl" "-Q" "run") :coding-system utf-8-unix) + (ccl ("/usr/local/bin/ccl64" :coding-system utf-8-unix))))) + +(defmacro define-sly-lisp (name) + `(defun ,name () (interactive) (let ((sly-default-lisp ',name)) (sly)))) + +(define-sly-lisp sbcl) +(define-sly-lisp ccl) + +(use-package mu4e + :config + ;; This is set to 't' to avoid mail syncing issues when using mbsync + (setq mu4e-change-filenames-when-moving t) + + ;; Refresh mail using isync every 5 minutes + (setq mu4e-update-interval (* 5 60)) + (setq mu4e-get-mail-command "mbsync -a -c ~/Dotfiles/.config/mbsync/mbsyncrc") + (setq mu4e-maildir "~/Mail") + + (setq mu4e-contexts + (list + ;; Opal.sh + (make-mu4e-context + :name "Ry P." + :match-func + (lambda (msg) + (when msg + (string-prefix-p "/opal.sh" (mu4e-message-field msg :maildir)))) + + :vars '((user-mail-address . "ry@opal.sh") + (user-full-name . "Ry P.") + (mu4e-drafts-folder . "/opal.sh/Drafts") + (mu4e-sent-folder . "/opal.sh/Sent") + (mu4e-trash-folder . "/opal.sh/Trash"))))) + + (setq mu4e-maildir-shortcuts + '(("/opal.sh/Inbox" . ?i) + ("/opal.sh/Sent" . ?s) + ("/opal.sh/Trash" . ?t) + ("/opal.sh/Drafts" . ?d)))) + +(setq erc-server "irc.libera.chat" ;sets default server + erc-nick "opalvaults" ; Sets nick + erc-user-full-name "opalvaults" + erc-track-shorten-start 8 + erc-kill-buffer-on-part t + erc-auto-query 'bury + erc-fill-column 90 + erc-fill-function 'erc-fill-static + erc-fill-static-center 20 + erc-track-visibility nil + erc-interpret-mirc-color t + erc-rename-buffers t + erc-track-exclude-server-buffer t) diff --git a/dotfiles/archive/doom/init.el b/dotfiles/archive/doom/init.el new file mode 100644 index 0000000..e8ddde7 --- /dev/null +++ b/dotfiles/archive/doom/init.el @@ -0,0 +1,189 @@ +;;; init.el -*- lexical-binding: t; -*- + +;; This file controls what Doom modules are enabled and what order they load +;; in. Remember to run 'doom sync' after modifying it! + +;; NOTE Press 'SPC h d h' (or 'C-h d h' for non-vim users) to access Doom's +;; documentation. There you'll find a "Module Index" link where you'll find +;; a comprehensive list of Doom's modules and what flags they support. + +;; NOTE Move your cursor over a module's name (or its flags) and press 'K' (or +;; 'C-c c k' for non-vim users) to view its documentation. This works on +;; flags as well (those symbols that start with a plus). +;; +;; Alternatively, press 'gd' (or 'C-c c d') on a module to browse its +;; directory (for easy access to its source code). + +(doom! :input + ;;chinese + ;;japanese + ;;layout ; auie,ctsrnm is the superior home row + + :completion + company ; the ultimate code completion backend + ;;helm ; the *other* search engine for love and life + ;;ido ; the other *other* search engine... + ;;ivy ; a search engine for love and life + vertico ; the search engine of the future + + :ui + ;;deft ; notational velocity for Emacs + doom ; what makes DOOM look the way it does + ;;doom-dashboard ; a nifty splash screen for Emacs + ;;doom-quit ; DOOM quit-message prompts when you quit Emacs + (emoji +unicode) ; 🙂 + hl-todo ; highlight TODO/FIXME/NOTE/DEPRECATED/HACK/REVIEW + ;;hydra + ;;indent-guides ; highlighted indent columns + ligatures ; ligatures and symbols to make your code pretty again + ;;minimap ; show a map of the code on the side + modeline ; snazzy, Atom-inspired modeline, plus API + ;;nav-flash ; blink cursor line after big motions + ;;neotree ; a project drawer, like NERDTree for vim + ophints ; highlight the region an operation acts on + (popup +defaults) ; tame sudden yet inevitable temporary windows + tabs ; a tab bar for Emacs + ;;treemacs ; a project drawer, like neotree but cooler + unicode ; extended unicode support for various languages + vc-gutter ; vcs diff in the fringe + vi-tilde-fringe ; fringe tildes to mark beyond EOB + ;;window-select ; visually switch windows + workspaces ; tab emulation, persistence & separate workspaces + ;;zen ; distraction-free coding or writing + + :editor + (evil +everywhere); come to the dark side, we have cookies + file-templates ; auto-snippets for empty files + fold ; (nigh) universal code folding + (format +onsave) ; automated prettiness + ;;god ; run Emacs commands without modifier keys + ;;lispy ; vim for lisp, for people who don't like vim + ;;multiple-cursors ; editing in many places at once + ;;objed ; text object editing for the innocent + ;;parinfer ; turn lisp into python, sort of + ;;rotate-text ; cycle region at point between text candidates + snippets ; my elves. They type so I don't have to + word-wrap ; soft wrapping with language-aware indent + + :emacs + dired ; making dired pretty [functional] + electric ; smarter, keyword-based electric-indent + ibuffer ; interactive buffer management + undo ; persistent, smarter undo for your inevitable mistakes + vc ; version-control and Emacs, sitting in a tree + + :term + eshell ; the elisp shell that works everywhere + ;;shell ; simple shell REPL for Emacs + ;;term ; basic terminal emulator for Emacs + vterm ; the best terminal emulation in Emacs + + :checkers + syntax ; tasing you for every semicolon you forget + ;;(spell +flyspell) ; tasing you for misspelling mispelling + grammar ; tasing grammar mistake every you make + + :tools + ;;ansible + ;;debugger ; FIXME stepping through code, to help you add bugs + ;;direnv + docker + ;;editorconfig ; let someone else argue about tabs vs spaces + ;;ein ; tame Jupyter notebooks with emacs + (eval +overlay) ; run code, run (also, repls) + ;;gist ; interacting with github gists + lookup ; navigate your code and its documentation + lsp ; M-x vscode + magit ; a git porcelain for Emacs + ;;make ; run make tasks from Emacs + ;;pass ; password manager for nerds + pdf ; pdf enhancements + ;;prodigy ; FIXME managing external services & code builders + ;;rgb ; creating color strings + ;;taskrunner ; taskrunner for all your projects + ;;terraform ; infrastructure as code + ;;tmux ; an API for interacting with tmux + ;;upload ; map local to remote projects via ssh/ftp + + :os + (:if IS-MAC macos) ; improve compatibility with macOS + tty ; improve the terminal Emacs experience + + :lang + ;;agda ; types of types of types of types... + ;;beancount ; mind the GAAP + ;;cc ; C > C++ == 1 + ;;clojure ; java with a lisp + common-lisp ; if you've seen one lisp, you've seen them all + ;;coq ; proofs-as-programs + ;;crystal ; ruby at the speed of c + ;;csharp ; unity, .NET, and mono shenanigans + ;;data ; config/data formats + ;;(dart +flutter) ; paint ui and not much else + ;;dhall + ;;elixir ; erlang done right + ;;elm ; care for a cup of TEA? + emacs-lisp ; drown in parentheses + ;;erlang ; an elegant language for a more civilized age + ;;ess ; emacs speaks statistics + ;;factor + ;;faust ; dsp, but you get to keep your soul + ;;fsharp ; ML stands for Microsoft's Language + ;;fstar ; (dependent) types and (monadic) effects and Z3 + ;;gdscript ; the language you waited for + ;;(go +lsp) ; the hipster dialect + ;;(haskell +lsp) ; a language that's lazier than I am + ;;hy ; readability of scheme w/ speed of python + ;;idris ; a language you can depend on + ;;json ; At least it ain't XML + ;;(java +meghanada) ; the poster child for carpal tunnel syndrome + ;;javascript ; all(hope(abandon(ye(who(enter(here)))))) + ;;julia ; a better, faster MATLAB + ;;kotlin ; a better, slicker Java(Script) + ;;latex ; writing papers in Emacs has never been so fun + ;;lean ; for folks with too much to prove + ;;ledger ; be audit you can be + ;;lua ; one-based indices? one-based indices + markdown ; writing docs for people to ignore + ;;nim ; python + lisp at the speed of c + ;;nix ; I hereby declare "nix geht mehr!" + ;;ocaml ; an objective camel + org ; organize your plain life in plain text + ;;php ; perl's insecure younger brother + ;;plantuml ; diagrams for confusing people more + ;;purescript ; javascript, but functional + python ; beautiful is better than ugly + ;;qt ; the 'cutest' gui framework ever + racket ; a DSL for DSLs + ;;raku ; the artist formerly known as perl6 + ;;rest ; Emacs as a REST client + ;;rst ; ReST in peace + ;;(ruby +rails) ; 1.step {|i| p "Ruby is #{i.even? ? 'love' : 'life'}"} + ;;rust ; Fe2O3.unwrap().unwrap().unwrap().unwrap() + ;;scala ; java, but good + (scheme +guile) ; a fully conniving family of lisps + sh ; she sells {ba,z,fi}sh shells on the C xor + ;;sml + ;;solidity ; do you need a blockchain? No. + ;;swift ; who asked for emoji variables? + ;;terra ; Earth and Moon in alignment for performance. + web ; the tubes + yaml ; JSON, but readable + ;;zig ; C, but simpler + + :email + (mu4e +org +gmail) + ;;notmuch + ;;(wanderlust +gmail) + + :app + ;;calendar + ;;emms + ;;everywhere ; *leave* Emacs!? You must be joking + irc ; how neckbeards socialize + (rss +org) ; emacs as an RSS reader + ;;twitter ; twitter client https://twitter.com/vnought + + :config + ;;literate + (default +bindings +smartparens)) diff --git a/dotfiles/archive/doom/packages.el b/dotfiles/archive/doom/packages.el new file mode 100644 index 0000000..db211b9 --- /dev/null +++ b/dotfiles/archive/doom/packages.el @@ -0,0 +1,57 @@ +;; -*- no-byte-compile: t; -*- +;;; $DOOMDIR/packages.el + +;; To install a package with Doom you must declare them here and run 'doom sync' +;; on the command line, then restart Emacs for the changes to take effect -- or +;; use 'M-x doom/reload'. + +(package! org-bullets) +(package! modus-themes) +(package! org-pomodoro) +(package! visual-fill-column) +(package! tide) +(package! ob-racket + :recipe (:host github :repo "hasu/emacs-ob-racket")) + +;; To install SOME-PACKAGE from MELPA, ELPA or emacsmirror: +;(package! some-package) + +;; To install a package directly from a remote git repo, you must specify a +;; `:recipe'. You'll find documentation on what `:recipe' accepts here: +;; https://github.com/raxod502/straight.el#the-recipe-format +;(package! another-package +; :recipe (:host github :repo "username/repo")) + +;; If the package you are trying to install does not contain a PACKAGENAME.el +;; file, or is located in a subdirectory of the repo, you'll need to specify +;; `:files' in the `:recipe': +;(package! this-package +; :recipe (:host github :repo "username/repo" +; :files ("some-file.el" "src/lisp/*.el"))) + +;; If you'd like to disable a package included with Doom, you can do so here +;; with the `:disable' property: +;(package! builtin-package :disable t) + +;; You can override the recipe of a built in package without having to specify +;; all the properties for `:recipe'. These will inherit the rest of its recipe +;; from Doom or MELPA/ELPA/Emacsmirror: +;(package! builtin-package :recipe (:nonrecursive t)) +;(package! builtin-package-2 :recipe (:repo "myfork/package")) + +;; Specify a `:branch' to install a package from a particular branch or tag. +;; This is required for some packages whose default branch isn't 'master' (which +;; our package manager can't deal with; see raxod502/straight.el#279) +;(package! builtin-package :recipe (:branch "develop")) + +;; Use `:pin' to specify a particular commit to install. +;(package! builtin-package :pin "1a2b3c4d5e") + + +;; Doom's packages are pinned to a specific commit and updated from release to +;; release. The `unpin!' macro allows you to unpin single packages... +;(unpin! pinned-package) +;; ...or multiple packages +;(unpin! pinned-package another-pinned-package) +;; ...Or *all* packages (NOT RECOMMENDED; will likely break things) +;(unpin! t) diff --git a/dotfiles/archive/exwm/Xmodmap b/dotfiles/archive/exwm/Xmodmap new file mode 100644 index 0000000..d349fa4 --- /dev/null +++ b/dotfiles/archive/exwm/Xmodmap @@ -0,0 +1,2 @@ +clear lock +keycode 66 = Escape Caps_Lock NoSymbol NoSymbol \ No newline at end of file diff --git a/dotfiles/archive/old.Emacs.org b/dotfiles/archive/old.Emacs.org new file mode 100644 index 0000000..55547c8 --- /dev/null +++ b/dotfiles/archive/old.Emacs.org @@ -0,0 +1,506 @@ +#+title: Emacs Custom Configuration File +#+PROPERTY: header-args:emacs-lisp :tangle ~/Dotfiles/.config/doom/config.el :mkdirp yes :lexical yes + +* Configuration +:PROPERTIES: +:VISITBILITY: children +:END: +** Table of Contents :TOC_4_gh: +- [[#configuration][Configuration]] + - [[#general][General]] + - [[#load-paths][Load Paths]] + - [[#user-info][User Info]] + - [[#visual][Visual]] + - [[#misc][Misc]] + - [[#theme][Theme]] + - [[#fonts][Fonts]] + - [[#org][Org]] + - [[#fonts-and-symbols][Fonts and Symbols]] + - [[#general-1][General]] + - [[#better-heading-bullets][Better Heading Bullets]] + - [[#center-org-buffers][Center Org Buffers]] + - [[#org-babel][Org Babel]] + - [[#racket-specific-language][Racket Specific Language]] + - [[#babel-languages][Babel Languages]] + - [[#soure-block-creation-shortcuts][Soure Block Creation Shortcuts]] + - [[#babel-configuration-file-automation-hook][Babel Configuration File Automation Hook]] + - [[#programming-languages][Programming Languages]] + - [[#common-lisp][Common Lisp]] + - [[#mu4e-e-mail][Mu4e (E-mail)]] + - [[#erc-irc][ERC (IRC)]] + +** General +*** Load Paths +#+begin_src emacs-lisp +(add-to-list 'load-path "~/.guix-profile/bin/guile") +(add-to-list 'load-path "~/.guix-profile/share/emacs/site-lisp") + +;; Match Emacs program path to be the same as user shell +(defun set-exec-path-from-shell-PATH () + "Set up Emacs' `exec-path' and PATH environment variable to match +that used by the user's shell." + (interactive) + (let ((path-from-shell (replace-regexp-in-string + "[ \t\n]*$" "" (shell-command-to-string + "$SHELL --login -c 'echo $PATH'")))) + (setenv "PATH" path-from-shell) + (setq exec-path (split-string path-from-shell path-separator)))) + +(set-exec-path-from-shell-PATH) +#+end_src + +*** User Info +#+begin_src emacs-lisp +;; Setting general info +(setq user-full-name "Ry" + user-mail-address "ry@opal.sh") +#+end_src + +*** Visual +#+begin_src emacs-lisp + +;; Set line number +(setq display-line-numbers-type t) + +;; Keeps text lines from going off screen. +(set-default 'truncate-lines nil) +;; Add this hook to ERC if I run into trouble with truncated lines in other modes. +;; (add-hook 'erc-mode-hook (lambda () (setq-default truncate-lines nil))) + + +;; Only enable line numbers for certain modes +(dolist (mode '(org-mode-hook + term-mode-hook + shell-mode-hook + eshell-mode-hook)) + (add-hook mode (lambda () (display-line-numbers-mode 0)))) +#+end_src + +*** Misc + +#+begin_src emacs-lisp +;; Enable clipboard +(setq x-select-enable-clipboard t) +#+end_src + +** Theme +#+begin_src emacs-lisp +;; load theme +(setq doom-theme 'modus-operandi) + +;; Configure Modus theme +(use-package modus-themes + :init + (setq modus-themes-italic-constructs t + modus-themes-bold-constructs nil + modus-themes-region '(accented bg-only no-extend) + modus-themes-org-blocks 'greyscale + modus-themes-paren-match 'intense + modus-themes-mixed-fonts t) + + ;; Load the theme files before enabling a theme + (modus-themes-load-themes) + :config + + (modus-themes-load-vivendi) ;; OR (modus-themes-load-operandi) + :bind ("" . modus-themes-toggle)) + +#+end_src + +** Fonts +Using [[https://github.com/tonsky/FiraCode][Fira Code]] + Fira Code Retina. + +#+begin_src emacs-lisp + +;; Set fonts +(set-face-attribute 'default nil :font "Fira Code" :height 125 :weight 'medium) +(set-face-attribute 'variable-pitch nil :font "Fira Sans" :height 1.0 :weight 'regular) +(set-face-attribute 'fixed-pitch nil :font "Fira Code" :height 1.0 :weight 'medium) + +#+end_src + +** Org +*** Fonts and Symbols +Here we are setting general font configuration in order to make editing in org mode a bit more streamlined to look at. + +#+begin_src emacs-lisp + +(defun rymacs/org-font-setup () + ;; Replace list hyphen with dot + (font-lock-add-keywords 'org-mode + '(("^ *\\([-]\\) " + (0 (prog1 () (compose-region (match-beginning 1) (match-end 1) + "•")))))) + + ;; Set faces for heading levels + (dolist (face '((org-level-1 . 1.2) + (org-level-2 . 1.1) + (org-level-3 . 1.05) + (org-level-4 . 1.0) + (org-level-5 . 1.1) + (org-level-6 . 1.1) + (org-level-7 . 1.1) + (org-level-8 . 1.1))) + (set-face-attribute (car face) nil :font "Cantarell" :weight 'regular :height (cdr face))) + + ;; Ensure that anything that should be fixed-pitch in Org files appears that way + (set-face-attribute 'org-block nil :foreground nil :inherit 'fixed-pitch) + (set-face-attribute 'org-table nil :inherit 'fixed-pitch) + (set-face-attribute 'org-formula nil :inherit 'fixed-pitch) + (set-face-attribute 'org-code nil :inherit '(shadow fixed-pitch)) + (set-face-attribute 'org-table nil :inherit '(shadow fixed-pitch)) + (set-face-attribute 'org-verbatim nil :inherit '(shadow fixed-pitch)) + (set-face-attribute 'org-special-keyword nil :inherit '(font-lock-comment-face fixed-pitch)) + (set-face-attribute 'org-meta-line nil :inherit '(font-lock-comment-face fixed-pitch)) + (set-face-attribute 'org-checkbox nil :inherit 'fixed-pitch) + (set-face-attribute 'line-number nil :inherit 'fixed-pitch) + (set-face-attribute 'line-number-current-line nil :inherit 'fixed-pitch)) + +#+end_src + +*** General + +Main Org/Agenda configuration. + +#+begin_src emacs-lisp +;; Set org agenda dir +(setq org-directory "~/org/") + +(defun rymacs/org-mode-setup () + (org-indent-mode) + (variable-pitch-mode 1) + (visual-line-mode 1) + (setq org-startup-folded t)) + +(use-package org + :commands (org-capture org-agenda) + :hook (org-mode . rymacs/org-mode-setup) + :config + (setq org-ellipsis " ▾") + (setq org-agenda-start-with-log-mode t) + (setq org-log-done 'time) + (setq org-log-into-drawer t) + + (setq org-agenda-files + '("~/org/projects/" + "~/org/tasks/" + )) + + (require 'org-habit) + (add-to-list 'org-modules 'org-habit) + (setq org-habit-graph-column 60) + + (setq org-todo-keywords + '((sequence "TODO(t)" "NEXT(n)" "|" "DONE(d!)") + (sequence "BACKLOG(b)" "PLAN(p)" "READY(r)" "ACTIVE(a)" "REVIEW(v)" "WAIT(w@/!)" "HOLD(h)" "|" "COMPLETED(c)" "CANC(k@)"))) + + (setq org-refile-targets + '(("archive.org" :maxlevel . 1) + ("planner.org" :maxlevel . 1))) + + ;; Save Org buffers after refiling! + (advice-add 'org-refile :after 'org-save-all-org-buffers) + + (setq org-tag-alist + '((:startgroup) + ; Put mutually exclusive tags here + (:endgroup) + ("@errand" . ?E) + ("@home" . ?H) + ("@work" . ?W) + ("agenda" . ?a) + ("planning" . ?p) + ("publish" . ?P) + ("batch" . ?b) + ("note" . ?n) + ("idea" . ?i))) + + ;; Configure custom agenda views + (setq org-agenda-custom-commands + '(("d" "Dashboard" + ((agenda "" ((org-deadline-warning-days 7))) + (todo "NEXT" + ((org-agenda-overriding-header "Next Tasks"))) + (tags-todo "agenda/ACTIVE" ((org-agenda-overriding-header "Active Projects"))))) + + ("n" "Next Tasks" + ((todo "NEXT" + ((org-agenda-overriding-header "Next Tasks"))))) + + ;; Low-effort next actions + ("e" tags-todo "+TODO=\"NEXT\"+Effort<15&+Effort>0" + ((org-agenda-overriding-header "Low Effort Tasks") + (org-agenda-max-todos 20) + (org-agenda-files org-agenda-files))))) + + ;; Create capture templates + (setq org-capture-templates + `(("t" "Tasks") + ("tt" "Task" entry (file+olp "~/org/planner/tasks.org" "Inbox") + "* TODO %?\n %U\n %a\n %i" :empty-lines 1) + + ("p" "Projects") + ("pp" "Project File" entry (file+olp "~/org/projects/auto-infra-overview.org" "Inbox") + "* TODO %?\n %U\n %a\n %i" :empty-lines 1))) + ;; Init font setup + (rymacs/org-font-setup)) + +#+end_src + +*** Better Heading Bullets + +#+begin_src emacs-lisp + +;; Change default pretty bullets to circles +(use-package org-bullets + :after org + :hook (org-mode . org-bullets-mode) + :custom + (org-bullets-bullet-list '("◉" "○" "●" "○" "●" "○" "●"))) + +#+end_src + +*** Center Org Buffers + +#+begin_src emacs-lisp + +;; Creates margins, and centerrs content in org mode. +(defun rymacs/org-mode-visual-fill () + (setq visual-fill-column-width 100 + visual-fill-column-center-text t) + (visual-fill-column-mode 1)) + +(use-package visual-fill-column + :hook (org-mode . rymacs/org-mode-visual-fill)) + +#+end_src + +*** Org Babel +Org Babel allows us to evaluate source code blocks within org mode. With this functionality, we can tell org babel to insert the content of the source block codes into any file specified by using the org-babel-tangle function. +**** Racket Specific Language + +#+begin_src emacs-lisp +(use-package ob-racket + :after org + :config + (add-hook 'ob-racket-pre-runtime-library-load-hook + #'ob-racket-raco-make-runtime-library)) +#+end_src + +**** Babel Languages + +#+begin_src emacs-lisp + +;; Load languages for babel code blocks. +(with-eval-after-load 'org + (org-babel-do-load-languages + 'org-babel-load-languages + '((emacs-lisp . t) + (racket . t) + (python . t) + (scheme . t) + (javascript . t) + (html . t) + (css . t) + (lisp . t))) + + (push '("conf-unix" . conf-unix) org-src-lang-modes)) + +(setq geiser-default-implementation '(guile)) +#+end_src + +#+RESULTS: +| guile | + +**** Soure Block Creation Shortcuts +Here we use a package called org-tempo. + +#+begin_src emacs-lisp + +;; Make shortcuts to easily create babel source code blocks. +(with-eval-after-load 'org + (require 'org-tempo) + + (add-to-list 'org-structure-template-alist '("sh" . "src shell")) + (add-to-list 'org-structure-template-alist '("el" . "src emacs-lisp")) + (add-to-list 'org-structure-template-alist '("py" . "src python")) + (add-to-list 'org-structure-template-alist '("yml" . "src yaml")) + (add-to-list 'org-structure-template-alist '("scm" . "src scheme")) + (add-to-list 'org-structure-template-alist '("js" . "src javascript")) + (add-to-list 'org-structure-template-alist '("html" . "src html")) + (add-to-list 'org-structure-template-alist '("css" . "src css")) + (add-to-list 'org-structure-template-alist '("rt" . "src racket")) + (add-to-list 'org-structure-template-alist '("cl" . "src lisp"))) +#+end_src + +**** Babel Configuration File Automation Hook + +TODO: This needs to be fixed, or find an equiv. +Since we don't want to have to manually use the org-babel-tangle function everytime we make changes to the corresponding .org file, we create an automation hook that executes the function every time we save. + +#+begin_src emacs-lisp + +;; ;; Define a function that automatically executes rymacs/org-babel-tangle-config (a wrapper around org-babel-tangle) when saving this file. +;; (defun rymacs/org-babel-tangle-config () +;; (when (string-equal (file-name-directory (buffer-file-name)) +;; (expand-file-name "~/.dotfiles/.config/doom")) + +;; (let ((org-confirm-babel-evaluate nil)) +;; (org-babel-tangle)))) + +;; (add-hook 'org-mode-hook (lambda () (add-hook 'after-save-hook #'rymacs/org-babel-tangle-config))) + +#+end_src + +# *** Org Roam +# I use Org Roam as an alternative to writing traditional notes. Instead of long sprawling .org files, each note in Org roam is a excerpt of a specific idea or topic that has links to other notes made with Org Roam. Roam also allows you to pull up a buffer to look at which notes are linked in other notes. This creates a spawling network of information that is useful, quick to draw information from, and can create a notetaking experience that is interactive and seamless. + +# #+begin_src emacs-lisp + +# (use-package org-roam +# :init +# (setq org-roam-v2-ack t) +# :custom +# (org-roam-directory "~/roam/notes/") +# (org-roam-completion-everywhere t) +# (org-roam-capture-templates +# '(("d" "default" plain +# "%?" +# :if-new (file+head "%<%Y%m%d%H%M%S>-${slug}.org" "#+title: ${title}\n") +# :unnarrowed t) +# ("r" "resources" plain +# (file "~/roam/templates/resource-template.org") +# :if-new (file+head "%<%Y%m%d%H%M%S>-${slug}.org" "#+title: ${title}\n") +# :unnarrowed t) +# ("f" "files" plain +# (file "~/roam/templates/res-file-note-temp.org") +# :if-new (file+head "%<%Y%m%d%H%M%S>-${slug}.org" "#+title: ${title}\n") +# :unnarrowed t) +# ("c" "cli" plain +# (file "~/roam/templates/commands-template.org") +# :if-new (file+head "%<%Y%m%d%H%M%S>-${slug}.org" "#+title: ${title}\n") +# :unnarrowed t))) +# :bind (("C-c n l" . org-roam-buffer-toggle) +# ("C-c n f" . org-roam-node-find) +# ("C-c n i" . org-roam-node-insert) +# ("C-c n I" . org-roam-node-insert-immediate) +# ("C-c n p" . my/org-roam-find-project) +# :map org-mode-map +# ("C-M-i" . completion-at-point) +# :map org-roam-dailies-map +# ("Y" . org-roam-dailies-capture-yesterday) +# ("T" . org-roam-dailies-capture-tomorrow)) +# :bind-keymap +# ("C-c n d" . org-roam-dailies-map) +# :config +# (require 'org-roam-dailies) ;; Ensure the keymap is available +# (org-roam-db-autosync-mode)) + +# ;; Function to enable the ability to quickly insert a link without +# ;; opening a capture buffer. +# (defun org-roam-node-insert-immediate (arg &rest args) +# (interactive "P") +# (let ((args (cons arg args)) +# (org-roam-capture-templates (list (append (car org-roam-capture-templates) +# '(:immediate-finish t))))) +# (apply #'org-roam-node-insert args))) + +# #+end_src + +# *** Deft Configuration + +# Deft is a package that helps browse and filter plain text files. I use it to search through org-roam notes. + +# #+begin_src emacs-lisp + +# (use-package deft +# :after org +# :bind +# ("C-c n d" . deft) +# :custom +# (deft-recursive t) +# (deft-use-filter-string-for-filename t) +# (deft-default-extension "org") +# (deft-directory org-roam-directory)) + +# #+end_src +** Programming Languages +*** Common Lisp +#+begin_src emacs-lisp +(after! sly + (load "/home/ry/quicklisp/clhs-use-local.el" t) + (setq sly-lisp-implementations + '((sbcl ("/bin/sbcl" "-L" "sbcl" "-Q" "run") :coding-system utf-8-unix) + (ccl ("/usr/local/bin/ccl64" :coding-system utf-8-unix))))) + +(defmacro define-sly-lisp (name) + `(defun ,name () (interactive) (let ((sly-default-lisp ',name)) (sly)))) + +(define-sly-lisp sbcl) +(define-sly-lisp ccl) +#+end_src + +** Mu4e (E-mail) + +Account Information: + - IMAP: imap.opal.sh -- 993 + - SMTP smtp.opal.sh -- 587 + +#+begin_src emacs-lisp + +(use-package mu4e + :config + ;; This is set to 't' to avoid mail syncing issues when using mbsync + (setq mu4e-change-filenames-when-moving t) + + ;; Refresh mail using isync every 5 minutes + (setq mu4e-update-interval (* 5 60)) + (setq mu4e-get-mail-command "mbsync -a -c ~/Dotfiles/.config/mbsync/mbsyncrc") + (setq mu4e-maildir "~/Mail") + + (setq mu4e-contexts + (list + ;; Opal.sh + (make-mu4e-context + :name "Ry P." + :match-func + (lambda (msg) + (when msg + (string-prefix-p "/opal.sh" (mu4e-message-field msg :maildir)))) + + :vars '((user-mail-address . "ry@opal.sh") + (user-full-name . "Ry P.") + (mu4e-drafts-folder . "/opal.sh/Drafts") + (mu4e-sent-folder . "/opal.sh/Sent") + (mu4e-trash-folder . "/opal.sh/Trash"))))) + + (setq mu4e-maildir-shortcuts + '(("/opal.sh/Inbox" . ?i) + ("/opal.sh/Sent" . ?s) + ("/opal.sh/Trash" . ?t) + ("/opal.sh/Drafts" . ?d)))) + +#+end_src + +** ERC (IRC) + +#+begin_src emacs-lisp + +(setq erc-server "irc.libera.chat" ;sets default server + erc-nick "opalvaults" ; Sets nick + erc-user-full-name "opalvaults" + erc-track-shorten-start 8 + erc-kill-buffer-on-part t + erc-auto-query 'bury + erc-fill-column 90 + erc-fill-function 'erc-fill-static + erc-fill-static-center 20 + erc-track-visibility nil + erc-interpret-mirc-color t + erc-rename-buffers t + erc-track-exclude-server-buffer t) +#+end_src + +#+RESULTS: +: t + diff --git a/dotfiles/guix/channels.scm b/dotfiles/guix/channels.scm new file mode 100644 index 0000000..ac4862b --- /dev/null +++ b/dotfiles/guix/channels.scm @@ -0,0 +1,16 @@ +(list (channel + (name 'guix) + (url "https://git.savannah.gnu.org/git/guix.git") + (introduction + (make-channel-introduction + "9edb3f66fd807b096b48283debdcddccfea34bad" + (openpgp-fingerprint + "BBB0 2DDF 2CEA F6A8 0D1D E643 A2A0 6DF2 A33A 54FA")))) + (channel + (name 'nonguix) + (url "https://gitlab.com/nonguix/nonguix") + (introduction + (make-channel-introduction + "897c1a470da759236cc11798f4e0a5f7d4d59fbc" + (openpgp-fingerprint + "2A39 3FFF 68F4 EF7A 3D29 12AF 6F51 20A0 22FB B2D5"))))) diff --git a/dotfiles/guix/home/files/alacritty.yml b/dotfiles/guix/home/files/alacritty.yml new file mode 100644 index 0000000..2270f48 --- /dev/null +++ b/dotfiles/guix/home/files/alacritty.yml @@ -0,0 +1,19 @@ +# Env +env: + TERM: xterm-256color + +# Font configuration +font: + normal: + family: inconsolata + style: Regular + bold: + family: inconsolata + style: Bold + italic: + family: inconsolata + style: Italic + bold_italic: + family: inconsolata + style: Bold Italic + size: 16 diff --git a/dotfiles/guix/home/files/alacritty/alacritty.yml b/dotfiles/guix/home/files/alacritty/alacritty.yml new file mode 100644 index 0000000..2270f48 --- /dev/null +++ b/dotfiles/guix/home/files/alacritty/alacritty.yml @@ -0,0 +1,19 @@ +# Env +env: + TERM: xterm-256color + +# Font configuration +font: + normal: + family: inconsolata + style: Regular + bold: + family: inconsolata + style: Bold + italic: + family: inconsolata + style: Italic + bold_italic: + family: inconsolata + style: Bold Italic + size: 16 diff --git a/dotfiles/guix/home/files/dunst/dunstrc b/dotfiles/guix/home/files/dunst/dunstrc new file mode 100644 index 0000000..b487e15 --- /dev/null +++ b/dotfiles/guix/home/files/dunst/dunstrc @@ -0,0 +1,434 @@ +[global] + ### Display ### + + # Which monitor should the notifications be displayed on. + monitor = 0 + + # Display notification on focused monitor. Possible modes are: + # mouse: follow mouse pointer + # keyboard: follow window with keyboard focus + # none: don't follow anything + # + # "keyboard" needs a window manager that exports the + # _NET_ACTIVE_WINDOW property. + # This should be the case for almost all modern window managers. + # + # If this option is set to mouse or keyboard, the monitor option + # will be ignored. + follow = none + + ### Geometry ### + + # dynamic width from 0 to 300 + # width = (0, 300) + # constant width of 300 + width = 300 + + # The maximum height of a single notification, excluding the frame. + height = 300 + + # Position the notification in the top right corner + origin = top-right + + # Offset from the origin + offset = 10x50 + + # Scale factor. It is auto-detected if value is 0. + scale = 0 + + # Maximum number of notification (0 means no limit) + notification_limit = 0 + + ### Progress bar ### + + # Turn on the progess bar. It appears when a progress hint is passed with + # for example dunstify -h int:value:12 + progress_bar = true + + # Set the progress bar height. This includes the frame, so make sure + # it's at least twice as big as the frame width. + progress_bar_height = 10 + + # Set the frame width of the progress bar + progress_bar_frame_width = 1 + + # Set the minimum width for the progress bar + progress_bar_min_width = 150 + + # Set the maximum width for the progress bar + progress_bar_max_width = 300 + + + # Show how many messages are currently hidden (because of + # notification_limit). + indicate_hidden = yes + + # The transparency of the window. Range: [0; 100]. + # This option will only work if a compositing window manager is + # present (e.g. xcompmgr, compiz, etc.). (X11 only) + transparency = 0 + + # Draw a line of "separator_height" pixel height between two + # notifications. + # Set to 0 to disable. + separator_height = 2 + + # Padding between text and separator. + padding = 8 + + # Horizontal padding. + horizontal_padding = 8 + + # Padding between text and icon. + text_icon_padding = 0 + + # Defines width in pixels of frame around the notification window. + # Set to 0 to disable. + frame_width = 3 + + # Defines color of the frame around the notification window. + frame_color = "#aaaaaa" + + # Define a color for the separator. + # possible values are: + # * auto: dunst tries to find a color fitting to the background; + # * foreground: use the same color as the foreground; + # * frame: use the same color as the frame; + # * anything else will be interpreted as a X color. + separator_color = frame + + # Sort messages by urgency. + sort = yes + + # Don't remove messages, if the user is idle (no mouse or keyboard input) + # for longer than idle_threshold seconds. + # Set to 0 to disable. + # A client can set the 'transient' hint to bypass this. See the rules + # section for how to disable this if necessary + # idle_threshold = 120 + + ### Text ### + + font = Monospace 8 + + # The spacing between lines. If the height is smaller than the + # font height, it will get raised to the font height. + line_height = 0 + + # Possible values are: + # full: Allow a small subset of html markup in notifications: + # bold + # italic + # strikethrough + # underline + # + # For a complete reference see + # . + # + # strip: This setting is provided for compatibility with some broken + # clients that send markup even though it's not enabled on the + # server. Dunst will try to strip the markup but the parsing is + # simplistic so using this option outside of matching rules for + # specific applications *IS GREATLY DISCOURAGED*. + # + # no: Disable markup parsing, incoming notifications will be treated as + # plain text. Dunst will not advertise that it has the body-markup + # capability if this is set as a global setting. + # + # It's important to note that markup inside the format option will be parsed + # regardless of what this is set to. + markup = full + + # The format of the message. Possible variables are: + # %a appname + # %s summary + # %b body + # %i iconname (including its path) + # %I iconname (without its path) + # %p progress value if set ([ 0%] to [100%]) or nothing + # %n progress value if set without any extra characters + # %% Literal % + # Markup is allowed + format = "%s\n%b" + + # Alignment of message text. + # Possible values are "left", "center" and "right". + alignment = left + + # Vertical alignment of message text and icon. + # Possible values are "top", "center" and "bottom". + vertical_alignment = center + + # Show age of message if message is older than show_age_threshold + # seconds. + # Set to -1 to disable. + show_age_threshold = 60 + + # Specify where to make an ellipsis in long lines. + # Possible values are "start", "middle" and "end". + ellipsize = middle + + # Ignore newlines '\n' in notifications. + ignore_newline = no + + # Stack together notifications with the same content + stack_duplicates = true + + # Hide the count of stacked notifications with the same content + hide_duplicate_count = false + + # Display indicators for URLs (U) and actions (A). + show_indicators = yes + + ### Icons ### + + # Align icons left/right/off + icon_position = left + + # Scale small icons up to this size, set to 0 to disable. Helpful + # for e.g. small files or high-dpi screens. In case of conflict, + # max_icon_size takes precedence over this. + min_icon_size = 0 + + # Scale larger icons down to this size, set to 0 to disable + max_icon_size = 32 + + # Paths to default icons. + icon_path = /usr/share/icons/gnome/16x16/status/:/usr/share/icons/gnome/16x16/devices/ + + ### History ### + + # Should a notification popped up from history be sticky or timeout + # as if it would normally do. + sticky_history = yes + + # Maximum amount of notifications kept in history + history_length = 20 + + ### Misc/Advanced ### + + # dmenu path. + dmenu = /usr/bin/dmenu -p dunst: + + # Browser for opening urls in context menu. + browser = /usr/bin/xdg-open + + # Always run rule-defined scripts, even if the notification is suppressed + always_run_script = true + + # Define the title of the windows spawned by dunst + title = Dunst + + # Define the class of the windows spawned by dunst + class = Dunst + + # Define the corner radius of the notification window + # in pixel size. If the radius is 0, you have no rounded + # corners. + # The radius will be automatically lowered if it exceeds half of the + # notification height to avoid clipping text and/or icons. + corner_radius = 0 + + # Ignore the dbus closeNotification message. + # Useful to enforce the timeout set by dunst configuration. Without this + # parameter, an application may close the notification sent before the + # user defined timeout. + ignore_dbusclose = false + + ### Wayland ### + # These settings are Wayland-specific. They have no effect when using X11 + + # Uncomment this if you want to let notications appear under fullscreen + # applications (default: overlay) + # layer = top + + # Set this to true to use X11 output on Wayland. + force_xwayland = false + + ### Legacy + + # Use the Xinerama extension instead of RandR for multi-monitor support. + # This setting is provided for compatibility with older nVidia drivers that + # do not support RandR and using it on systems that support RandR is highly + # discouraged. + # + # By enabling this setting dunst will not be able to detect when a monitor + # is connected or disconnected which might break follow mode if the screen + # layout changes. + force_xinerama = false + + ### mouse + + # Defines list of actions for each mouse event + # Possible values are: + # * none: Don't do anything. + # * do_action: Invoke the action determined by the action_name rule. If there is no + # such action, open the context menu. + # * open_url: If the notification has exactly one url, open it. If there are multiple + # ones, open the context menu. + # * close_current: Close current notification. + # * close_all: Close all notifications. + # * context: Open context menu for the notification. + # * context_all: Open context menu for all notifications. + # These values can be strung together for each mouse event, and + # will be executed in sequence. + mouse_left_click = close_current + mouse_middle_click = do_action, close_current + mouse_right_click = close_all + +# Experimental features that may or may not work correctly. Do not expect them +# to have a consistent behaviour across releases. +[experimental] + # Calculate the dpi to use on a per-monitor basis. + # If this setting is enabled the Xft.dpi value will be ignored and instead + # dunst will attempt to calculate an appropriate dpi value for each monitor + # using the resolution and physical size. This might be useful in setups + # where there are multiple screens with very different dpi values. + per_monitor_dpi = false + + +[urgency_low] + # IMPORTANT: colors have to be defined in quotation marks. + # Otherwise the "#" and following would be interpreted as a comment. + background = "#222222" + foreground = "#888888" + timeout = 10 + # Icon for notifications with low urgency, uncomment to enable + #default_icon = /path/to/icon + +[urgency_normal] + background = "#285577" + foreground = "#ffffff" + timeout = 10 + # Icon for notifications with normal urgency, uncomment to enable + #default_icon = /path/to/icon + +[urgency_critical] + background = "#900000" + foreground = "#ffffff" + frame_color = "#ff0000" + timeout = 0 + # Icon for notifications with critical urgency, uncomment to enable + #default_icon = /path/to/icon + +# Every section that isn't one of the above is interpreted as a rules to +# override settings for certain messages. +# +# Messages can be matched by +# appname (discouraged, see desktop_entry) +# body +# category +# desktop_entry +# icon +# match_transient +# msg_urgency +# stack_tag +# summary +# +# and you can override the +# background +# foreground +# format +# frame_color +# fullscreen +# new_icon +# set_stack_tag +# set_transient +# set_category +# timeout +# urgency +# skip_display +# history_ignore +# action_name +# word_wrap +# ellipsize +# alignment +# +# Shell-like globbing will get expanded. +# +# Instead of the appname filter, it's recommended to use the desktop_entry filter. +# GLib based applications export their desktop-entry name. In comparison to the appname, +# the desktop-entry won't get localized. +# +# SCRIPTING +# You can specify a script that gets run when the rule matches by +# setting the "script" option. +# The script will be called as follows: +# script appname summary body icon urgency +# where urgency can be "LOW", "NORMAL" or "CRITICAL". +# +# NOTE: It might be helpful to run dunst -print in a terminal in order +# to find fitting options for rules. + +# Disable the transient hint so that idle_threshold cannot be bypassed from the +# client +#[transient_disable] +# match_transient = yes +# set_transient = no +# +# Make the handling of transient notifications more strict by making them not +# be placed in history. +#[transient_history_ignore] +# match_transient = yes +# history_ignore = yes + +# fullscreen values +# show: show the notifications, regardless if there is a fullscreen window opened +# delay: displays the new notification, if there is no fullscreen window active +# If the notification is already drawn, it won't get undrawn. +# pushback: same as delay, but when switching into fullscreen, the notification will get +# withdrawn from screen again and will get delayed like a new notification +#[fullscreen_delay_everything] +# fullscreen = delay +#[fullscreen_show_critical] +# msg_urgency = critical +# fullscreen = show + +#[espeak] +# summary = "*" +# script = dunst_espeak.sh + +#[script-test] +# summary = "*script*" +# script = dunst_test.sh + +#[ignore] +# # This notification will not be displayed +# summary = "foobar" +# skip_display = true + +#[history-ignore] +# # This notification will not be saved in history +# summary = "foobar" +# history_ignore = yes + +#[skip-display] +# # This notification will not be displayed, but will be included in the history +# summary = "foobar" +# skip_display = yes + +#[signed_on] +# appname = Pidgin +# summary = "*signed on*" +# urgency = low +# +#[signed_off] +# appname = Pidgin +# summary = *signed off* +# urgency = low +# +#[says] +# appname = Pidgin +# summary = *says* +# urgency = critical +# +#[twitter] +# appname = Pidgin +# summary = *twitter.com* +# urgency = normal +# +#[stack-volumes] +# appname = "some_volume_notifiers" +# set_stack_tag = "volume" +# +# vim: ft=cfg diff --git a/dotfiles/guix/home/files/emacs/init.el b/dotfiles/guix/home/files/emacs/init.el new file mode 100644 index 0000000..4fd2fc5 --- /dev/null +++ b/dotfiles/guix/home/files/emacs/init.el @@ -0,0 +1,705 @@ +(setq package-enable-at-startup nil) + +;; * Package Management with straight.el +(unless (featurep 'straight) + ;; Bootstrap straight.el + (defvar bootstrap-version) + (let ((bootstrap-file + (expand-file-name "straight/repos/straight.el/bootstrap.el" user-emacs-directory)) + (bootstrap-version 5)) + (unless (file-exists-p bootstrap-file) + (with-current-buffer + (url-retrieve-synchronously + "https://raw.githubusercontent.com/raxod502/straight.el/develop/install.el" + 'silent 'inhibit-cookies) + (goto-char (point-max)) + (eval-print-last-sexp))) + (load bootstrap-file nil 'nomessage))) + +;; Use straight.el for use-package expressions +(straight-use-package 'use-package) + +(setq package-archives '(("melpa" . "https://melpa.org/packages/") + ("org" . "https://orgmode.org/elpa/") + ("elpa" . "https://elpa.gnu.org/packages/"))) + +(scroll-bar-mode -1) ;; Disable scroll bar +(tool-bar-mode -1) ;; Disable tool bar menu +(tooltip-mode -1) ;; Disable tooltips +(set-fringe-mode 10) ;; Disable fringe mode +(menu-bar-mode -1) ;; Disable menu bar +(global-display-line-numbers-mode t) ;; Display line numbers +(set-default 'truncate-lines nil) ;; Wrap lines at end of screen +(setq visible-bell t) ;; Visible flash to represent a bell +(setq x-select-enable-clipboard t) ;; Enable clipboard +(global-tab-line-mode -1) ;; Disable tab mode +(setq inhibit-startup-message t) ;; What it says +(setq global-auto-revert-non-file-buffers t) +(global-auto-revert-mode 1) ;; Revert all buffers on change +(setq custom-safe-themes t) ;; Treat themes as safe + +;; Disable line mode for specific major/minor modes. +(dolist (mode '(org-mode-hook + vterm-mode-hook + term-mode-hook + eshell-mode-hook)) + (add-hook mode (lambda () (display-line-numbers-mode 0)))) + +(set-frame-parameter (selected-frame) 'alpha '(90 . 90)) +(add-to-list 'default-frame-alist '(alpha . (90 . 90))) +(set-frame-parameter (selected-frame) 'fullscreen 'maximized) +(add-to-list 'default-frame-alist '(fullscreen . maximized)) + +(use-package doom-modeline + :straight t + :init (doom-modeline-mode 1) + :custom ((doom-modeline-height 15))) + +;; install all-the-icons when first loading the emacs conf +;; remember to run M-x all-the-icons-install-fonts +(use-package all-the-icons + :straight t + :if (display-graphic-p)) + +(use-package which-key + :straight t + :defer 0 + :diminish which-key-mode + :config + (which-key-mode) + (setq which-key-idle-delay 0.3)) + +(use-package alert + :straight t + :config + (setq alert-default-style 'notification)) + +(setq large-file-warning-threshold nil) ;; Disables warnings for large files +(setq vc-follow-symlinks t) ;; Disables warnings for symlinks + +(use-package helpful + :straight t + :commands (helpful-callable helpful-variable helpful-command helpful-key)) + +(use-package super-save + :straight t + :config + (super-save-mode +1)) + +;; Auto reverting Changed Files +(setq global-auto-revert-non-file-buffers nil) +(global-auto-revert-mode -1) + +(use-package pinentry :straight t) +(setq epa-pinentry-mode 'loopback) +(pinentry-start) + +(setq tramp-default-method "ssh") + +;; (use-package modus-themes +;; :straight t +;; :init +;; (setq modus-themes-italic-constructs t +;; modus-themes-bold-constructs nil +;; modus-themes-region '(accented bg-only no-extend) +;; modus-themes-org-blocks 'greyscale +;; modus-themes-paren-match 'intense +;; modus-themes-mixed-fonts t) +;; (modus-themes-load-themes) +;; :config +;; (modus-themes-load-vivendi) +;; :bind +;; ("" . modus-themes-toggle)) + +;; Doing some doom themes for a while. +(use-package doom-themes + :straight t + :init + (load-theme 'doom-Iosvkem)) + +(set-face-attribute 'default nil :font "Fira Mono" :height 125 :weight 'medium) +(set-face-attribute 'variable-pitch nil :font "Fira Sans" :height 1.0 :weight 'regular) +(set-face-attribute 'fixed-pitch nil :font "Fira Code" :height 1.0 :weight 'medium) + +(use-package mixed-pitch + :straight t + :config + (add-hook 'org-mode-hook #'mixed-pitch-mode)) +(use-package unicode-fonts :straight t) + +(global-set-key (kbd "") 'keyboard-escape-quit) ;; Escape exits out of prompts + +;; Define Leader Key +(use-package general + :straight t + :config + (general-evil-setup t) + (general-create-definer opal/leader-keys + :keymaps '(normal insert visual emacs) + :prefix "SPC" + :global-prefix "C-SPC") + ;; Define Keybindings (potentially move into own file) + (opal/leader-keys + ;; Leader-map + ";" #'pp-eval-expression ;; Eval expression + ":" #'execute-extended-command ;; Eq to M-x + "u" #'universal-argument ;; Universal argument + "w" #'evil-window-map ;; Window functions + "." #'find-file ;; Find file (opens in mini-buffer) + "," #'consult-buffer ;; Switch to buffer + "<" #'switch-to-buffer ;; Switch to non-perspective.el minibuffer + "s" #'consult-line + "p" #'projectile-command-map + "l" #'lsp-map + + ;; Magit + "gg" #'magit-status + "gi" #'magit-init + "gc" #'magit-clone + + ;; Workspaces + "bi" #'persp-ibuffer + "bl" #'persp-next + "bh" #'persp-prev + "br" #'persp-rename + "bD" #'persp-remove-buffer + "bd" #'kill-buffer + + ;; Terminal/Shell + "tt" #'vterm + "te" #'eshell + + ;; Org + ;; Babel + "obt" #'org-babel-tangle + ;; Gen + "ol" #'org-insert-link + "or" #'org-reload + ;; Agenda + "oa" #'org-agenda + + ;; Eval + "eb" #'eval-buffer + "er" #'eval-region + "ef" #'eval-defun + "el" #'eval-last-sexp + + ;; Describe + "df" #'describe-function + "dv" #'describe-variable + "ds" #'describe-symbol + "dk" #'describe-key + "dp" #'describe-package)) + +(use-package evil + :straight t + :init + (setq evil-want-integration t) + (setq evil-want-keybinding nil) + (setq evil-want-C-u-scroll t) + (setq evil-want-C-i-jump nil) + (setq evil-respect-visual-line-mode t) + :config + (evil-mode 1) + (define-key evil-insert-state-map (kbd "C-g") 'evil-normal-state) + (define-key evil-insert-state-map (kbd "C-h") 'evil-delete-backward-char-and-join) + + ;; Use visual line motions even outside of visual-line-mode buffers + (evil-global-set-key 'motion "j" 'evil-next-visual-line) + (evil-global-set-key 'motion "k" 'evil-previous-visual-line) + + (evil-set-initial-state 'messages-buffer-mode 'normal) + (evil-set-initial-state 'dashboard-mode 'normal)) + +(use-package evil-collection + :straight t + :after evil + :config + (evil-collection-init)) + +;; Enable vertico +(use-package vertico + :straight t + :bind + (:map vertico-map + ("C-j" . vertico-next) + ("C-k" . vertico-previous)) + :init + (vertico-mode) + (setq vertico-scroll-margin 0) ;; Scroll margin + (setq vertico-count 10) ;; Candidates + (setq vertico-cycle t)) ;; Enable cycling + + ;; (use-package ivy + ;; :straight t + ;; :bind (("C-s" . 'swiper) + ;; :map ivy-minibuffer-map + ;; ("TAB" . ivy-alt-done) + ;; ("C-l" . ivy-alt-done) + ;; ("C-j" . ivy-next-line) + ;; ("C-k" . ivy-previous-line) + ;; :map ivy-switch-buffer-map + ;; ("C-k" . ivy-previous-line) + ;; ("C-l" . ivy-done) + ;; ("C-d" . ivy-reverse-i-search-kill)) + ;; :config + ;; (ivy-mode 1)) + + ;; (use-package ivy-rich + ;; :straight t + ;; :after ivy + ;; :init (ivy-rich-mode 1)) + +(use-package orderless + :straight t + :init + (setq completion-styles '(orderless) + completion-category-defaults nil + completion-category-overrides '((file (styles partial-completion))))) + +(use-package savehist + :straight t + :init + (savehist-mode)) + +(use-package consult + :straight t + :defer t + :config + (setq + consult-narrow-key "<" + consult-line-numbers-widen t + consult-async-min-input 2 + consult-async-refresh-delay 0.15 + consult-async-input-throttle 0.2 + consult-async-input-debounce 0.1)) +;; (use-package counsel +;; :straight t +;; :bind +;; (("C-M-j" . 'counsel-switch-buffer) +;; :map minibuffer-local-map +;; ("C-r" . 'counsel-minibuffer-history)) + +;; :custom +;; (counsel-linux-app-format-function #'counsel-linux-app-format-function-name-only) +;; :config +;; (counsel-mode 1)) + +(use-package marginalia + :straight t + :bind (("M-A" . marginalia-cycle) + :map minibuffer-local-map + ("M-A" . marginalia-cycle)) + :init + (marginalia-mode)) + +(use-package company + :straight t + :commands (company-complete-common + company-complete-common-or-cycle + company-manual-begin + company-grab-line) + :init + (setq company-minimum-prefix-length 2 + company-tooltip-limit 14 + company-tooltip-align-annotations t + company-require-match 'never + company-global-modes + '(not erc-mode + message-mode + help-mode + vterm-mode) + company-frontends + '(company-pseudo-tooltip-frontend ; always show candidates in overlay tooltip + company-echo-metadata-frontend) ; show selected candidate docs in echo area + company-backends '(company-capf) + company-auto-commit nil + company-dabbrev-other-buffers nil + company-dabbrev-ignore-case nil + company-dabbrev-downcase nil)) + +(use-package perspective + :straight t + :config + (persp-mode)) + +(use-package bufler :straight t) + +(use-package winner + :straight t) + +(use-package dired + :init + (setq dired-auto-revert-buffer t + dired-dwim-target t + dired-hide-details-hide-symlink-targets nil + dired-recursive-copies 'always + dired-recursive-deletes 'top + dired-create-destination-dirs 'ask)) + +(use-package dired-rsync + :straight t + :general (dired-mode-map "C-c C-r" #'dired-rsync)) +(use-package all-the-icons-dired :straight t) +(use-package dired-single :straight t) +(use-package dired-collapse :straight t) + +;; Make pretty colors! +(use-package dired-rainbow + :straight t + :after dired + :config + (dired-rainbow-define-chmod directory "#6cb2eb" "d.*") + (dired-rainbow-define html "#eb5286" ("css" "less" "sass" "scss" "htm" "html" "jhtm" "mht" "eml" "mustache" "xhtml")) + (dired-rainbow-define xml "#f2d024" ("xml" "xsd" "xsl" "xslt" "wsdl" "bib" "json" "msg" "pgn" "rss" "yaml" "yml" "rdata")) + (dired-rainbow-define document "#9561e2" ("docm" "doc" "docx" "odb" "odt" "pdb" "pdf" "ps" "rtf" "djvu" "epub" "odp" "ppt" "pptx")) + (dired-rainbow-define markdown "#ffed4a" ("org" "etx" "info" "markdown" "md" "mkd" "nfo" "pod" "rst" "tex" "textfile" "txt")) + (dired-rainbow-define database "#6574cd" ("xlsx" "xls" "csv" "accdb" "db" "mdb" "sqlite" "nc")) + (dired-rainbow-define media "#de751f" ("mp3" "mp4" "mkv" "MP3" "MP4" "avi" "mpeg" "mpg" "flv" "ogg" "mov" "mid" "midi" "wav" "aiff" "flac")) + (dired-rainbow-define image "#f66d9b" ("tiff" "tif" "cdr" "gif" "ico" "jpeg" "jpg" "png" "psd" "eps" "svg")) + (dired-rainbow-define log "#c17d11" ("log")) + (dired-rainbow-define shell "#f6993f" ("awk" "bash" "bat" "sed" "sh" "zsh" "vim")) + (dired-rainbow-define interpreted "#38c172" ("py" "ipynb" "rb" "pl" "t" "msql" "mysql" "pgsql" "sql" "r" "clj" "cljs" "scala" "js")) + (dired-rainbow-define compiled "#4dc0b5" ("asm" "cl" "lisp" "el" "c" "h" "c++" "h++" "hpp" "hxx" "m" "cc" "cs" "cp" "cpp" "go" "f" "for" "ftn" "f90" "f95" "f03" "f08" "s" "rs" "hi" "hs" "pyc" ".java")) + (dired-rainbow-define executable "#8cc4ff" ("exe" "msi")) + (dired-rainbow-define compressed "#51d88a" ("7z" "zip" "bz2" "tgz" "txz" "gz" "xz" "z" "Z" "jar" "war" "ear" "rar" "sar" "xpi" "apk" "xz" "tar")) + (dired-rainbow-define packaged "#faad63" ("deb" "rpm" "apk" "jad" "jar" "cab" "pak" "pk3" "vdf" "vpk" "bsp")) + (dired-rainbow-define encrypted "#ffed4a" ("gpg" "pgp" "asc" "bfe" "enc" "signature" "sig" "p12" "pem")) + (dired-rainbow-define fonts "#6cb2eb" ("afm" "fon" "fnt" "pfb" "pfm" "ttf" "otf")) + (dired-rainbow-define partition "#e3342f" ("dmg" "iso" "bin" "nrg" "qcow" "toast" "vcd" "vmdk" "bak")) + (dired-rainbow-define vc "#0074d9" ("git" "gitignore" "gitattributes" "gitmodules")) + (dired-rainbow-define-chmod executable-unix "#38c172" "-.*x.*")) + +(defun opal/org-font-setup () + ;; Replace list hyphen with dot + (font-lock-add-keywords 'org-mode + '(("^ *\\([-]\\) " + (0 (prog1 () (compose-region (match-beginning 1) (match-end 1) + "•")))))) + + ;; Set faces for heading levels + (dolist (face '((org-level-1 . 1.2) + (org-level-2 . 1.1) + (org-level-3 . 1.05) + (org-level-4 . 1.0) + (org-level-5 . 1.1) + (org-level-6 . 1.1) + (org-level-7 . 1.1) + (org-level-8 . 1.1))) + (set-face-attribute (car face) nil :font "Cantarell" :weight 'regular :height (cdr face))) + + ;; Ensure that anything that should be fixed-pitch in Org files appears that way + (set-face-attribute 'org-block nil :foreground nil :inherit 'fixed-pitch) + (set-face-attribute 'org-table nil :inherit 'fixed-pitch) + (set-face-attribute 'org-formula nil :inherit 'fixed-pitch) + (set-face-attribute 'org-code nil :inherit '(shadow fixed-pitch)) + (set-face-attribute 'org-table nil :inherit '(shadow fixed-pitch)) + (set-face-attribute 'org-verbatim nil :inherit '(shadow fixed-pitch)) + (set-face-attribute 'org-special-keyword nil :inherit '(font-lock-comment-face fixed-pitch)) + (set-face-attribute 'org-meta-line nil :inherit '(font-lock-comment-face fixed-pitch)) + (set-face-attribute 'org-checkbox nil :inherit 'fixed-pitch) + (set-face-attribute 'line-number nil :inherit 'fixed-pitch) + (set-face-attribute 'line-number-current-line nil :inherit 'fixed-pitch)) + + +(defun opal/org-mode-setup () + (org-indent-mode) + (variable-pitch-mode 1) + (visual-line-mode 1) + (setq org-startup-folded t)) + +(use-package org + :straight t + :commands (org-capture org-agenda) + :hook (org-mode . opal/org-mode-setup) + :config + (setq org-ellipsis " ▾") + (setq org-agenda-start-with-log-mode t) + (setq org-log-done 'time) + (setq org-log-into-drawer t) + + (setq org-agenda-files + '("~/Org/projects/" + "~/Org/tasks/")) + + + (require 'org-habit) + (add-to-list 'org-modules 'org-habit) + (setq org-habit-graph-column 60) + + (setq org-todo-keywords + '((sequence "TODO(t)" "NEXT(n)" "|" "DONE(d!)") + (sequence "BACKLOG(b)" "PLAN(p)" "READY(r)" "ACTIVE(a)" "REVIEW(v)" "WAIT(w@/!)" "HOLD(h)" "|" "COMPLETED(c)" "CANC(k@)"))) + + (setq org-refile-targets + '(("archive.org" :maxlevel . 1) + ("planner.org" :maxlevel . 1))) + + ;; Save Org buffers after refiling! + (advice-add 'org-refile :after 'org-save-all-org-buffers) + + (setq org-tag-alist + '((:startgroup) + ; Put mutually exclusive tags here + (:endgroup) + ("@errand" . ?E) + ("@home" . ?H) + ("@work" . ?W) + ("agenda" . ?a) + ("planning" . ?p) + ("publish" . ?P) + ("batch" . ?b) + ("note" . ?n) + ("idea" . ?i))) + + ;; Configure custom agenda views + (setq org-agenda-custom-commands + '(("d" "Dashboard" + ((agenda "" ((org-deadline-warning-days 7))) + (todo "NEXT" + ((org-agenda-overriding-header "Next Tasks"))) + (tags-todo "agenda/ACTIVE" ((org-agenda-overriding-header "Active Projects"))))) + + ("n" "Next Tasks" + ((todo "NEXT" + ((org-agenda-overriding-header "Next Tasks"))))) + + ;; Low-effort next actions + ("e" tags-todo "+TODO=\"NEXT\"+Effort<15&+Effort>0" + ((org-agenda-overriding-header "Low Effort Tasks") + (org-agenda-max-todos 20) + (org-agenda-files org-agenda-files))))) + + ;; Create capture templates + (setq org-capture-templates + `(("t" "Tasks") + ("tt" "Task" entry (file+olp "~/org/planner/tasks.org" "Inbox") + "* TODO %?\n %U\n %a\n %i" :empty-lines 1) + + ("p" "Projects") + ("pp" "Project File" entry (file+olp "~/org/projects/auto-infra-overview.org" "Inbox") + "* TODO %?\n %U\n %a\n %i" :empty-lines 1))) + + ;; Tell Org to stop indenting inside of org source blocks. + (setq org-edit-src-content-indentation 0) + + ;; Set org agenda dir + (setq org-directory "~/Org/") + + ;; Open links in browser + (setq browse-url-browser-function 'browse-url-generic + browse-url-generic-program "firefox") + + ;; Init org font setup + (opal/org-font-setup)) + +(use-package org-bullets + :straight t + :after org + :hook (org-mode . org-bullets-mode) + :custom + (org-bullets-bullet-list '("◉" "○" "●" "○" "●" "○" "●"))) + +(use-package org-make-toc :straight t) + +(defun opal/org-mode-visual-fill () + (setq visual-fill-column-width 100 + visual-fill-column-center-text t) + (visual-fill-column-mode 1)) + +(use-package visual-fill-column + :straight t + :hook (org-mode . opal/org-mode-visual-fill)) + +;; Load languages for babel code blocks. +(with-eval-after-load 'org + (org-babel-do-load-languages + 'org-babel-load-languages + '((emacs-lisp . t) + (lisp . t))) + + (push '("conf-unix" . conf-unix) org-src-lang-modes)) + +;; Set geiser default language +(setq geiser-default-implementation '(guile)) + +(with-eval-after-load 'org + (require 'org-tempo) + + (add-to-list 'org-structure-template-alist '("sh" . "src shell")) + (add-to-list 'org-structure-template-alist '("el" . "src emacs-lisp")) + (add-to-list 'org-structure-template-alist '("scm" . "src scheme")) + (add-to-list 'org-structure-template-alist '("cl" . "src lisp"))) + +(use-package flycheck :straight t) + +(setq-default tab-width 2) ;; Set tab indent to 2 +(setq-default evil-shift-width tab-width) ;; Ensure evil matches tab-width +(setq-default indent-tabs-mode nil) ;; Use spaces instead of tabs + +;; Clean up whitespace +(use-package ws-butler :straight t) + +(use-package rainbow-delimiters + :straight t + :init + (add-hook 'prog-mode-hook #'rainbow-delimiters-mode) + (add-hook 'org-mode-hook #'rainbow-delimiters-mode)) + +(use-package rainbow-mode :straight t) + +(use-package magit + :straight t) + +(use-package projectile + :straight t + :config + (projectile-mode) + :init + (when (file-directory-p "~/Projects/Code") + (setq projectile-project-search-path '("~/Projects/Code"))) + (setq projectile-switch-project-action #'projectile-dired)) + +(use-package lsp-mode + :straight t + :commands (lsp lsp-deferred) + :config + (lsp-enable-which-key-integration t)) + +(use-package lsp-ui + :straight t + :hook (lsp-mode . lsp-ui-mode) + :custom + (lsp-ui-doc-position 'bottom)) + +(use-package python-mode + :ensure t + :hook (python-mode . lsp-deferred)) + +(use-package robe + :straight t) + +(use-package bundler + :straight t) +======= +#+begin_src emacs-lisp + +>>>>>>> origin/master + +(use-package parinfer + :straight t + :init + (progn + (setq parinfer-extensions + '(defaults + pretty-parens + evil)) + (add-hook 'prog-mode-hook #'parinfer-mode))) + +(defvar inferior-lisp-program "sbcl") +(use-package sly :straight t) + +(use-package geiser + :straight t + :ensure t) + +(use-package geiser-guile + :straight t) + +(use-package yasnippet + :straight t + :hook (prog-mode . yas-minor-mode) + :config + (yas-reload-all)) + +(use-package eshell + :straight t + :config + ;; Save command history when commands are entered + (add-hook 'eshell-pre-command-hook 'eshell-save-some-history) + ;; Truncate buffer for performance + (add-to-list 'eshell-output-filter-functions 'eshell-truncate-buffer) + (evil-normalize-keymaps) + + (setq eshell-banner-message + '(format "%s %s\n" + (propertize (format " %s " (string-trim (buffer-name))) + 'face 'mode-line-highlight) + (propertize (current-time-string) + 'face 'font-lock-keyword-face))) + + (setq eshell-scroll-to-bottom-on-input 'all + eshell-scroll-to-bottom-on-output 'all + eshell-kill-processes-on-exit t + eshell-hist-ignoredups t + eshell-prompt-regexp "^.* λ " + ;; em-glob + eshell-history-size 10000 + eshell-buffer-maximum-lines 10000 + eshell-scroll-to-bottom-on-input t) + + (with-eval-after-load 'esh-opt + (setq eshell-destroy-buffer-when-process-dies t) + (setq eshell-visual-commands '("htop" "zsh" "vim")))) + +(use-package vterm + :straight t + :commands vterm + :config + (setq term-prompt-regexp "^[^#$%>\n]*[#$%>] *") ;; Terminal prompt + (setq vterm-shell "zsh") + (setq vterm-max-scrollback 10000)) + +(use-package pdf-tools + :straight t + :init + (pdf-tools-install)) + +;; (use-package mu4e +;; :straight t +;; :config +;; ;; This is set to 't' to avoid mail syncing issues when using mbsync +;; (setq mu4e-change-filenames-when-moving t) + +;; ;; Refresh mail using isync every 5 minutes +;; (setq mu4e-update-interval (* 5 60)) +;; (setq mu4e-get-mail-command "mbsync -a -c ~/Dotfiles/.config/mbsync/mbsyncrc") +;; (setq mu4e-maildir "~/Mail") + +;; (setq mu4e-contexts +;; (list +;; ;; Opal.sh +;; (make-mu4e-context +;; :name "Ry P." +;; :match-func +;; (lambda (msg) +;; (when msg +;; (string-prefix-p "/opal.sh" (mu4e-message-field msg :maildir)))) + +;; :vars '((user-mail-address . "ry@opal.sh") +;; (user-full-name . "Ry P.") +;; (mu4e-drafts-folder . "/opal.sh/Drafts") +;; (mu4e-sent-folder . "/opal.sh/Sent") +;; (mu4e-trash-folder . "/opal.sh/Trash"))))) + +;; (setq mu4e-maildir-shortcuts +;; '(("/opal.sh/Inbox" . ?i) +;; ("/opal.sh/Sent" . ?s) +;; ("/opal.sh/Trash" . ?t) +;; ("/opal.sh/Drafts" . ?d)))) + +;; (use-package erc +;; :straight t +;; (setq erc-server "irc.libera.chat" ;sets default server +;; erc-nick "opalvaults" ; Sets nick +;; erc-user-full-name "opalvaults" +;; erc-track-shorten-start 8 +;; erc-kill-buffer-on-part t +;; erc-auto-query 'bury +;; erc-fill-column 90 +;; erc-fill-function 'erc-fill-static +;; erc-fill-static-center 20 +;; erc-track-visibility nil +;; erc-interpret-mirc-color t +;; erc-rename-buffers t +;; erc-track-exclude-server-buffer t)) diff --git a/dotfiles/guix/home/files/mbsync/.mu4e.gpg b/dotfiles/guix/home/files/mbsync/.mu4e.gpg new file mode 100644 index 0000000..fc67a77 Binary files /dev/null and b/dotfiles/guix/home/files/mbsync/.mu4e.gpg differ diff --git a/dotfiles/guix/home/files/mbsync/mbsyncrc b/dotfiles/guix/home/files/mbsync/mbsyncrc new file mode 100644 index 0000000..baef7e7 --- /dev/null +++ b/dotfiles/guix/home/files/mbsync/mbsyncrc @@ -0,0 +1,26 @@ +IMAPAccount opal.sh +Host imap.opal.sh +Port 993 +User ry@opal.sh +PassCmd "gpg --quiet --for-your-eyes-only --no-tty --decrypt ~/Dotfiles/.config/mbsync/.mu4e.gpg" +SSLType IMAPS +CertificateFile /etc/ssl/certs/ca-certificates.crt + +IMAPStore opal-remote +Account opal.sh + +MaildirStore opal-local +Path ~/Mail/opal.sh/ +Inbox ~/Mail/opal.sh/Inbox +Trash ~/Mail/opal.sh/Trash +SubFolders Verbatim + +Channel opal.sh +Master :opal-remote: +Slave :opal-local: +Patterns * +Expunge None +CopyArrivalDate yes +Sync All +Create Both +SyncState * diff --git a/dotfiles/guix/home/files/nvim/autoload/plug.vim b/dotfiles/guix/home/files/nvim/autoload/plug.vim new file mode 100644 index 0000000..e69de29 diff --git a/dotfiles/guix/home/files/nvim/init.vim b/dotfiles/guix/home/files/nvim/init.vim new file mode 100644 index 0000000..95fbe5e --- /dev/null +++ b/dotfiles/guix/home/files/nvim/init.vim @@ -0,0 +1,151 @@ +let mapleader ="," + +if ! filereadable(system('echo -n "${XDG_CONFIG_HOME:-$HOME/.config}/nvim/autoload/plug.vim"')) + echo "Downloading junegunn/vim-plug to manage plugins..." + silent !mkdir -p ${XDG_CONFIG_HOME:-$HOME/.config}/nvim/autoload/ + silent !curl "https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim" > ${XDG_CONFIG_HOME:-$HOME/.config}/nvim/autoload/plug.vim + autocmd VimEnter * PlugInstall +endif + +call plug#begin(system('echo -n "${XDG_CONFIG_HOME:-$HOME/.config}/nvim/plugged"')) +Plug 'tpope/vim-surround' +Plug 'preservim/nerdtree' +Plug 'junegunn/goyo.vim' +Plug 'jreybert/vimagit' +Plug 'lukesmithxyz/vimling' +Plug 'vimwiki/vimwiki' +Plug 'vim-airline/vim-airline' +Plug 'tpope/vim-commentary' +Plug 'ap/vim-css-color' +Plug 'fatih/vim-go' +Plug 'vlime/vlime' +call plug#end() + +set title +set bg=light +set go=a +set mouse=a +set nohlsearch +set clipboard+=unnamedplus +set noshowmode +set noruler +set laststatus=0 +set noshowcmd + +" Some basics: + nnoremap c "_c + set nocompatible + filetype plugin on + syntax on + set encoding=utf-8 + set number relativenumber +" Enable autocompletion: + set wildmode=longest,list,full +" Disables automatic commenting on newline: + autocmd FileType * setlocal formatoptions-=c formatoptions-=r formatoptions-=o +" Perform dot commands over visual blocks: + vnoremap . :normal . +" Goyo plugin makes text more readable when writing prose: + map f :Goyo \| set bg=light \| set linebreak +" Spell-check set to o, 'o' for 'orthography': + map o :setlocal spell! spelllang=en_us +" Splits open at the bottom and right, which is non-retarded, unlike vim defaults. + set splitbelow splitright + +" Nerd tree + map n :NERDTreeToggle + autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif + if has('nvim') + let NERDTreeBookmarksFile = stdpath('data') . '/NERDTreeBookmarks' + else + let NERDTreeBookmarksFile = '~/.vim' . '/NERDTreeBookmarks' + endif + +" vimling: + nm d :call ToggleDeadKeys() + imap d :call ToggleDeadKeys()a + nm i :call ToggleIPA() + imap i :call ToggleIPA()a + nm q :call ToggleProse() + +" Shortcutting split navigation, saving a keypress: + map h + map j + map k + map l + +" Replace ex mode with gq + map Q gq + +" Check file in shellcheck: + map s :!clear && shellcheck -x % + +" Open my bibliography file in split + map b :vsp$BIB + map r :vsp$REFER + +" Replace all is aliased to S. + nnoremap S :%s//g + +" Compile document, be it groff/LaTeX/markdown/etc. + map c :w! \| !compiler "%" + +" Open corresponding .pdf/.html or preview + map p :!opout % + +" Runs a script that cleans out tex build files whenever I close out of a .tex file. + autocmd VimLeave *.tex !texclear % + +" Ensure files are read as what I want: + let g:vimwiki_ext2syntax = {'.Rmd': 'markdown', '.rmd': 'markdown','.md': 'markdown', '.markdown': 'markdown', '.mdown': 'markdown'} + map v :VimwikiIndex + let g:vimwiki_list = [{'path': '~/vimwiki', 'syntax': 'markdown', 'ext': '.md'}] + autocmd BufRead,BufNewFile /tmp/calcurse*,~/.calcurse/notes/* set filetype=markdown + autocmd BufRead,BufNewFile *.ms,*.me,*.mom,*.man set filetype=groff + autocmd BufRead,BufNewFile *.tex set filetype=tex + +" Save file as sudo on files that require root permission + cnoremap w!! execute 'silent! write !sudo tee % >/dev/null' edit! + +" Enable Goyo by default for mutt writing + autocmd BufRead,BufNewFile /tmp/neomutt* let g:goyo_width=80 + autocmd BufRead,BufNewFile /tmp/neomutt* :Goyo | set bg=light + autocmd BufRead,BufNewFile /tmp/neomutt* map ZZ :Goyo\|x! + autocmd BufRead,BufNewFile /tmp/neomutt* map ZQ :Goyo\|q! + +" Automatically deletes all trailing whitespace and newlines at end of file on save. + autocmd BufWritePre * %s/\s\+$//e + autocmd BufWritePre * %s/\n\+\%$//e + autocmd BufWritePre *.[ch] %s/\%$/\r/e + +" When shortcut files are updated, renew bash and rager configs with new material: + autocmd BufWritePost bm-files,bm-dirs !shortcuts +" Run xrdb whenever Xdefaults or Xresources are updated. + autocmd BufRead,BufNewFile Xresources,Xdefaults,xresources,xdefaults set filetype=xdefaults + autocmd BufWritePost Xresources,Xdefaults,xresources,xdefaults !xrdb % +" Recompile dwmblocks on config edit. + autocmd BufWritePost ~/.local/src/dwmblocks/config.h !cd ~/.local/src/dwmblocks/; sudo make install && { killall -q dwmblocks;setsid -f dwmblocks } + +" Turns off highlighting on the bits of code that are changed, so the line that is changed is highlighted but the actual text that has changed stands out on the line and is readable. +if &diff + highlight! link DiffText MatchParen +endif + +" Function for toggling the bottom statusbar: +let s:hidden_all = 1 +function! ToggleHiddenAll() + if s:hidden_all == 0 + let s:hidden_all = 1 + set noshowmode + set noruler + set laststatus=0 + set noshowcmd + else + let s:hidden_all = 0 + set showmode + set ruler + set laststatus=2 + set showcmd + endif +endfunction +nnoremap h :call ToggleHiddenAll() diff --git a/dotfiles/guix/home/files/nyxt/init.lisp b/dotfiles/guix/home/files/nyxt/init.lisp new file mode 100644 index 0000000..3b1b78d --- /dev/null +++ b/dotfiles/guix/home/files/nyxt/init.lisp @@ -0,0 +1,206 @@ +(in-package :nyxt) +(load "~/quicklisp/setup.lisp") +(ql:quickload 'slynk) +;; (push #p"~/common-lisp/sly/" asdf:*central-registry*) +;; (asdf:load-system :slynk) +;; (slynk:create-server :port 4008) + +(load-after-system :slynk (nyxt-init-file "my-slink.lisp")) +;; (load-after-system :slynk "~/.config/nyxt/my-slynk.lisp") + +;; Vim-normal mode by default +(define-configuration buffer + ((default-modes (append '(vi-normal-mode) '(blocker-mode) %slot-default%)))) + +;; Vim-insert for prompt-buffer (minibuffer) +(define-configuration prompt-buffer + ((default-modes (append '(vi-insert-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 u" 'copy-username + "C-x p" 'copy-password)))) + +;;Message buffer color configuration +(define-configuration window + ((message-buffer-style + (str:concat + %slot-default% + (cl-css:css + '((body + :background-color "black" + :color "white"))))))) + +;; Mini-buffer style +(define-configuration prompt-buffer + ((style (str:concat + %slot-default% + (cl-css:css + '((body + :background-color "black" + :color "white") + ("#prompt-area" + :background-color "black") + ;; The area you input text in. + ("#input" + :background-color "#EDDDAA") + (".source-name" + :color "black" + :background-color "#125458") + (".source-content" + :background-color "black") + (".source-content th" + :border "1px solid #125458" + :background-color "black") + ;; The currently highlighted option. + ("#selection" + :background-color "#125458" + :color "black") + (.marked :background-color "#8B3A3A" + :font-weight "bold" + :color "white") + (.selected :background-color "black" + :color "white"))))))) + +;; Internal buffer (help, bookmarks, buffers panel) +(define-configuration (internal-buffer panel-buffer) + ((style + (str:concat + %slot-default% + (cl-css:css + '((title + :color "#CD5C5C") + (body + :background-color "black" + :color "lightgray") + (hr + :color "lightgray") + (a + :color "#125458") + (.button + :color "white" + :background-color "#125458"))))))) + +;; Link hints in web mode +(define-configuration nyxt/web-mode:web-mode + ((nyxt/web-mode:highlighted-box-style + (cl-css:css + '((".nyxt-hint.nyxt-highlight-hint" + :background "#125458")))))) + +;; Modeline +(define-configuration status-buffer + ((style (str:concat + %slot-default% + (cl-css:css + ;; Arrows on the left. + '(("#controls" + :border-top "1px solid white" + :background-color "#125458") + ;; To the right of the arrows. + ("#url" + :background-color "black" + :color "white" + :border-top "1px solid white") + ;; Far to the right. + ("#modes" + :background-color "black" + :border-top "1px solid white") + ;; The center segment. + ("#tabs" + :background-color "#125458" + :color "black" + :border-top "1px solid white"))))))) + +;; Overriding dark theme colors +(define-configuration nyxt/style-mode:dark-mode + ((style #.(cl-css:css + '((* + :background-color "black !important" + :background-image "none !important" + :color "white") + (a + :background-color "black !important" + :background-image "none !important" + :color "#556B2F !important")))))) + +(define-configuration password:keepassxc-interface + ((password:password-file "/home/opal/.config/keepassxc/.kdbx-store/opal.kdbx"))) + +(define-configuration buffer + ((password-interface (make-instance 'password:user-keepassxc-interface)))) + +(define-command set-url (&key (prefill-current-url-p t)) + "Set the URL for the current buffer, completing with history." + (let ((history (set-url-history *browser*)) + (actions (list (make-command buffer-load* (suggestion-values) + "Load first selected URL in current buffer and the rest in new buffer(s)." + (mapc (lambda (suggestion) (make-buffer :url (url suggestion))) (rest suggestion-values)) + (buffer-load (url (first suggestion-values)))) + (make-command new-buffer-load (suggestion-values) + "Load URL(s) in new buffer(s)." + (mapc (lambda (suggestion) (make-buffer :url (url suggestion))) (rest suggestion-values)) + (make-buffer-focus :url (url (first suggestion-values))))))) + (pushnew-url-history history (url (current-buffer))) + (prompt + :prompt "Open URL" + :input (if prefill-current-url-p + (render-url (url (current-buffer))) "") + :history history + :sources (list (make-instance 'user-new-url-or-search-source :actions actions) + (make-instance 'bookmark-source :actions actions) + (make-instance 'user-global-history-source :actions actions) + (make-instance 'search-engine-url-source :actions actions))))) + +(define-command set-url-new-buffer (&key (prefill-current-url-p t)) + "Prompt for a URL and set it in a new focused buffer." + (let ((history (set-url-history *browser*)) + (actions (list (make-command new-buffer-load (suggestion-values) + "Load URL(s) in new buffer(s)" + (mapc (lambda (suggestion) (make-buffer :url (url suggestion))) + (rest suggestion-values)) + (make-buffer-focus :url (url (first suggestion-values))))))) + (pushnew-url-history history (url (current-buffer))) + (prompt + :prompt "Open URL in new buffer" + :input (if prefill-current-url-p + (render-url (url (current-buffer))) "") + :history history + :sources (list (make-instance 'user-new-url-or-search-source :actions actions) + (make-instance 'bookmark-source :actions actions) + (make-instance 'user-global-history-source :actions actions) + (make-instance 'search-engine-url-source :actions actions))))) + +;; I would like to implement redirection, or some extension to handle it for me. +;; 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.) + +(defun nyxt-init-file (&optional subpath) + "Return SUBPATH relative to `*init-file-path*'. +Return nil if `*init-file-path*' is nil. + +Example: +If we want to load a define-command procedure that lives in ~/path/to/nyxt/config/dir/my-slink.lisp +(load-after-system :slynk (nyxt-init-file \"my-slink.lisp\"))" + (if subpath + (uiop:subpathname* (uiop:pathname-directory-pathname + (expand-path *init-file-path*)) + subpath) + (expand-path *init-file-path*))) diff --git a/dotfiles/guix/home/files/nyxt/my-slink.lisp b/dotfiles/guix/home/files/nyxt/my-slink.lisp new file mode 100644 index 0000000..706ffb8 --- /dev/null +++ b/dotfiles/guix/home/files/nyxt/my-slink.lisp @@ -0,0 +1,10 @@ +(define-command-global start-slynk (&optional (slynk-port *swank-port*)) + "Start a Slynk server that can be connected to, for instance, in +Emacs via SLY. + +Warning: This allows Nyxt to be controlled remotely, that is, to execute +arbitrary code with the privileges of the user running Nyxt. Make sure +you understand the security risks associated with this before running +this command." + (slynk:create-server :port slynk-port :dont-close t) + (echo "Slynk server started at port ~a" slynk-port)) diff --git a/dotfiles/guix/home/files/stumpwm/config b/dotfiles/guix/home/files/stumpwm/config new file mode 100644 index 0000000..4304c3c --- /dev/null +++ b/dotfiles/guix/home/files/stumpwm/config @@ -0,0 +1,125 @@ +;;; -*- mode: lisp; -*- +(in-package :stumpwm) +;; (defvar *sbcl-path* "~/.guix-home/profile/share/common-lisp/sbcl/") + +;; StumpWM Modules +;; (stumpwm:add-to-load-path "~/.guix-home/profile/share/common-lisp/sbcl/stumpwm-swm-gaps") +;; (stumpwm:add-to-load-path "~/.guix-home/profile/share/common-lisp/sbcl/stumpwm-ttf-fonts") +;; (stumpwm:add-to-load-path "~/.guix-home/profile/share/common-lisp/sbcl/stumpwm-stumptray") +;; (stumpwm:add-to-load-path "~/.guix-home/profile/share/common-lisp/sbcl/stumpwm-kbd-layouts") + +(run-commands + "gnewbg I" + "gnew II" + "gnewbg III" + "gnewbg IV" + "gnewbg V" + "gnewbg-float F") + +(set-prefix-key (kbd "s-ESC")) + +(setf *mouse-focus-policy* :click) + +(setf *message-window-gravity* :center + *input-window-gravity* :center + *window-border-style* :thin + *message-window-padding* 3 + *maxsize-border-width* 2 + *normal-border-width* 2 + *transient-border-width* 2 + stumpwm::*float-window-border* 1 + stumpwm::*float-window-title-height* 1) + +(setq *input-window-gravity* :center) + +;; (load-module "kbd-layouts") + +;; (run-shell-command "xmodmap ~/Dotfiles/.config/Xmodmap") + +;; Set some super key bindings +(define-key *top-map* (kbd "s-h") "move-focus left") +(define-key *top-map* (kbd "s-l") "move-focus right") +(define-key *top-map* (kbd "s-j") "move-focus down") +(define-key *top-map* (kbd "s-k") "move-focus up") + +(define-key *top-map* (kbd "s-H") "move-window left") +(define-key *top-map* (kbd "s-L") "move-window right") +(define-key *top-map* (kbd "s-J") "move-window down") +(define-key *top-map* (kbd "s-K") "move-window up") + +(define-key *top-map* (kbd "s-f") "fullscreen") +(define-key *top-map* (kbd "s-r") "iresize") +(define-key *top-map* (kbd "s-Q") "delete") +(define-key *top-map* (kbd "s-SPC") "run-shell-command emacsclient -e \"(call-interactively #'app-launcher-run-app)\"") +(define-key *top-map* (kbd "s-L") "run-shell-command slock") +(define-key *top-map* (kbd "s-E") "run-shell-command emacs") +(define-key *top-map* (kbd "s-W") "run-shell-command firefox") + +(define-key *top-map* (kbd "s-TAB") "next-in-frame") +(define-key *top-map* (kbd "s-S-TAB") "prev-in-frame") + +(define-key *top-map* (kbd "s-1") "gselect I") +(define-key *top-map* (kbd "s-2") "gselect II") +(define-key *top-map* (kbd "s-3") "gselect III") +(define-key *top-map* (kbd "s-4") "gselect IV") +(define-key *top-map* (kbd "s-5") "gselect V") + +(define-key *top-map* (kbd "s-!") "gmove I") +(define-key *top-map* (kbd "s-@") "gmove II") +(define-key *top-map* (kbd "s-#") "gmove III") +(define-key *top-map* (kbd "s-$") "gmove IV") +(define-key *top-map* (kbd "s-%") "gmove V") + +;; Brightness and volume +;; (define-key *top-map* (kbd "XF86MonBrightnessDown") "run-shell-command brightnessctl set 5%-") +;; (define-key *top-map* (kbd "XF86MonBrightnessUp") "run-shell-command brightnessctl set +5%") +;; (define-key *top-map* (kbd "XF86AudioLowerVolume") "run-shell-command amixer set Master 3%- unmute") +;; (define-key *top-map* (kbd "XF86AudioRaiseVolume") "run-shell-command amixer set Master 3%+ unmute") +;; (define-key *top-map* (kbd "XF86AudioMute") "run-shell-command amixer set Master toggle") + +;; Set UI colors +(setf *colors* + '("#000000" ;black + "#BF6262" ;red + "#a1bf78" ;green + "#dbb774" ;yellow + "#7D8FA3" ;blue + "#ff99ff" ;magenta + "#53cdbd" ;cyan + "#b7bec9")) ;white + +(setf *default-bg-color* "#e699cc") + +(update-color-map (current-screen)) + +(setf *window-format* "%m%s%50t") + +;; (load-module "swm-gaps") +;; (setf swm-gaps:*inner-gaps-size* 3) +;; (run-commands "toggle-gaps-on") + +;; Enable TTF fonts +;; (load-module "ttf-fonts") +;; (setf xft:*font-dirs* '("/home/opal/.guix-home/profile/share/fonts/")) +;; (setf clx-truetype:+font-cache-filename+ "/home/daviwil/.local/share/fonts/font-cache.sexp") +;; (xft:cache-fonts) + +;; (set-font (make-instance 'xft:font :family "Fira Mono" :subfamily "Regular" :size 16)) + +(setf *mode-line-background-color* (car *colors*) + *mode-line-foreground-color* (car (last *colors*)) + *mode-line-timeout* 1) + +;; ;; Add the system tray module +;; (load-module "stumptray") +;; (stumptray:stumptray) + +;; (run-shell-command "feh --bg-scale ~/.dotfiles/backgrounds/samuel-ferrara-uOi3lg8fGl4-unsplash.jpg") +;; (run-shell-command "dunst") +;; (run-shell-command "nm-applet") +;; (run-shell-command "syncthing-gtk --minimized") +;; (run-shell-command "redshift -l 37.983810:23.727539 -t 6500:3500") +(run-shell-command "emacs") + +;; (require :slynk) +;; (slynk:create-server :dont-close t) diff --git a/dotfiles/guix/home/files/sway/config b/dotfiles/guix/home/files/sway/config new file mode 100644 index 0000000..4858a22 --- /dev/null +++ b/dotfiles/guix/home/files/sway/config @@ -0,0 +1,218 @@ +include /gnu/store/6d3q9f1bdfn4cchsziws33ixq2p4zjhw-sway-1.6.1/etc/sway/config.d/* + +set $mod Mod4 + +set $left h +set $down j +set $up k +set $right l + +# Terminal +set $term alacritty + +# Application Launcher +set $menu dmenu_path | dmenu | xargs swaymsg exec -- + +set $opacity 0.92 +for_window [class=".*"] opacity $opacity +for_window [app_id=".*"] opacity $opacity + +# Window Borders +default_border none + +# Gaps +gaps top 2 +gaps inner 3 +# gaps outer 3 + +# Hide mouse cursor after inactivity +seat * hide_cursor 4000 + +# Notifications +exec_always dunst + +# Wlsunset (Night Light) +exec_always wlsunset -l 47.6, -122.3 -t 3500 -T 6500 + +# Wallpaper +output * bg /home/opal/Dotfiles/guix-wallpaper.jpg stretch + +# Monitors +# You can get the names of your outputs by running: swaymsg -t get_outputs +output eDP-1 resolution 1920x1080 position 0,0 + +### Idle configuration +# This will lock your screen after 300 seconds of inactivity, then turn off +# your displays after another 300 seconds, and turn your screens back on when +# resumed. It will also lock your screen before your computer goes to sleep. +exec swayidle -w \ + timeout 300 'swaylock -f -c 000000' \ + timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \ + before-sleep 'swaylock -f -c 000000' + +### Input configuration +# +# Example configuration: +# +# input "2:14:SynPS/2_Synaptics_TouchPad" { +# dwt enabled +# tap enabled +# natural_scroll enabled +# middle_emulation enabled +# } +# +# You can get the names of your inputs by running: swaymsg -t get_inputs +# Read `man 5 sway-input` for more information about this section. +input type:keyboard { + # Capslock key should work as escape key + # See /usr/share/X11/xkb/rules/xorg.lst for options + xkb_options caps:escape + + repeat_delay 250 + repeat_rate 45 +} + +# Start a terminal +bindsym $mod+Return exec $term + +# Kill focused window +bindsym $mod+Shift+q kill + +# Lock SwayWM +bindsym Control+Shift+l exec swaylock + +# Start your launcher +bindsym $mod+d exec $menu + +# Change normal to inverse to use left mouse button for resizing and right +# mouse button for dragging. +floating_modifier $mod normal + +# Reload the configuration file +bindsym $mod+Shift+c reload + +# Exit sway (logs you out of your Wayland session) +bindsym $mod+Shift+x exec swaymsg -r exit + +# Moving around: +# Move your focus around +bindsym $mod+$left focus left +bindsym $mod+$down focus down +bindsym $mod+$up focus up +bindsym $mod+$right focus right +# Or use $mod+[up|down|left|right] +bindsym $mod+Left focus left +bindsym $mod+Down focus down +bindsym $mod+Up focus up +bindsym $mod+Right focus right + +# Move the focused window with the same, but add Shift +bindsym $mod+Shift+$left move left +bindsym $mod+Shift+$down move down +bindsym $mod+Shift+$up move up +bindsym $mod+Shift+$right move right +# Ditto, with arrow keys +bindsym $mod+Shift+Left move left +bindsym $mod+Shift+Down move down +bindsym $mod+Shift+Up move up +bindsym $mod+Shift+Right move right + +set $ws1 ۱ +set $ws2 ۲ +set $ws3 ۳ +set $ws4 ۴ +set $ws5 ۵ + +# Switch to workspace +bindsym $mod+1 workspace $ws1 +bindsym $mod+2 workspace $ws2 +bindsym $mod+3 workspace $ws3 +bindsym $mod+4 workspace $ws4 +bindsym $mod+5 workspace $ws5 + +# Move focused container to workspace +bindsym $mod+Shift+1 move container to workspace $ws1 +bindsym $mod+Shift+2 move container to workspace $ws2 +bindsym $mod+Shift+3 move container to workspace $ws3 +bindsym $mod+Shift+4 move container to workspace $ws4 +bindsym $mod+Shift+5 move container to workspace $ws5 + +# Layout stuff: +# +# You can "split" the current object of your focus with +# $mod+b or $mod+v, for horizontal and vertical splits +# respectively. +bindsym $mod+b splith +bindsym $mod+v splitv + +# Switch the current container between different layout styles +bindsym $mod+s layout stacking +bindsym $mod+w layout tabbed +bindsym $mod+e layout toggle split + +# Make the current focus fullscreen +bindsym $mod+f fullscreen + +# Toggle the current focus between tiling and floating mode +bindsym $mod+Shift+space floating toggle + +# Swap focus between the tiling area and the floating area +bindsym $mod+space focus mode_toggle + +# Move focus to the parent container +bindsym $mod+a focus parent +# +# Scratchpad: +# +# Sway has a "scratchpad", which is a bag of holding for windows. +# You can send windows there and get them back later. + +# Move the currently focused window to the scratchpad +bindsym $mod+Shift+minus move scratchpad + +# Show the next scratchpad window or hide the focused scratchpad window. +# If there are multiple scratchpad windows, this command cycles through them. +bindsym $mod+minus scratchpad show +# +# Resizing containers: +# +mode "resize" { + # left will shrink the containers width + # right will grow the containers width + # up will shrink the containers height + # down will grow the containers height + bindsym $left resize shrink width 10px + bindsym $down resize grow height 10px + bindsym $up resize shrink height 10px + bindsym $right resize grow width 10px + + # Ditto, with arrow keys + bindsym Left resize shrink width 10px + bindsym Down resize grow height 10px + bindsym Up resize shrink height 10px + bindsym Right resize grow width 10px + + # Return to default mode + bindsym Return mode "default" + bindsym Escape mode "default" +} +bindsym $mod+r mode "resize" + +# +# Status Bar: +# +# Read `man 5 sway-bar` for more information about this section. +bar { + position top + gaps 5 + + # When the status_command prints a new line to stdout, swaybar updates. + # The default just shows the current date and time. + status_command while date +'%Y-%m-%d %l:%M:%S %p'; do sleep 1; done + + colors { + statusline #ffffff + background #323232 + inactive_workspace #32323200 #32323200 #5c5c5c + } +} diff --git a/dotfiles/guix/home/files/sway/config~ b/dotfiles/guix/home/files/sway/config~ new file mode 100644 index 0000000..e100ba0 --- /dev/null +++ b/dotfiles/guix/home/files/sway/config~ @@ -0,0 +1,217 @@ +# Default config for sway +# +# Copy this to ~/.config/sway/config and edit it to your liking. +# +# Read `man 5 sway` for a complete reference. + +### Variables +# +# Logo key. Use Mod1 for Alt. +set $mod Mod4 +# Home row direction keys, like vim +set $left h +set $down j +set $up k +set $right l +# Your preferred terminal emulator +set $term alacritty +# Your preferred application launcher +# Note: pass the final command to swaymsg so that the resulting window can be opened +# on the original workspace that the command was run on. +set $menu dmenu_path | dmenu | xargs swaymsg exec -- + +### Output configuration +# +# Default wallpaper (more resolutions are available in /gnu/store/6d3q9f1bdfn4cchsziws33ixq2p4zjhw-sway-1.6.1/share/backgrounds/sway/) +output * bg /gnu/store/6d3q9f1bdfn4cchsziws33ixq2p4zjhw-sway-1.6.1/share/backgrounds/sway/Sway_Wallpaper_Blue_1920x1080.png fill +# +# Example configuration: +# +# output HDMI-A-1 resolution 1920x1080 position 1920,0 +# +# You can get the names of your outputs by running: swaymsg -t get_outputs + +### Idle configuration +# +# Example configuration: +# +# exec swayidle -w \ +# timeout 300 'swaylock -f -c 000000' \ +# timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \ +# before-sleep 'swaylock -f -c 000000' +# +# This will lock your screen after 300 seconds of inactivity, then turn off +# your displays after another 300 seconds, and turn your screens back on when +# resumed. It will also lock your screen before your computer goes to sleep. + +### Input configuration +# +# Example configuration: +# +# input "2:14:SynPS/2_Synaptics_TouchPad" { +# dwt enabled +# tap enabled +# natural_scroll enabled +# middle_emulation enabled +# } +# +# You can get the names of your inputs by running: swaymsg -t get_inputs +# Read `man 5 sway-input` for more information about this section. + +### Key bindings +# +# Basics: +# + # Start a terminal + bindsym $mod+Return exec $term + + # Kill focused window + bindsym $mod+Shift+q kill + + # Start your launcher + bindsym $mod+d exec $menu + + # Drag floating windows by holding down $mod and left mouse button. + # Resize them with right mouse button + $mod. + # Despite the name, also works for non-floating windows. + # Change normal to inverse to use left mouse button for resizing and right + # mouse button for dragging. + floating_modifier $mod normal + + # Reload the configuration file + bindsym $mod+Shift+c reload + + # Exit sway (logs you out of your Wayland session) + bindsym $mod+Shift+e exec swaynag -t warning -m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' -b 'Yes, exit sway' 'swaymsg exit' +# +# Moving around: +# + # Move your focus around + bindsym $mod+$left focus left + bindsym $mod+$down focus down + bindsym $mod+$up focus up + bindsym $mod+$right focus right + # Or use $mod+[up|down|left|right] + bindsym $mod+Left focus left + bindsym $mod+Down focus down + bindsym $mod+Up focus up + bindsym $mod+Right focus right + + # Move the focused window with the same, but add Shift + bindsym $mod+Shift+$left move left + bindsym $mod+Shift+$down move down + bindsym $mod+Shift+$up move up + bindsym $mod+Shift+$right move right + # Ditto, with arrow keys + bindsym $mod+Shift+Left move left + bindsym $mod+Shift+Down move down + bindsym $mod+Shift+Up move up + bindsym $mod+Shift+Right move right +# +# Workspaces: +# + # Switch to workspace + bindsym $mod+1 workspace number 1 + bindsym $mod+2 workspace number 2 + bindsym $mod+3 workspace number 3 + bindsym $mod+4 workspace number 4 + bindsym $mod+5 workspace number 5 + bindsym $mod+6 workspace number 6 + bindsym $mod+7 workspace number 7 + bindsym $mod+8 workspace number 8 + bindsym $mod+9 workspace number 9 + bindsym $mod+0 workspace number 10 + # Move focused container to workspace + bindsym $mod+Shift+1 move container to workspace number 1 + bindsym $mod+Shift+2 move container to workspace number 2 + bindsym $mod+Shift+3 move container to workspace number 3 + bindsym $mod+Shift+4 move container to workspace number 4 + bindsym $mod+Shift+5 move container to workspace number 5 + bindsym $mod+Shift+6 move container to workspace number 6 + bindsym $mod+Shift+7 move container to workspace number 7 + bindsym $mod+Shift+8 move container to workspace number 8 + bindsym $mod+Shift+9 move container to workspace number 9 + bindsym $mod+Shift+0 move container to workspace number 10 + # Note: workspaces can have any name you want, not just numbers. + # We just use 1-10 as the default. +# +# Layout stuff: +# + # You can "split" the current object of your focus with + # $mod+b or $mod+v, for horizontal and vertical splits + # respectively. + bindsym $mod+b splith + bindsym $mod+v splitv + + # Switch the current container between different layout styles + bindsym $mod+s layout stacking + bindsym $mod+w layout tabbed + bindsym $mod+e layout toggle split + + # Make the current focus fullscreen + bindsym $mod+f fullscreen + + # Toggle the current focus between tiling and floating mode + bindsym $mod+Shift+space floating toggle + + # Swap focus between the tiling area and the floating area + bindsym $mod+space focus mode_toggle + + # Move focus to the parent container + bindsym $mod+a focus parent +# +# Scratchpad: +# + # Sway has a "scratchpad", which is a bag of holding for windows. + # You can send windows there and get them back later. + + # Move the currently focused window to the scratchpad + bindsym $mod+Shift+minus move scratchpad + + # Show the next scratchpad window or hide the focused scratchpad window. + # If there are multiple scratchpad windows, this command cycles through them. + bindsym $mod+minus scratchpad show +# +# Resizing containers: +# +mode "resize" { + # left will shrink the containers width + # right will grow the containers width + # up will shrink the containers height + # down will grow the containers height + bindsym $left resize shrink width 10px + bindsym $down resize grow height 10px + bindsym $up resize shrink height 10px + bindsym $right resize grow width 10px + + # Ditto, with arrow keys + bindsym Left resize shrink width 10px + bindsym Down resize grow height 10px + bindsym Up resize shrink height 10px + bindsym Right resize grow width 10px + + # Return to default mode + bindsym Return mode "default" + bindsym Escape mode "default" +} +bindsym $mod+r mode "resize" + +# +# Status Bar: +# +# Read `man 5 sway-bar` for more information about this section. +bar { + position top + + # When the status_command prints a new line to stdout, swaybar updates. + # The default just shows the current date and time. + status_command while date +'%Y-%m-%d %l:%M:%S %p'; do sleep 1; done + + colors { + statusline #ffffff + background #323232 + inactive_workspace #32323200 #32323200 #5c5c5c + } +} + +include /gnu/store/6d3q9f1bdfn4cchsziws33ixq2p4zjhw-sway-1.6.1/etc/sway/config.d/* diff --git a/dotfiles/guix/home/files/user-dirs.dirs b/dotfiles/guix/home/files/user-dirs.dirs new file mode 100644 index 0000000..1e763ac --- /dev/null +++ b/dotfiles/guix/home/files/user-dirs.dirs @@ -0,0 +1,15 @@ +# This file is written by xdg-user-dirs-update +# If you want to change or add directories, just edit the line you're +# interested in. All local changes will be retained on the next run. +# Format is XDG_xxx_DIR="$HOME/yyy", where yyy is a shell-escaped +# homedir-relative path, or XDG_xxx_DIR="/yyy", where /yyy is an +# absolute path. No other format is supported. +# +XDG_DESKTOP_DIR="$HOME" +XDG_DOWNLOAD_DIR="$HOME/downloads" +XDG_TEMPLATES_DIR="$HOME" +XDG_PUBLICSHARE_DIR="$HOME" +XDG_DOCUMENTS_DIR="$HOME/documents" +XDG_MUSIC_DIR="$HOME/music" +XDG_PICTURES_DIR="$HOME/pictures" +XDG_VIDEOS_DIR="$HOME/videos" diff --git a/dotfiles/guix/home/files/user-dirs.dirs~ b/dotfiles/guix/home/files/user-dirs.dirs~ new file mode 100644 index 0000000..7f9a959 --- /dev/null +++ b/dotfiles/guix/home/files/user-dirs.dirs~ @@ -0,0 +1,15 @@ +# This file is written by xdg-user-dirs-update +# If you want to change or add directories, just edit the line you're +# interested in. All local changes will be retained on the next run. +# Format is XDG_xxx_DIR="$HOME/yyy", where yyy is a shell-escaped +# homedir-relative path, or XDG_xxx_DIR="/yyy", where /yyy is an +# absolute path. No other format is supported. +# +XDG_DESKTOP_DIR="$HOME/Desktop" +XDG_DOWNLOAD_DIR="$HOME/Downloads" +XDG_TEMPLATES_DIR="$HOME/Templates" +XDG_PUBLICSHARE_DIR="$HOME/Public" +XDG_DOCUMENTS_DIR="$HOME/Documents" +XDG_MUSIC_DIR="$HOME/Music" +XDG_PICTURES_DIR="$HOME/Pictures" +XDG_VIDEOS_DIR="$HOME/Videos" diff --git a/dotfiles/guix/home/files/wallpapers/guix-wallpaper.jpg b/dotfiles/guix/home/files/wallpapers/guix-wallpaper.jpg new file mode 100644 index 0000000..e23ef1b Binary files /dev/null and b/dotfiles/guix/home/files/wallpapers/guix-wallpaper.jpg differ diff --git a/dotfiles/guix/home/files/zsh/.history b/dotfiles/guix/home/files/zsh/.history new file mode 100644 index 0000000..6a91c60 --- /dev/null +++ b/dotfiles/guix/home/files/zsh/.history @@ -0,0 +1,55 @@ +: 1640634603:0;guix install pfetch +: 1640634927:0;i +: 1640635399:0;ls +: 1640635401:0;cd Projects +: 1640635401:0;ls +: 1640635402:0;cd Code +: 1640635402:0;ls +: 1640635423:0;git clone https://git.savannah.gnu.org/git/guix.git ~/Guix +: 1640635497:0;ls +: 1640635500:0;ls -la +: 1640635501:0;cd .. +: 1640635501:0;ls +: 1640635509:0;mv ~/Guix Code/Guix +: 1640635510:0;ls +: 1640635511:0;cd Code +: 1640635512:0;ls +: 1640635514:0;cd Guix +: 1640635514:0;ls +: 1640636228:0;cd ~/Downloads +: 1640636228:0;ls +: 1640636236:0;cd .. +: 1640636236:0;ls +: 1640636238:0;cd Downloads +: 1640636239:0;ls +: 1640636303:0;find ~ -name elisp-tree +: 1640636308:0;find ~/ -name elisp-tree +: 1640636312:0;find ~/.* -name elisp-tree +: 1640636315:0;find ~/.* -name elisp-tree* +: 1640636318:0;find ~/.* -name elisp-tree +: 1640636327:0;find ~ +: 1640636332:0;find ~/.* -name elisp +: 1640636337:0;find ~ -name elisp +: 1640636347:0;sudo find ~ -name elisp +: 1640636355:0;ls +: 1640636366:0;guix search nautilus +: 1640636381:0;guix search thunar +: 1640636395:0;guix install thunar +: 1640636527:0;ls +: 1640636558:0;cd ~/Bin +: 1640636558:0;ls +: 1640636563:0;guix install zip unzip +: 1640636665:0;ls +: 1640636671:0;unzip elisp-tree-sitter-0.16.1.zip +: 1640636672:0;ls +: 1640636681:0;cd elisp-tree-sitter-0.16.1 +: 1640636682:0;ls +: 1640636685:0;cd .. +: 1640636692:0;guix hash elisp-tree-sitter-0.16.1 +: 1640636703:0;guix hash -r elisp-tree-sitter-0.16.1 +: 1640636710:0;guix hash --serializer elisp-tree-sitter-0.16.1 +: 1640636727:0;guix hash -r elisp-tree-sitter-0.16.1 +: 1640639001:0;ls +: 1640639010:0;guix package --install-from-file=emacs-tree-sitter.scm +: 1640717471:0;guix repl +: 1640717480:0;ls diff --git a/dotfiles/guix/home/files/zsh/.zcompdump-work-5.8 b/dotfiles/guix/home/files/zsh/.zcompdump-work-5.8 new file mode 100644 index 0000000..0ff3adb --- /dev/null +++ b/dotfiles/guix/home/files/zsh/.zcompdump-work-5.8 @@ -0,0 +1,2011 @@ +#files: 941 version: 5.8 + +_comps=( +'-' '_precommand' +'-*-' '_loginctl' +'.' '_source' +'5g' '_go' +'5l' '_go' +'6g' '_go' +'6l' '_go' +'8g' '_go' +'8l' '_go' +'a2dismod' '_a2utils' +'a2dissite' '_a2utils' +'a2enmod' '_a2utils' +'a2ensite' '_a2utils' +'a2ps' '_a2ps' +'aaaa' '_hosts' +'aap' '_aap' +'abcde' '_abcde' +'ack' '_ack' +'ack2' '_ack' +'ack-grep' '_ack' +'ack-standalone' '_ack' +'acpi' '_acpi' +'acpitool' '_acpitool' +'acroread' '_acroread' +'adb' '_adb' +'add-zle-hook-widget' '_add-zle-hook-widget' +'add-zsh-hook' '_add-zsh-hook' +'admin' '_sccs' +'ali' '_mh' +'alias' '_alias' +'amaya' '_webbrowser' +'analyseplugin' '_analyseplugin' +'animate' '_imagemagick' +'anno' '_mh' +'ansible' '_ansible' +'ansible-config' '_ansible' +'ansible-console' '_ansible' +'ansible-doc' '_ansible' +'ansible-galaxy' '_ansible' +'ansible-inventory' '_ansible' +'ansible-playbook' '_ansible' +'ansible-pull' '_ansible' +'ansible-vault' '_ansible' +'ant' '_ant' +'antiword' '_antiword' +'aodh' '_openstack' +'aoss' '_precommand' +'apache2ctl' '_apachectl' +'apachectl' '_apachectl' +'aplay' '_alsa-utils' +'apm' '_apm' +'appletviewer' '_java' +'apropos' '_man' +'apt' '_apt' +'apt-cache' '_apt' +'apt-cdrom' '_apt' +'apt-config' '_apt' +'apt-file' '_apt-file' +'apt-get' '_apt' +'aptitude' '_aptitude' +'apt-mark' '_apt' +'apt-move' '_apt-move' +'apt-show-versions' '_apt-show-versions' +'apvlv' '_pdf' +'arecord' '_alsa-utils' +'arena' '_webbrowser' +'arp' '_arp' +'arping' '_arping' +'-array-value-' '_value' +'asciidoctor' '_asciidoctor' +'asciinema' '_asciinema' +'ash' '_sh' +'-assign-parameter-' '_assign' +'at' '_at' +'atq' '_at' +'atrm' '_at' +'attr' '_attr' +'augtool' '_augeas' +'auto-apt' '_auto-apt' +'autoload' '_typeset' +'avahi-browse' '_avahi' +'avahi-browse-domains' '_avahi' +'avahi-resolve' '_avahi' +'avahi-resolve-address' '_avahi' +'avahi-resolve-host-name' '_avahi' +'awk' '_awk' +'axi-cache' '_axi-cache' +'b2sum' '_md5sum' +'barbican' '_openstack' +'base32' '_base64' +'base64' '_base64' +'basename' '_basename' +'bash' '_bash' +'batch' '_at' +'baz' '_baz' +'beadm' '_beadm' +'beep' '_beep' +'bg' '_jobs_bg' +'bibtex' '_bibtex' +'bindkey' '_bindkey' +'bison' '_bison' +'bluetoothctl' '_bluetoothctl' +'bmake' '_make' +'bogofilter' '_bogofilter' +'bogotune' '_bogofilter' +'bogoutil' '_bogofilter' +'bpython' '_bpython' +'bpython2' '_bpython' +'bpython2-gtk' '_bpython' +'bpython2-urwid' '_bpython' +'bpython3' '_bpython' +'bpython3-gtk' '_bpython' +'bpython3-urwid' '_bpython' +'bpython-gtk' '_bpython' +'bpython-urwid' '_bpython' +'-brace-parameter-' '_brace_parameter' +'brctl' '_brctl' +'bsdconfig' '_bsdconfig' +'bsdgrep' '_grep' +'bsdinstall' '_bsdinstall' +'bsdtar' '_tar' +'btdownloadcurses' '_bittorrent' +'btdownloadgui' '_bittorrent' +'btdownloadheadless' '_bittorrent' +'btlaunchmany' '_bittorrent' +'btlaunchmanycurses' '_bittorrent' +'btmakemetafile' '_bittorrent' +'btreannounce' '_bittorrent' +'btrename' '_bittorrent' +'btrfs' '_btrfs' +'bts' '_bts' +'btshowmetainfo' '_bittorrent' +'bttrack' '_bittorrent' +'bug' '_bug' +'buildhash' '_ispell' +'builtin' '_builtin' +'bunzip2' '_bzip2' +'burst' '_mh' +'bzcat' '_bzip2' +'bzegrep' '_grep' +'bzfgrep' '_grep' +'bzgrep' '_grep' +'bzip2' '_bzip2' +'bzip2recover' '_bzip2' +'bzr' '_bzr' +'c++' '_gcc' +'cabal' '_cabal' +'caffeinate' '_caffeinate' +'cal' '_cal' +'calendar' '_calendar' +'cat' '_cat' +'catchsegv' '_precommand' +'cc' '_gcc' +'ccal' '_ccal' +'cd' '_cd' +'cdbs-edit-patch' '_cdbs-edit-patch' +'cdc' '_sccs' +'cdcd' '_cdcd' +'cdr' '_cdr' +'cdrdao' '_cdrdao' +'cdrecord' '_cdrecord' +'ceilometer' '_openstack' +'certtool' '_gnutls' +'cftp' '_twisted' +'chage' '_users' +'chattr' '_chattr' +'chcon' '_chcon' +'chdir' '_cd' +'chflags' '_chflags' +'chfn' '_users' +'chgrp' '_chown' +'chimera' '_webbrowser' +'chkconfig' '_chkconfig' +'chkstow' '_stow' +'chmod' '_chmod' +'chown' '_chown' +'chpass' '_chsh' +'chroot' '_chroot' +'chrt' '_chrt' +'chsh' '_chsh' +'ci' '_rcs' +'cifsiostat' '_sysstat' +'cinder' '_openstack' +'ckeygen' '_twisted' +'cksum' '_cksum' +'clang' '_gcc' +'clang++' '_gcc' +'clay' '_clay' +'clear' '_nothing' +'cloudkitty' '_openstack' +'clusterdb' '_postgresql' +'cmp' '_cmp' +'co' '_rcs' +'code' '_code' +'column' '_column' +'comb' '_sccs' +'combine' '_imagemagick' +'combinediff' '_patchutils' +'comm' '_comm' +'-command-' '_autocd' +'command' '_command' +'-command-line-' '_normal' +'comp' '_mh' +'compadd' '_compadd' +'compdef' '_compdef' +'composer' '_composer' +'composer.phar' '_composer' +'composite' '_imagemagick' +'compress' '_compress' +'conch' '_twisted' +'-condition-' '_condition' +'config.status' '_configure' +'configure' '_configure' +'convert' '_imagemagick' +'coreadm' '_coreadm' +'cowsay' '_cowsay' +'cowthink' '_cowsay' +'cp' '_cp' +'cpio' '_cpio' +'cplay' '_cplay' +'cpupower' '_cpupower' +'createdb' '_postgresql' +'createuser' '_postgresql' +'crontab' '_crontab' +'crsh' '_cssh' +'cryptsetup' '_cryptsetup' +'cscope' '_cscope' +'csh' '_sh' +'cssh' '_cssh' +'csup' '_csup' +'cu' '_cu' +'curl' '_curl' +'cut' '_cut' +'cvs' '_cvs' +'cvsup' '_cvsup' +'cygcheck' '_cygcheck' +'cygcheck.exe' '_cygcheck' +'cygpath' '_cygpath' +'cygpath.exe' '_cygpath' +'cygrunsrv' '_cygrunsrv' +'cygrunsrv.exe' '_cygrunsrv' +'cygserver' '_cygserver' +'cygserver.exe' '_cygserver' +'cygstart' '_cygstart' +'cygstart.exe' '_cygstart' +'dak' '_dak' +'darcs' '_darcs' +'dash' '_sh' +'date' '_date' +'dbus-launch' '_dbus' +'dbus-monitor' '_dbus' +'dbus-send' '_dbus' +'dch' '_debchange' +'dchroot' '_dchroot' +'dchroot-dsa' '_dchroot-dsa' +'dconf' '_dconf' +'dcop' '_dcop' +'dcopclient' '_dcop' +'dcopfind' '_dcop' +'dcopobject' '_dcop' +'dcopref' '_dcop' +'dcopstart' '_dcop' +'dcut' '_dcut' +'dd' '_dd' +'debchange' '_debchange' +'debcheckout' '_debcheckout' +'debdiff' '_debdiff' +'debfoster' '_debfoster' +'deborphan' '_deborphan' +'debsign' '_debsign' +'debuild' '_debuild' +'declare' '_typeset' +'-default-' '_default' +'defaults' '_defaults' +'delta' '_sccs' +'designate' '_openstack' +'devtodo' '_devtodo' +'df' '_df' +'dhclient' '_dhclient' +'dhclient3' '_dhclient' +'dhcpinfo' '_dhcpinfo' +'dict' '_dict' +'diff' '_diff' +'diff3' '_diff3' +'diffstat' '_diffstat' +'dig' '_dig' +'dillo' '_webbrowser' +'dircmp' '_directories' +'dirs' '_dirs' +'disable' '_disable' +'disown' '_jobs_fg' +'display' '_imagemagick' +'dist' '_mh' +'django-admin' '_django' +'django-admin.py' '_django' +'dkms' '_dkms' +'dladm' '_dladm' +'dlocate' '_dlocate' +'dmake' '_make' +'dmesg' '_dmesg' +'dmidecode' '_dmidecode' +'dnf' '_dnf' +'dnf-2' '_dnf' +'dnf-3' '_dnf' +'doas' '_doas' +'domainname' '_yp' +'dos2unix' '_dos2unix' +'dosdel' '_floppy' +'dosread' '_floppy' +'dpatch-edit-patch' '_dpatch-edit-patch' +'dpkg' '_dpkg' +'dpkg-buildpackage' '_dpkg-buildpackage' +'dpkg-cross' '_dpkg-cross' +'dpkg-deb' '_dpkg' +'dpkg-query' '_dpkg' +'dpkg-reconfigure' '_dpkg' +'dpkg-repack' '_dpkg-repack' +'dpkg-source' '_dpkg_source' +'dput' '_dput' +'drill' '_drill' +'dropdb' '_postgresql' +'dropuser' '_postgresql' +'dsh' '_dsh' +'dtrace' '_dtrace' +'dtruss' '_dtruss' +'du' '_du' +'dumpadm' '_dumpadm' +'dumper' '_dumper' +'dumper.exe' '_dumper' +'dupload' '_dupload' +'dvibook' '_dvi' +'dviconcat' '_dvi' +'dvicopy' '_dvi' +'dvidvi' '_dvi' +'dvipdf' '_dvi' +'dvips' '_dvi' +'dviselect' '_dvi' +'dvitodvi' '_dvi' +'dvitype' '_dvi' +'dwb' '_webbrowser' +'e2label' '_e2label' +'eatmydata' '_precommand' +'ecasound' '_ecasound' +'echotc' '_echotc' +'echoti' '_echoti' +'ed' '_ed' +'egrep' '_grep' +'elfdump' '_elfdump' +'elinks' '_elinks' +'emulate' '_emulate' +'enable' '_enable' +'enscript' '_enscript' +'entr' '_entr' +'env' '_env' +'eog' '_eog' +'epdfview' '_pdf' +'epsffit' '_psutils' +'-equal-' '_equal' +'erb' '_ruby' +'espeak' '_espeak' +'etags' '_etags' +'ethtool' '_ethtool' +'eu-nm' '_nm' +'eu-objdump' '_objdump' +'eu-readelf' '_readelf' +'eu-strings' '_strings' +'eval' '_precommand' +'eview' '_vim' +'evim' '_vim' +'evince' '_evince' +'exec' '_exec' +'expand' '_unexpand' +'explodepkg' '_pkgtool' +'export' '_typeset' +'express' '_webbrowser' +'extcheck' '_java' +'extractres' '_psutils' +'fakeroot' '_fakeroot' +'false' '_nothing' +'fc' '_fc' +'fc-list' '_xft_fonts' +'fc-match' '_xft_fonts' +'feh' '_feh' +'fetch' '_fetch' +'fetchmail' '_fetchmail' +'ffmpeg' '_ffmpeg' +'fg' '_jobs_fg' +'fgrep' '_grep' +'figlet' '_figlet' +'filterdiff' '_patchutils' +'find' '_find' +'findaffix' '_ispell' +'findmnt' '_findmnt' +'finger' '_finger' +'fink' '_fink' +'firefox' '_mozilla' +'-first-' '_first' +'fixdlsrps' '_psutils' +'fixfmps' '_psutils' +'fixmacps' '_psutils' +'fixpsditps' '_psutils' +'fixpspps' '_psutils' +'fixscribeps' '_psutils' +'fixtpps' '_psutils' +'fixwfwps' '_psutils' +'fixwpps' '_psutils' +'fixwwps' '_psutils' +'flac' '_flac' +'flex' '_flex' +'flex++' '_flex' +'flipdiff' '_patchutils' +'flist' '_mh' +'flists' '_mh' +'float' '_typeset' +'flowadm' '_flowadm' +'fmadm' '_fmadm' +'fmt' '_fmt' +'fmttest' '_mh' +'fned' '_zed' +'fnext' '_mh' +'fold' '_fold' +'folder' '_mh' +'folders' '_mh' +'fortune' '_fortune' +'forw' '_mh' +'fprev' '_mh' +'free' '_free' +'freebsd-make' '_make' +'freebsd-update' '_freebsd-update' +'freezer' '_openstack' +'fsh' '_fsh' +'fstat' '_fstat' +'fs_usage' '_fs_usage' +'ftp' '_hosts' +'functions' '_typeset' +'fuser' '_fuser' +'fusermount' '_fusermount' +'fwhois' '_whois' +'fw_update' '_fw_update' +'g++' '_gcc' +'galeon' '_webbrowser' +'gawk' '_awk' +'gb2sum' '_md5sum' +'gbase32' '_base64' +'gbase64' '_base64' +'gbasename' '_basename' +'gcat' '_cat' +'gcc' '_gcc' +'gccgo' '_go' +'gchgrp' '_chown' +'gchmod' '_chmod' +'gchown' '_chown' +'gchroot' '_chroot' +'gcksum' '_cksum' +'gcmp' '_cmp' +'gcomm' '_comm' +'gcore' '_gcore' +'gcp' '_cp' +'gcut' '_cut' +'gdate' '_date' +'gdb' '_gdb' +'gdd' '_dd' +'gdf' '_df' +'gdiff' '_diff' +'gdu' '_du' +'geany' '_geany' +'gegrep' '_grep' +'gem' '_gem' +'genisoimage' '_genisoimage' +'genv' '_env' +'get' '_sccs' +'getafm' '_psutils' +'getclip' '_getclip' +'getclip.exe' '_getclip' +'getconf' '_getconf' +'getent' '_getent' +'getfacl' '_getfacl' +'getfacl.exe' '_getfacl' +'getfattr' '_attr' +'getmail' '_getmail' +'getopt' '_getopt' +'getopts' '_vars' +'gex' '_vim' +'gexpand' '_unexpand' +'gfgrep' '_grep' +'gfind' '_find' +'gfmt' '_fmt' +'gfold' '_fold' +'ggetopt' '_getopt' +'ggrep' '_grep' +'ggv' '_gnome-gv' +'ghead' '_head' +'ghostscript' '_ghostscript' +'ghostview' '_pspdf' +'gid' '_id' +'ginstall' '_install' +'git' '_git' +'git-buildpackage' '_git-buildpackage' +'git-cvsserver' '_git' +'gitk' '_git' +'git-receive-pack' '_git' +'git-shell' '_git' +'git-upload-archive' '_git' +'git-upload-pack' '_git' +'gjoin' '_join' +'glance' '_openstack' +'gln' '_ln' +'global' '_global' +'glocate' '_locate' +'gls' '_ls' +'gm' '_graphicsmagick' +'gmake' '_make' +'gmd5sum' '_md5sum' +'gmkdir' '_mkdir' +'gmkfifo' '_mkfifo' +'gmknod' '_mknod' +'gmktemp' '_mktemp' +'gmplayer' '_mplayer' +'gmv' '_mv' +'gnl' '_nl' +'gnocchi' '_openstack' +'gnome-gv' '_gnome-gv' +'gnumfmt' '_numfmt' +'gnupod_addsong' '_gnupod' +'gnupod_addsong.pl' '_gnupod' +'gnupod_check' '_gnupod' +'gnupod_check.pl' '_gnupod' +'gnupod_INIT' '_gnupod' +'gnupod_INIT.pl' '_gnupod' +'gnupod_search' '_gnupod' +'gnupod_search.pl' '_gnupod' +'gnutls-cli' '_gnutls' +'gnutls-cli-debug' '_gnutls' +'gnutls-serv' '_gnutls' +'god' '_od' +'gofmt' '_go' +'gpasswd' '_gpasswd' +'gpaste' '_paste' +'gpatch' '_patch' +'gpg' '_gpg' +'gpg2' '_gpg' +'gpgv' '_gpg' +'gpg-zip' '_gpg' +'gphoto2' '_gphoto2' +'gprintenv' '_printenv' +'gprof' '_gprof' +'gqview' '_gqview' +'gradle' '_gradle' +'gradlew' '_gradle' +'grail' '_webbrowser' +'greadlink' '_readlink' +'grep' '_grep' +'grepdiff' '_patchutils' +'grep-excuses' '_grep-excuses' +'grm' '_rm' +'grmdir' '_rmdir' +'groff' '_groff' +'groupadd' '_user_admin' +'groupdel' '_groups' +'groupmod' '_user_admin' +'groups' '_users' +'growisofs' '_growisofs' +'gs' '_ghostscript' +'gsbj' '_pspdf' +'gsdj' '_pspdf' +'gsdj500' '_pspdf' +'gsed' '_sed' +'gseq' '_seq' +'gsettings' '_gsettings' +'gsha1sum' '_md5sum' +'gsha224sum' '_md5sum' +'gsha256sum' '_md5sum' +'gsha384sum' '_md5sum' +'gsha512sum' '_md5sum' +'gshred' '_shred' +'gshuf' '_shuf' +'gslj' '_pspdf' +'gslp' '_pspdf' +'gsnd' '_pspdf' +'gsort' '_sort' +'gsplit' '_split' +'gstat' '_gstat' +'gstdbuf' '_stdbuf' +'gstrings' '_strings' +'gstty' '_stty' +'gsum' '_cksum' +'gtac' '_tac' +'gtail' '_tail' +'gtar' '_tar' +'gtee' '_tee' +'gtimeout' '_timeout' +'gtouch' '_touch' +'gtr' '_tr' +'gtty' '_tty' +'guilt' '_guilt' +'guilt-add' '_guilt' +'guilt-applied' '_guilt' +'guilt-delete' '_guilt' +'guilt-files' '_guilt' +'guilt-fold' '_guilt' +'guilt-fork' '_guilt' +'guilt-header' '_guilt' +'guilt-help' '_guilt' +'guilt-import' '_guilt' +'guilt-import-commit' '_guilt' +'guilt-init' '_guilt' +'guilt-new' '_guilt' +'guilt-next' '_guilt' +'guilt-patchbomb' '_guilt' +'guilt-pop' '_guilt' +'guilt-prev' '_guilt' +'guilt-push' '_guilt' +'guilt-rebase' '_guilt' +'guilt-refresh' '_guilt' +'guilt-rm' '_guilt' +'guilt-series' '_guilt' +'guilt-status' '_guilt' +'guilt-top' '_guilt' +'guilt-unapplied' '_guilt' +'guix' '_guix' +'guname' '_uname' +'gunexpand' '_unexpand' +'guniq' '_uniq' +'gunzip' '_gzip' +'guptime' '_uptime' +'gv' '_gv' +'gview' '_vim' +'gvim' '_vim' +'gvimdiff' '_vim' +'gwc' '_wc' +'gwho' '_who' +'gxargs' '_xargs' +'gzcat' '_gzip' +'gzegrep' '_grep' +'gzfgrep' '_grep' +'gzgrep' '_grep' +'gzilla' '_webbrowser' +'gzip' '_gzip' +'hash' '_hash' +'hd' '_hexdump' +'hdiutil' '_hdiutil' +'head' '_head' +'heat' '_openstack' +'help' '_sccs' +'hexdump' '_hexdump' +'hilite' '_precommand' +'history' '_fc' +'host' '_host' +'hostname' '_hostname' +'hotjava' '_webbrowser' +'htop' '_htop' +'hwinfo' '_hwinfo' +'iceweasel' '_mozilla' +'icombine' '_ispell' +'iconv' '_iconv' +'iconvconfig' '_iconvconfig' +'id' '_id' +'identify' '_imagemagick' +'ifconfig' '_ifconfig' +'ifdown' '_net_interfaces' +'iftop' '_iftop' +'ifup' '_net_interfaces' +'ijoin' '_ispell' +'import' '_imagemagick' +'inc' '_mh' +'includeres' '_psutils' +'inetadm' '_inetadm' +'info' '_texinfo' +'infocmp' '_terminals' +'initctl' '_initctl' +'initdb' '_postgresql' +'insmod' '_modutils' +'install' '_install' +'install-info' '_texinfo' +'installpkg' '_pkgtool' +'integer' '_typeset' +'interdiff' '_patchutils' +'invoke-rc.d' '_invoke-rc.d' +'ionice' '_ionice' +'iostat' '_iostat' +'ip' '_ip' +'ip6tables' '_iptables' +'ip6tables-restore' '_iptables' +'ip6tables-save' '_iptables' +'ipadm' '_ipadm' +'ipkg' '_opkg' +'ipsec' '_ipsec' +'ipset' '_ipset' +'iptables' '_iptables' +'iptables-restore' '_iptables' +'iptables-save' '_iptables' +'irb' '_ruby' +'ironic' '_openstack' +'irssi' '_irssi' +'isag' '_sysstat' +'ispell' '_ispell' +'iwconfig' '_iwconfig' +'jadetex' '_tex' +'jail' '_jail' +'jar' '_java' +'jarsigner' '_java' +'java' '_java' +'javac' '_java' +'javadoc' '_java' +'javah' '_java' +'javap' '_java' +'jdb' '_java' +'jexec' '_jexec' +'jls' '_jls' +'jobs' '_jobs_builtin' +'joe' '_joe' +'join' '_join' +'jot' '_jot' +'jq' '_jq' +'kdeconnect-cli' '_kdeconnect' +'keystone' '_openstack' +'keytool' '_java' +'kfmclient' '_kfmclient' +'kill' '_kill' +'killall' '_killall' +'killall5' '_killall' +'kioclient' '_kfmclient' +'kldload' '_kld' +'kldunload' '_kld' +'knock' '_knock' +'konqueror' '_webbrowser' +'kpartx' '_kpartx' +'kpdf' '_pdf' +'ksh' '_sh' +'ksh88' '_sh' +'ksh93' '_sh' +'kvno' '_kvno' +'last' '_last' +'lastb' '_last' +'latex' '_tex' +'latexmk' '_tex' +'ldap' '_ldap' +'ldconfig' '_ldconfig' +'ldconfig.real' '_ldconfig' +'ldd' '_ldd' +'less' '_less' +'let' '_math' +'lftp' '_ncftp' +'lha' '_lha' +'light' '_webbrowser' +'lighty-disable-mod' '_lighttpd' +'lighty-enable-mod' '_lighttpd' +'limit' '_limit' +'links' '_links' +'links2' '_links' +'lintian' '_lintian' +'lintian-info' '_lintian' +'linux' '_uml' +'lldb' '_lldb' +'llvm-g++' '_gcc' +'llvm-gcc' '_gcc' +'llvm-objdump' '_objdump' +'llvm-otool' '_otool' +'ln' '_ln' +'loadkeys' '_loadkeys' +'local' '_typeset' +'locale' '_locale' +'localedef' '_localedef' +'locate' '_locate' +'log' '_nothing' +'loginctl' '_loginctl' +'logname' '_nothing' +'look' '_look' +'losetup' '_losetup' +'lp' '_lp' +'lpadmin' '_lp' +'lpinfo' '_lp' +'lpoptions' '_lp' +'lpq' '_lp' +'lpr' '_lp' +'lprm' '_lp' +'lpstat' '_lp' +'ls' '_ls' +'lsattr' '_lsattr' +'lsblk' '_lsblk' +'lscfg' '_lscfg' +'lsdev' '_lsdev' +'lsdiff' '_patchutils' +'lslv' '_lslv' +'lsmod' '_modutils' +'lsof' '_lsof' +'lspv' '_lspv' +'lsusb' '_lsusb' +'lsvg' '_lsvg' +'ltrace' '_ltrace' +'lua' '_lua' +'luarocks' '_luarocks' +'lynx' '_lynx' +'lz4' '_lz4' +'lz4c' '_lz4' +'lz4c32' '_lz4' +'lz4cat' '_lz4' +'lzcat' '_xz' +'lzma' '_xz' +'lzop' '_lzop' +'m-a' '_module-assistant' +'mac2unix' '_dos2unix' +'madison' '_madison' +'magnum' '_openstack' +'mail' '_mail' +'Mail' '_mail' +'mailx' '_mail' +'make' '_make' +'makeinfo' '_texinfo' +'make-kpkg' '_make-kpkg' +'makepkg' '_pkgtool' +'man' '_man' +'manage.py' '_django' +'manila' '_openstack' +'mark' '_mh' +'-math-' '_math' +'matlab' '_matlab' +'mattrib' '_mtools' +'mcd' '_mtools' +'mcopy' '_mtools' +'md2' '_cksum' +'md4' '_cksum' +'md5' '_cksum' +'md5sum' '_md5sum' +'mdadm' '_mdadm' +'mdel' '_mtools' +'mdeltree' '_mtools' +'mdfind' '_mdfind' +'mdir' '_mtools' +'mdls' '_mdls' +'mdu' '_mtools' +'mdutil' '_mdutil' +'members' '_members' +'mencal' '_mencal' +'mere' '_mere' +'merge' '_rcs' +'mergechanges' '_mergechanges' +'metaflac' '_flac' +'mformat' '_mtools' +'mgv' '_pspdf' +'mhfixmsg' '_mh' +'mhlist' '_mh' +'mhmail' '_mh' +'mhn' '_mh' +'mhparam' '_mh' +'mhpath' '_mh' +'mhshow' '_mh' +'mhstore' '_mh' +'mii-tool' '_mii-tool' +'mistral' '_openstack' +'mixerctl' '_mixerctl' +'mkdir' '_mkdir' +'mkfifo' '_mkfifo' +'mkisofs' '_growisofs' +'mknod' '_mknod' +'mksh' '_sh' +'mkshortcut' '_mkshortcut' +'mkshortcut.exe' '_mkshortcut' +'mktemp' '_mktemp' +'mktunes' '_gnupod' +'mktunes.pl' '_gnupod' +'mkzsh' '_mkzsh' +'mkzsh.exe' '_mkzsh' +'mlabel' '_mtools' +'mlocate' '_locate' +'mmd' '_mtools' +'mmm' '_webbrowser' +'mmount' '_mtools' +'mmove' '_mtools' +'modinfo' '_modutils' +'modprobe' '_modutils' +'module' '_module' +'module-assistant' '_module-assistant' +'mogrify' '_imagemagick' +'monasca' '_openstack' +'mondoarchive' '_mondo' +'montage' '_imagemagick' +'moosic' '_moosic' +'Mosaic' '_webbrowser' +'mosh' '_mosh' +'mount' '_mount' +'mozilla' '_mozilla' +'mozilla-firefox' '_mozilla' +'mozilla-xremote-client' '_mozilla' +'mpc' '_mpc' +'mplayer' '_mplayer' +'mpstat' '_sysstat' +'mr' '_myrepos' +'mrd' '_mtools' +'mread' '_mtools' +'mren' '_mtools' +'msgchk' '_mh' +'mt' '_mt' +'mtn' '_monotone' +'mtoolstest' '_mtools' +'mtr' '_mtr' +'mtype' '_mtools' +'munchlist' '_ispell' +'mupdf' '_mupdf' +'murano' '_openstack' +'mush' '_mail' +'mutt' '_mutt' +'mv' '_mv' +'mvim' '_vim' +'mx' '_hosts' +'mysql' '_mysql_utils' +'mysqladmin' '_mysql_utils' +'mysqldiff' '_mysqldiff' +'mysqldump' '_mysql_utils' +'mysqlimport' '_mysql_utils' +'mysqlshow' '_mysql_utils' +'nail' '_mail' +'native2ascii' '_java' +'nautilus' '_nautilus' +'nawk' '_awk' +'nc' '_netcat' +'ncal' '_cal' +'ncftp' '_ncftp' +'ncl' '_nedit' +'nedit' '_nedit' +'nedit-nc' '_nedit' +'netcat' '_netcat' +'netrik' '_webbrowser' +'netscape' '_netscape' +'netstat' '_netstat' +'networksetup' '_networksetup' +'neutron' '_openstack' +'new' '_mh' +'newgrp' '_groups' +'next' '_mh' +'nginx' '_nginx' +'ngrep' '_ngrep' +'nice' '_nice' +'nkf' '_nkf' +'nl' '_nl' +'nm' '_nm' +'nmap' '_nmap' +'nmblookup' '_samba' +'nmcli' '_networkmanager' +'nocorrect' '_precommand' +'noglob' '_precommand' +'nohup' '_precommand' +'nova' '_openstack' +'npm' '_npm' +'ns' '_hosts' +'nslookup' '_nslookup' +'ntalk' '_other_accounts' +'numfmt' '_numfmt' +'nvim' '_vim' +'nvram' '_nvram' +'objdump' '_objdump' +'od' '_od' +'odme' '_object_classes' +'odmget' '_object_classes' +'odmshow' '_object_classes' +'ogg123' '_vorbis' +'oggdec' '_vorbis' +'oggenc' '_vorbis' +'ogginfo' '_vorbis' +'oksh' '_sh' +'okular' '_okular' +'open' '_open' +'openstack' '_openstack' +'opera' '_webbrowser' +'opera-next' '_webbrowser' +'opkg' '_opkg' +'osascript' '_osascript' +'osc' '_osc' +'otool' '_otool' +'p4' '_perforce' +'p4d' '_perforce' +'pacat' '_pulseaudio' +'pack' '_pack' +'packf' '_mh' +'pacmd' '_pulseaudio' +'pactl' '_pulseaudio' +'padsp' '_pulseaudio' +'pandoc' '_pandoc' +'paplay' '_pulseaudio' +'-parameter-' '_parameter' +'parec' '_pulseaudio' +'parecord' '_pulseaudio' +'parsehdlist' '_urpmi' +'passwd' '_users' +'paste' '_paste' +'pasuspender' '_pulseaudio' +'patch' '_patch' +'pax' '_pax' +'pbcopy' '_pbcopy' +'pbpaste' '_pbcopy' +'pbuilder' '_pbuilder' +'pcat' '_pack' +'pcred' '_pids' +'pdf2dsc' '_pdf' +'pdf2ps' '_pdf' +'pdffonts' '_pdf' +'pdfimages' '_pdf' +'pdfinfo' '_pdf' +'pdfjadetex' '_tex' +'pdflatex' '_tex' +'pdfopt' '_pdf' +'pdftex' '_tex' +'pdftexi2dvi' '_texinfo' +'pdftk' '_pdftk' +'pdftopbm' '_pdf' +'pdftops' '_pdf' +'pdftotext' '_pdf' +'pdksh' '_sh' +'perl' '_perl' +'perldoc' '_perldoc' +'pfctl' '_pfctl' +'pfexec' '_pfexec' +'pfiles' '_pids' +'pflags' '_pids' +'pg_config' '_postgresql' +'pg_ctl' '_postgresql' +'pg_dump' '_postgresql' +'pg_dumpall' '_postgresql' +'pg_isready' '_postgresql' +'pgrep' '_pgrep' +'pg_restore' '_postgresql' +'pg_upgrade' '_postgresql' +'php' '_php' +'pick' '_mh' +'picocom' '_picocom' +'pidof' '_pidof' +'pidstat' '_sysstat' +'pigz' '_gzip' +'pine' '_pine' +'pinef' '_pine' +'pinfo' '_texinfo' +'ping' '_ping' +'ping6' '_ping' +'piuparts' '_piuparts' +'pkg' '_pkg5' +'pkg_add' '_bsd_pkg' +'pkgadd' '_pkgadd' +'pkg-config' '_pkg-config' +'pkg_create' '_bsd_pkg' +'pkg_delete' '_bsd_pkg' +'pkgin' '_pkgin' +'pkg_info' '_bsd_pkg' +'pkginfo' '_pkginfo' +'pkgrm' '_pkgrm' +'pkgtool' '_pkgtool' +'pkill' '_pgrep' +'pldd' '_pids' +'plutil' '_plutil' +'pmake' '_make' +'pman' '_perl_modules' +'pmap' '_pmap' +'pmcat' '_perl_modules' +'pmdesc' '_perl_modules' +'pmeth' '_perl_modules' +'pmexp' '_perl_modules' +'pmfunc' '_perl_modules' +'pmload' '_perl_modules' +'pmls' '_perl_modules' +'pmpath' '_perl_modules' +'pmvers' '_perl_modules' +'podgrep' '_perl_modules' +'podpath' '_perl_modules' +'podtoc' '_perl_modules' +'poff' '_pon' +'policytool' '_java' +'polybar' '_polybar' +'polybar-msg' '_polybar_msg' +'pon' '_pon' +'popd' '_directory_stack' +'portaudit' '_portaudit' +'portlint' '_portlint' +'portmaster' '_portmaster' +'portsnap' '_portsnap' +'postconf' '_postfix' +'postgres' '_postgresql' +'postmaster' '_postgresql' +'postqueue' '_postfix' +'postsuper' '_postfix' +'powerd' '_powerd' +'prev' '_mh' +'print' '_print' +'printenv' '_printenv' +'printf' '_print' +'procstat' '_procstat' +'prompt' '_prompt' +'prove' '_prove' +'prs' '_sccs' +'prstat' '_prstat' +'prt' '_sccs' +'prun' '_pids' +'ps' '_ps' +'ps2ascii' '_pspdf' +'ps2epsi' '_postscript' +'ps2pdf' '_postscript' +'ps2pdf12' '_postscript' +'ps2pdf13' '_postscript' +'ps2pdf14' '_postscript' +'ps2pdfwr' '_postscript' +'ps2ps' '_postscript' +'psbook' '_psutils' +'pscp' '_pscp' +'pscp.exe' '_pscp' +'psed' '_sed' +'psig' '_pids' +'psmerge' '_psutils' +'psmulti' '_postscript' +'psnup' '_psutils' +'psql' '_postgresql' +'psresize' '_psutils' +'psselect' '_psutils' +'pstack' '_pids' +'pstoedit' '_pspdf' +'pstop' '_pids' +'pstops' '_psutils' +'pstotgif' '_pspdf' +'pswrap' '_postscript' +'ptree' '_ptree' +'pulseaudio' '_pulseaudio' +'pump' '_pump' +'pushd' '_cd' +'putclip' '_putclip' +'putclip.exe' '_putclip' +'pv' '_pv' +'pwait' '_pids' +'pwdx' '_pids' +'pwgen' '_pwgen' +'pyhtmlizer' '_twisted' +'qdbus' '_qdbus' +'qiv' '_qiv' +'qtplay' '_qtplay' +'querybts' '_bug' +'quilt' '_quilt' +'r' '_fc' +'rake' '_rake' +'ranlib' '_ranlib' +'rar' '_rar' +'rc' '_sh' +'rcctl' '_rcctl' +'rclone' '_rclone' +'rcp' '_rlogin' +'rcs' '_rcs' +'rcsdiff' '_rcs' +'rdesktop' '_rdesktop' +'read' '_read' +'readelf' '_readelf' +'readlink' '_readlink' +'readonly' '_typeset' +'readshortcut' '_readshortcut' +'readshortcut.exe' '_readshortcut' +'rebootin' '_rebootin' +'-redirect-' '_redirect' +'-redirect-,<,bunzip2' '_bzip2' +'-redirect-,<,bzip2' '_bzip2' +'-redirect-,>,bzip2' '_bzip2' +'-redirect-,<,compress' '_compress' +'-redirect-,>,compress' '_compress' +'-redirect-,-default-,-default-' '_files' +'-redirect-,<,gunzip' '_gzip' +'-redirect-,<,gzip' '_gzip' +'-redirect-,>,gzip' '_gzip' +'-redirect-,<,uncompress' '_compress' +'-redirect-,<,unxz' '_xz' +'-redirect-,<,xz' '_xz' +'-redirect-,>,xz' '_xz' +'refile' '_mh' +'rehash' '_hash' +'reindexdb' '_postgresql' +'reload' '_initctl' +'removepkg' '_pkgtool' +'remsh' '_rlogin' +'renice' '_renice' +'repl' '_mh' +'reportbug' '_bug' +'reprepro' '_reprepro' +'restart' '_initctl' +'retawq' '_webbrowser' +'rgview' '_vim' +'rgvim' '_vim' +'ri' '_ri' +'rlogin' '_rlogin' +'rm' '_rm' +'rmadison' '_madison' +'rmd160' '_cksum' +'rmdel' '_sccs' +'rmdir' '_rmdir' +'rmf' '_mh' +'rmic' '_java' +'rmid' '_java' +'rmiregistry' '_java' +'rmm' '_mh' +'rmmod' '_modutils' +'route' '_route' +'rpm' '_rpm' +'rpmbuild' '_rpm' +'rpmkeys' '_rpm' +'rpmquery' '_rpm' +'rpmsign' '_rpm' +'rpmspec' '_rpm' +'rpmverify' '_rpm' +'rrdtool' '_rrdtool' +'rsh' '_rlogin' +'rsync' '_rsync' +'rtin' '_tin' +'rubber' '_rubber' +'rubber-info' '_rubber' +'rubber-pipe' '_rubber' +'ruby' '_ruby' +'ruby-mri' '_ruby' +'run-help' '_run-help' +'rup' '_hosts' +'rusage' '_precommand' +'rview' '_vim' +'rvim' '_vim' +'rwho' '_hosts' +'rxvt' '_urxvt' +'s2p' '_sed' +'sact' '_sccs' +'sadf' '_sysstat' +'sahara' '_openstack' +'sar' '_sysstat' +'savecore' '_savecore' +'say' '_say' +'sbuild' '_sbuild' +'scan' '_mh' +'sccs' '_sccs' +'sccsdiff' '_sccs' +'sched' '_sched' +'schedtool' '_schedtool' +'schroot' '_schroot' +'scl' '_scl' +'scons' '_scons' +'scp' '_ssh' +'screen' '_screen' +'script' '_script' +'scriptreplay' '_script' +'scselect' '_scselect' +'sc_usage' '_sc_usage' +'scutil' '_scutil' +'seaf-cli' '_seafile' +'sed' '_sed' +'senlin' '_openstack' +'seq' '_seq' +'serialver' '_java' +'service' '_service' +'set' '_set' +'setfacl' '_setfacl' +'setfacl.exe' '_setfacl' +'setfattr' '_attr' +'setopt' '_setopt' +'setsid' '_setsid' +'setxkbmap' '_setxkbmap' +'sftp' '_ssh' +'sh' '_sh' +'sha1' '_cksum' +'sha1sum' '_md5sum' +'sha224sum' '_md5sum' +'sha256' '_cksum' +'sha256sum' '_md5sum' +'sha384' '_cksum' +'sha384sum' '_md5sum' +'sha512' '_cksum' +'sha512sum' '_md5sum' +'sha512t256' '_cksum' +'shasum' '_shasum' +'shell-script' '_loginctl' +'shift' '_arrays' +'show' '_mh' +'showchar' '_psutils' +'showmount' '_showmount' +'shred' '_shred' +'shuf' '_shuf' +'shutdown' '_shutdown' +'signify' '_signify' +'sisu' '_sisu' +'skein1024' '_cksum' +'skein256' '_cksum' +'skein512' '_cksum' +'skipstone' '_webbrowser' +'slabtop' '_slabtop' +'slitex' '_tex' +'slocate' '_locate' +'slogin' '_ssh' +'slrn' '_slrn' +'smartctl' '_smartmontools' +'smbclient' '_samba' +'smbcontrol' '_samba' +'smbstatus' '_samba' +'smit' '_smit' +'smitty' '_smit' +'snoop' '_snoop' +'soa' '_hosts' +'socket' '_socket' +'sockstat' '_sockstat' +'softwareupdate' '_softwareupdate' +'sort' '_sort' +'sortm' '_mh' +'source' '_source' +'spamassassin' '_spamassassin' +'split' '_split' +'splitdiff' '_patchutils' +'sqlite' '_sqlite' +'sqlite3' '_sqlite' +'sqsh' '_sqsh' +'sr' '_surfraw' +'srptool' '_gnutls' +'ss' '_ss' +'ssh' '_ssh' +'ssh-add' '_ssh' +'ssh-agent' '_ssh' +'ssh-copy-id' '_ssh' +'sshfs' '_sshfs' +'ssh-keygen' '_ssh' +'ssh-keyscan' '_ssh' +'star' '_tar' +'start' '_initctl' +'stat' '_stat' +'status' '_initctl' +'stdbuf' '_stdbuf' +'stg' '_stgit' +'stop' '_initctl' +'stow' '_stow' +'strace' '_strace' +'strace64' '_strace' +'strftime' '_strftime' +'strings' '_strings' +'strip' '_strip' +'strongswan' '_ipsec' +'stty' '_stty' +'su' '_su' +'subl' '_sublimetext' +'-subscript-' '_subscript' +'sudo' '_sudo' +'sudoedit' '_sudo' +'sum' '_cksum' +'surfraw' '_surfraw' +'SuSEconfig' '_SUSEconfig' +'sv' '_runit' +'svcadm' '_svcadm' +'svccfg' '_svccfg' +'svcprop' '_svcprop' +'svcs' '_svcs' +'svn' '_subversion' +'svnadmin' '_subversion' +'svnadmin-static' '_subversion' +'svn-buildpackage' '_svn-buildpackage' +'svnlite' '_subversion' +'swaks' '_swaks' +'swanctl' '_swanctl' +'sway' '_sway' +'swayidle' '_swayidle' +'swaylock' '_swaylock' +'swaymsg' '_swaymsg' +'swift' '_swift' +'swiftc' '_swift' +'sw_vers' '_sw_vers' +'sync' '_nothing' +'sysctl' '_sysctl' +'sysrc' '_sysrc' +'systat' '_systat' +'system_profiler' '_system_profiler' +'tac' '_tac' +'tacker' '_openstack' +'tail' '_tail' +'talk' '_other_accounts' +'tar' '_tar' +'tardy' '_tardy' +'tcpdump' '_tcpdump' +'tcp_open' '_tcpsys' +'tcptraceroute' '_tcptraceroute' +'tcsh' '_sh' +'tda' '_devtodo' +'tdd' '_devtodo' +'tde' '_devtodo' +'tdr' '_devtodo' +'tee' '_tee' +'telnet' '_telnet' +'tex' '_tex' +'texi2any' '_texinfo' +'texi2dvi' '_texinfo' +'texi2pdf' '_texinfo' +'texindex' '_texinfo' +'tg' '_topgit' +'tidy' '_tidy' +'tig' '_git' +'-tilde-' '_tilde' +'time' '_precommand' +'timeout' '_timeout' +'times' '_nothing' +'tin' '_tin' +'tkconch' '_twisted' +'tkinfo' '_texinfo' +'tla' '_tla' +'tload' '_tload' +'tmux' '_tmux' +'todo' '_devtodo' +'todo.sh' '_todo.sh' +'toilet' '_toilet' +'top' '_top' +'totdconfig' '_totd' +'touch' '_touch' +'tpb' '_tpb' +'tpkg-debarch' '_toolchain-source' +'tpkg-install' '_toolchain-source' +'tpkg-install-libc' '_toolchain-source' +'tpkg-make' '_toolchain-source' +'tpkg-update' '_toolchain-source' +'tput' '_tput' +'tr' '_tr' +'tracepath' '_tracepath' +'tracepath6' '_tracepath' +'traceroute' '_hosts' +'transmission-remote' '_transmission' +'trap' '_trap' +'trash' '_trash' +'tree' '_tree' +'trial' '_twisted' +'trove' '_openstack' +'true' '_nothing' +'truss' '_truss' +'tryaffix' '_ispell' +'tty' '_tty' +'ttyctl' '_ttyctl' +'tunctl' '_uml' +'tune2fs' '_tune2fs' +'tunes2pod' '_gnupod' +'tunes2pod.pl' '_gnupod' +'twidge' '_twidge' +'twist' '_twisted' +'twistd' '_twisted' +'txt' '_hosts' +'type' '_which' +'typeset' '_typeset' +'ulimit' '_ulimit' +'uml_mconsole' '_uml' +'uml_moo' '_uml' +'uml_switch' '_uml' +'umount' '_mount' +'unace' '_unace' +'unalias' '_aliases' +'uname' '_uname' +'uncompress' '_compress' +'unexpand' '_unexpand' +'unfunction' '_functions' +'unget' '_sccs' +'unhash' '_unhash' +'uniq' '_uniq' +'unison' '_unison' +'units' '_units' +'unix2dos' '_dos2unix' +'unix2mac' '_dos2unix' +'unlimit' '_limits' +'unlz4' '_lz4' +'unlzma' '_xz' +'unpack' '_pack' +'unpigz' '_gzip' +'unrar' '_rar' +'unset' '_vars' +'unsetopt' '_setopt' +'unwrapdiff' '_patchutils' +'unxz' '_xz' +'unzip' '_zip' +'update-alternatives' '_update-alternatives' +'update-rc.d' '_update-rc.d' +'upgradepkg' '_pkgtool' +'uptime' '_uptime' +'urpme' '_urpmi' +'urpmf' '_urpmi' +'urpmi' '_urpmi' +'urpmi.addmedia' '_urpmi' +'urpmi.removemedia' '_urpmi' +'urpmi.update' '_urpmi' +'urpmq' '_urpmi' +'urxvt' '_urxvt' +'urxvt256c' '_urxvt' +'urxvt256cc' '_urxvt' +'urxvt256c-ml' '_urxvt' +'urxvt256c-mlc' '_urxvt' +'urxvtc' '_urxvt' +'uscan' '_uscan' +'useradd' '_user_admin' +'userdel' '_users' +'usermod' '_user_admin' +'vacuumdb' '_postgresql' +'val' '_sccs' +'valgrind' '_valgrind' +'-value-' '_value' +'-value-,ADB_TRACE,-default-' '_adb' +'-value-,ANDROID_LOG_TAGS,-default-' '_adb' +'-value-,ANDROID_SERIAL,-default-' '_adb' +'-value-,ANSIBLE_STDOUT_CALLBACK,-default-' '_ansible' +'-value-,ANT_ARGS,-default-' '_ant' +'-value-,CFLAGS,-default-' '_gcc' +'-value-,CPPFLAGS,-default-' '_gcc' +'-value-,CXXFLAGS,-default-' '_gcc' +'-value-,-default-,-command-' '_zargs' +'-value-,-default-,-default-' '_value' +'-value-,DISPLAY,-default-' '_x_display' +'-value-,GREP_OPTIONS,-default-' '_grep' +'-value-,GZIP,-default-' '_gzip' +'-value-,LANG,-default-' '_locales' +'-value-,LANGUAGE,-default-' '_locales' +'-value-,LD_DEBUG,-default-' '_ld_debug' +'-value-,LDFLAGS,-default-' '_gcc' +'-value-,LESSCHARSET,-default-' '_less' +'-value-,LESS,-default-' '_less' +'-value-,LOOPDEV_DEBUG,-default-' '_losetup' +'-value-,LPDEST,-default-' '_printers' +'-value-,MPD_HOST,-default' '_mpc' +'-value-,P4CLIENT,-default-' '_perforce' +'-value-,P4MERGE,-default-' '_perforce' +'-value-,P4PORT,-default-' '_perforce' +'-value-,P4USER,-default-' '_perforce' +'-value-,PERLDOC,-default-' '_perldoc' +'-value-,PRINTER,-default-' '_printers' +'-value-,PROMPT2,-default-' '_ps1234' +'-value-,PROMPT3,-default-' '_ps1234' +'-value-,PROMPT4,-default-' '_ps1234' +'-value-,PROMPT,-default-' '_ps1234' +'-value-,PS1,-default-' '_ps1234' +'-value-,PS2,-default-' '_ps1234' +'-value-,PS3,-default-' '_ps1234' +'-value-,PS4,-default-' '_ps1234' +'-value-,RPROMPT2,-default-' '_ps1234' +'-value-,RPROMPT,-default-' '_ps1234' +'-value-,RPS1,-default-' '_ps1234' +'-value-,RPS2,-default-' '_ps1234' +'-value-,SPROMPT,-default-' '_ps1234' +'-value-,TERM,-default-' '_terminals' +'-value-,TERMINFO_DIRS,-default-' '_dir_list' +'-value-,TZ,-default-' '_time_zone' +'-value-,VALGRIND_OPTS,-default-' '_valgrind' +'-value-,WWW_HOME,-default-' '_urls' +'-value-,XML_CATALOG_FILES,-default-' '_xmlsoft' +'-value-,XZ_DEFAULTS,-default-' '_xz' +'-value-,XZ_OPT,-default-' '_xz' +'-vared-' '_in_vared' +'vared' '_vared' +'vcsh' '_vcsh' +'vim' '_vim' +'vim-addons' '_vim-addons' +'vimdiff' '_vim' +'virsh' '_libvirt' +'virt-admin' '_libvirt' +'virt-host-validate' '_libvirt' +'virt-pki-validate' '_libvirt' +'virt-xml-validate' '_libvirt' +'visudo' '_visudo' +'vitrage' '_openstack' +'vmctl' '_vmctl' +'vmstat' '_vmstat' +'vncserver' '_vnc' +'vncviewer' '_vnc' +'vorbiscomment' '_vorbis' +'vpnc' '_vpnc' +'vpnc-connect' '_vpnc' +'vserver' '_vserver' +'w' '_w' +'w3m' '_w3m' +'wait' '_wait' +'wajig' '_wajig' +'wanna-build' '_wanna-build' +'watch' '_watch' +'watcher' '_openstack' +'wc' '_wc' +'wget' '_wget' +'what' '_sccs' +'whatis' '_man' +'whence' '_which' +'where' '_which' +'whereis' '_whereis' +'which' '_which' +'who' '_who' +'whoami' '_nothing' +'whois' '_whois' +'whom' '_mh' +'wiggle' '_wiggle' +'wipefs' '_wipefs' +'wl-copy' '_wl-copy' +'wl-paste' '_wl-paste' +'wodim' '_cdrecord' +'wpa_cli' '_wpa_cli' +'write' '_users_on' +'www' '_webbrowser' +'xargs' '_xargs' +'xattr' '_attr' +'xauth' '_xauth' +'xautolock' '_xautolock' +'xclip' '_xclip' +'xcode-select' '_xcode-select' +'xdpyinfo' '_x_utils' +'xdvi' '_xdvi' +'xelatex' '_tex' +'xetex' '_tex' +'xev' '_x_utils' +'xfd' '_x_utils' +'xfig' '_xfig' +'xfontsel' '_x_utils' +'xfreerdp' '_rdesktop' +'xhost' '_x_utils' +'xkill' '_x_utils' +'xli' '_xloadimage' +'xloadimage' '_xloadimage' +'xlsatoms' '_x_utils' +'xlsclients' '_x_utils' +'xml' '_xmlstarlet' +'xmllint' '_xmlsoft' +'xmlstarlet' '_xmlstarlet' +'xmms2' '_xmms2' +'xmodmap' '_xmodmap' +'xmosaic' '_webbrowser' +'xon' '_x_utils' +'xournal' '_xournal' +'xpdf' '_xpdf' +'xping' '_hosts' +'xprop' '_x_utils' +'xrandr' '_xrandr' +'xrdb' '_x_utils' +'xscreensaver-command' '_xscreensaver' +'xset' '_xset' +'xsetbg' '_xloadimage' +'xsetroot' '_x_utils' +'xsltproc' '_xmlsoft' +'xterm' '_xterm' +'xtightvncviewer' '_vnc' +'xtp' '_imagemagick' +'xv' '_xv' +'xview' '_xloadimage' +'xvnc4viewer' '_vnc' +'xvncviewer' '_vnc' +'xwd' '_x_utils' +'xwininfo' '_x_utils' +'xwit' '_xwit' +'xwud' '_x_utils' +'xxd' '_xxd' +'xz' '_xz' +'xzcat' '_xz' +'yafc' '_yafc' +'yash' '_sh' +'yast' '_yast' +'yast2' '_yast' +'ypbind' '_yp' +'ypcat' '_yp' +'ypmatch' '_yp' +'yppasswd' '_yp' +'yppoll' '_yp' +'yppush' '_yp' +'ypserv' '_yp' +'ypset' '_yp' +'ypwhich' '_yp' +'ypxfr' '_yp' +'ytalk' '_other_accounts' +'yum' '_yum' +'yumdb' '_yum' +'zargs' '_zargs' +'zcalc' '_zcalc' +'-zcalc-line-' '_zcalc_line' +'zcat' '_zcat' +'zcompile' '_zcompile' +'zcp' '_zmv' +'zdelattr' '_zattr' +'zdump' '_zdump' +'zeal' '_zeal' +'zed' '_zed' +'zegrep' '_grep' +'zen' '_webbrowser' +'zf_chgrp' '_chown' +'zf_chmod' '_chmod' +'zf_chown' '_chown' +'zfgrep' '_grep' +'zf_ln' '_ln' +'zf_mkdir' '_mkdir' +'zf_mv' '_mv' +'zf_rm' '_rm' +'zf_rmdir' '_rmdir' +'zfs' '_zfs' +'zgetattr' '_zattr' +'zgrep' '_grep' +'zip' '_zip' +'zipinfo' '_zip' +'zle' '_zle' +'zlistattr' '_zattr' +'zln' '_zmv' +'zlogin' '_zlogin' +'zmail' '_mail' +'zmodload' '_zmodload' +'zmv' '_zmv' +'zone' '_hosts' +'zoneadm' '_zoneadm' +'zparseopts' '_zparseopts' +'zpool' '_zpool' +'zpty' '_zpty' +'zsetattr' '_zattr' +'zsh' '_zsh' +'zsh-mime-handler' '_zsh-mime-handler' +'zsocket' '_zsocket' +'zstat' '_stat' +'zstyle' '_zstyle' +'ztodo' '_ztodo' +'zun' '_openstack' +'zxpdf' '_xpdf' +'zypper' '_zypper' +) + +_services=( +'bzcat' 'bunzip2' +'dch' 'debchange' +'gchgrp' 'chgrp' +'gchown' 'chown' +'gnupod_addsong.pl' 'gnupod_addsong' +'gnupod_check.pl' 'gnupod_check' +'gnupod_INIT.pl' 'gnupod_INIT' +'gnupod_search.pl' 'gnupod_search' +'gpg2' 'gpg' +'gzcat' 'gunzip' +'iceweasel' 'firefox' +'lzcat' 'unxz' +'lzma' 'xz' +'Mail' 'mail' +'mailx' 'mail' +'mktunes.pl' 'mktunes' +'nail' 'mail' +'ncl' 'nc' +'nedit-nc' 'nc' +'pcat' 'unpack' +'-redirect-,<,bunzip2' 'bunzip2' +'-redirect-,<,bzip2' 'bzip2' +'-redirect-,>,bzip2' 'bunzip2' +'-redirect-,<,compress' 'compress' +'-redirect-,>,compress' 'uncompress' +'-redirect-,<,gunzip' 'gunzip' +'-redirect-,<,gzip' 'gzip' +'-redirect-,>,gzip' 'gunzip' +'-redirect-,<,uncompress' 'uncompress' +'-redirect-,<,unxz' 'unxz' +'-redirect-,<,xz' 'xz' +'-redirect-,>,xz' 'unxz' +'remsh' 'rsh' +'slogin' 'ssh' +'svnadmin-static' 'svnadmin' +'svnlite' 'svn' +'tunes2pod.pl' 'tunes2pod' +'unlzma' 'unxz' +'xelatex' 'latex' +'xetex' 'tex' +'xzcat' 'unxz' +'zf_chgrp' 'chgrp' +'zf_chown' 'chown' +) + +_patcomps=( +'*/(init|rc[0-9S]#).d/*' '_init_d' +) + +_postpatcomps=( +'c++-*' '_gcc' +'g++-*' '_gcc' +'gcc-*' '_gcc' +'gem[0-9.]#' '_gem' +'lua[0-9.-]##' '_lua' +'(p[bgpn]m*|*top[bgpn]m)' '_pbm' +'php[0-9.-]' '_php' +'pydoc[0-9.]#' '_pydoc' +'python[0-9.]#' '_python' +'qemu(|-system-*)' '_qemu' +'(ruby|[ei]rb)[0-9.]#' '_ruby' +'shasum(|5).*' '_shasum' +'(texi(2*|ndex))' '_texi' +'(tiff*|*2tiff|pal2rgb)' '_tiff' +'-value-,(ftp|http(|s))_proxy,-default-' '_urls' +'-value-,LC_*,-default-' '_locales' +'-value-,*path,-default-' '_directories' +'-value-,*PATH,-default-' '_dir_list' +'-value-,RUBY(LIB|OPT|PATH),-default-' '_ruby' +'*/X11(|R<4->)/*' '_x_arguments' +'yodl(|2*)' '_yodl' +'zf*' '_zftp' +) + +_compautos=( +'_call_program' '+X' +) + +zle -C _bash_complete-word .complete-word _bash_completions +zle -C _bash_list-choices .list-choices _bash_completions +zle -C _complete_debug .complete-word _complete_debug +zle -C _complete_help .complete-word _complete_help +zle -C _complete_tag .complete-word _complete_tag +zle -C _correct_filename .complete-word _correct_filename +zle -C _correct_word .complete-word _correct_word +zle -C _expand_alias .complete-word _expand_alias +zle -C _expand_word .complete-word _expand_word +zle -C _history-complete-newer .complete-word _history_complete_word +zle -C _history-complete-older .complete-word _history_complete_word +zle -C _list_expansions .list-choices _expand_word +zle -C _most_recent_file .complete-word _most_recent_file +zle -C _next_tags .list-choices _next_tags +zle -C _read_comp .complete-word _read_comp +bindkey '^X^R' _read_comp +bindkey '^X?' _complete_debug +bindkey '^XC' _correct_filename +bindkey '^Xa' _expand_alias +bindkey '^Xc' _correct_word +bindkey '^Xd' _list_expansions +bindkey '^Xe' _expand_word +bindkey '^Xh' _complete_help +bindkey '^Xm' _most_recent_file +bindkey '^Xn' _next_tags +bindkey '^Xt' _complete_tag +bindkey '^X~' _bash_list-choices +bindkey '^[,' _history-complete-newer +bindkey '^[/' _history-complete-older +bindkey '^[~' _bash_complete-word + +autoload -Uz _bluetoothctl _guix _loginctl _polybar _polybar_msg \ + _pulseaudio _sway _swayidle _swaylock _swaymsg \ + _wl-copy _wl-paste _a2ps _a2utils _aap \ + _abcde _absolute_command_paths _ack _acpi _acpitool \ + _acroread _adb _add-zle-hook-widget _add-zsh-hook _alias \ + _aliases _all_labels _all_matches _alsa-utils _alternative \ + _analyseplugin _ansible _ant _antiword _apachectl \ + _apm _approximate _apt _apt-file _aptitude \ + _apt-move _apt-show-versions _arch_archives _arch_namespace _arg_compile \ + _arguments _arp _arping _arrays _asciidoctor \ + _asciinema _assign _at _attr _augeas \ + _auto-apt _autocd _avahi _awk _axi-cache \ + _base64 _basename _bash _bash_completions _baudrates \ + _baz _beadm _beep _be_name _bibtex \ + _bind_addresses _bindkey _bison _bittorrent _bogofilter \ + _bpf_filters _bpython _brace_parameter _brctl _bsdconfig \ + _bsd_disks _bsdinstall _bsd_pkg _btrfs _bts \ + _bug _builtin _bzip2 _bzr _cabal \ + _cache_invalid _caffeinate _cal _calendar _call_function \ + _canonical_paths _cat _ccal _cd _cdbs-edit-patch \ + _cdcd _cdr _cdrdao _cdrecord _chattr \ + _chcon _chflags _chkconfig _chmod _chown \ + _chroot _chrt _chsh _cksum _clay \ + _cmdambivalent _cmdstring _cmp _code _column \ + _combination _comm _command _command_names _compadd \ + _compdef _complete _complete_debug _complete_help _complete_help_generic \ + _completers _complete_tag _comp_locale _composer _compress \ + _condition _configure _coreadm _correct _correct_filename \ + _correct_word _cowsay _cp _cpio _cplay \ + _cpupower _crontab _cryptsetup _cscope _cssh \ + _csup _ctags_tags _cu _curl _cut \ + _cvs _cvsup _cygcheck _cygpath _cygrunsrv \ + _cygserver _cygstart _dak _darcs _date \ + _date_formats _dates _dbus _dchroot _dchroot-dsa \ + _dconf _dcop _dcut _dd _deb_architectures \ + _debbugs_bugnumber _debchange _debcheckout _deb_codenames _debdiff \ + _deb_files _debfoster _deborphan _deb_packages _debsign \ + _debuild _default _defaults _delimiters _describe \ + _description _devtodo _df _dhclient _dhcpinfo \ + _dict _dict_words _diff _diff3 _diff_options \ + _diffstat _dig _directories _directory_stack _dir_list \ + _dirs _disable _dispatch _django _dkms \ + _dladm _dlocate _dmesg _dmidecode _dnf \ + _dns_types _doas _domains _dos2unix _dpatch-edit-patch \ + _dpkg _dpkg-buildpackage _dpkg-cross _dpkg-repack _dpkg_source \ + _dput _drill _dsh _dtrace _dtruss \ + _du _dumpadm _dumper _dupload _dvi \ + _dynamic_directory_name _e2label _ecasound _echotc _echoti \ + _ed _elfdump _elinks _email_addresses _emulate \ + _enable _enscript _entr _env _eog \ + _equal _espeak _etags _ethtool _evince \ + _exec _expand _expand_alias _expand_word _extensions \ + _external_pwds _fakeroot _fbsd_architectures _fbsd_device_types _fc \ + _feh _fetch _fetchmail _ffmpeg _figlet \ + _file_descriptors _file_flags _file_modes _files _file_systems \ + _find _findmnt _find_net_interfaces _finger _fink \ + _first _flac _flex _floppy _flowadm \ + _fmadm _fmt _fold _fortune _free \ + _freebsd-update _fsh _fstat _fs_usage _functions \ + _fuse_arguments _fuser _fusermount _fuse_values _fw_update \ + _gcc _gcore _gdb _geany _gem \ + _generic _genisoimage _getclip _getconf _getent \ + _getfacl _getmail _getopt _ghostscript _git \ + _git-buildpackage _global _global_tags _globflags _globqual_delims \ + _globquals _gnome-gv _gnu_generic _gnupod _gnutls \ + _go _gpasswd _gpg _gphoto2 _gprof \ + _gqview _gradle _graphicsmagick _grep _grep-excuses \ + _groff _groups _growisofs _gsettings _gstat \ + _guard _guilt _gv _gzip _hash \ + _have_glob_qual _hdiutil _head _hexdump _history \ + _history_complete_word _history_modifiers _host _hostname _hosts \ + _htop _hwinfo _iconv _iconvconfig _id \ + _ifconfig _iftop _ignored _imagemagick _inetadm \ + _initctl _init_d _install _in_vared _invoke-rc.d \ + _ionice _iostat _ip _ipadm _ipsec \ + _ipset _iptables _irssi _ispell _iwconfig \ + _jail _jails _java _java_class _jexec \ + _jls _jobs _jobs_bg _jobs_builtin _jobs_fg \ + _joe _join _jot _jq _kdeconnect \ + _kfmclient _kill _killall _kld _knock \ + _kpartx _kvno _last _ldap _ldconfig \ + _ldd _ld_debug _less _lha _libvirt \ + _lighttpd _limit _limits _links _lintian \ + _list _list_files _lldb _ln _loadkeys \ + _locale _localedef _locales _locate _logical_volumes \ + _look _losetup _lp _ls _lsattr \ + _lsblk _lscfg _lsdev _lslv _lsof \ + _lspv _lsusb _lsvg _ltrace _lua \ + _luarocks _lynx _lz4 _lzop _mac_applications \ + _mac_files_for_application _madison _mail _mailboxes _main_complete \ + _make _make-kpkg _man _match _math \ + _math_params _matlab _md5sum _mdadm _mdfind \ + _mdls _mdutil _members _mencal _menu \ + _mere _mergechanges _message _mh _mii-tool \ + _mime_types _mixerctl _mkdir _mkfifo _mknod \ + _mkshortcut _mktemp _mkzsh _module _module-assistant \ + _module_math_func _modutils _mondo _monotone _moosic \ + _mosh _most_recent_file _mount _mozilla _mpc \ + _mplayer _mt _mtools _mtr _multi_parts \ + _mupdf _mutt _mv _my_accounts _myrepos \ + _mysqldiff _mysql_utils _nautilus _nbsd_architectures _ncftp \ + _nedit _netcat _net_interfaces _netscape _netstat \ + _networkmanager _networksetup _newsgroups _next_label _next_tags \ + _nginx _ngrep _nice _nkf _nl \ + _nm _nmap _normal _nothing _npm \ + _nslookup _numfmt _nvram _objdump _object_classes \ + _object_files _obsd_architectures _od _okular _oldlist \ + _open _openstack _opkg _options _options_set \ + _options_unset _osascript _osc _other_accounts _otool \ + _pack _pandoc _parameter _parameters _paste \ + _patch _patchutils _path_commands _path_files _pax \ + _pbcopy _pbm _pbuilder _pdf _pdftk \ + _perforce _perl _perl_basepods _perldoc _perl_modules \ + _pfctl _pfexec _pgrep _php _physical_volumes \ + _pick_variant _picocom _pidof _pids _pine \ + _ping _piuparts _pkg5 _pkgadd _pkg-config \ + _pkgin _pkginfo _pkg_instance _pkgrm _pkgtool \ + _plutil _pmap _pon _portaudit _portlint \ + _portmaster _ports _portsnap _postfix _postgresql \ + _postscript _powerd _precommand _prefix _print \ + _printenv _printers _process_names _procstat _prompt \ + _prove _prstat _ps _ps1234 _pscp \ + _pspdf _psutils _ptree _pump _putclip \ + _pv _pwgen _pydoc _python _python_modules \ + _qdbus _qemu _qiv _qtplay _quilt \ + _rake _ranlib _rar _rcctl _rclone \ + _rcs _rdesktop _read _read_comp _readelf \ + _readlink _readshortcut _rebootin _redirect _regex_arguments \ + _regex_words _remote_files _renice _reprepro _requested \ + _retrieve_cache _retrieve_mac_apps _ri _rlogin _rm \ + _rmdir _route _rpm _rrdtool _rsync \ + _rubber _ruby _run-help _runit _samba \ + _savecore _say _sbuild _sccs _sched \ + _schedtool _schroot _scl _scons _screen \ + _script _scselect _sc_usage _scutil _seafile \ + _sed _selinux_contexts _selinux_roles _selinux_types _selinux_users \ + _sep_parts _seq _sequence _service _services \ + _set _set_command _setfacl _setopt _setsid \ + _setup _setxkbmap _sh _shasum _showmount \ + _shred _shuf _shutdown _signals _signify \ + _sisu _slabtop _slrn _smartmontools _smit \ + _snoop _socket _sockstat _softwareupdate _sort \ + _source _spamassassin _split _sqlite _sqsh \ + _ss _ssh _sshfs _ssh_hosts _stat \ + _stdbuf _stgit _store_cache _stow _strace \ + _strftime _strings _strip _stty _su \ + _sub_commands _sublimetext _subscript _subversion _sudo \ + _suffix_alias_files _surfraw _SUSEconfig _svcadm _svccfg \ + _svcprop _svcs _svcs_fmri _svn-buildpackage _swaks \ + _swanctl _swift _sw_vers _sys_calls _sysctl \ + _sysrc _sysstat _systat _system_profiler _tac \ + _tags _tail _tar _tar_archive _tardy \ + _tcpdump _tcpsys _tcptraceroute _tee _telnet \ + _terminals _tex _texi _texinfo _tidy \ + _tiff _tilde _tilde_files _timeout _time_zone \ + _tin _tla _tload _tmux _todo.sh \ + _toilet _toolchain-source _top _topgit _totd \ + _touch _tpb _tput _tr _tracepath \ + _transmission _trap _trash _tree _truss \ + _tty _ttyctl _ttys _tune2fs _twidge \ + _twisted _typeset _ulimit _uml _umountable \ + _unace _uname _unexpand _unhash _uniq \ + _unison _units _update-alternatives _update-rc.d _uptime \ + _urls _urpmi _urxvt _uscan _user_admin \ + _user_at_host _user_expand _user_math_func _users _users_on \ + _valgrind _value _values _vared _vars \ + _vcsh _vim _vim-addons _visudo _vmctl \ + _vmstat _vnc _volume_groups _vorbis _vpnc \ + _vserver _w _w3m _wait _wajig \ + _wakeup_capable_devices _wanna-build _wanted _watch _watch-snoop \ + _wc _webbrowser _wget _whereis _which \ + _who _whois _widgets _wiggle _wipefs \ + _wpa_cli _xargs _x_arguments _xauth _xautolock \ + _x_borderwidth _xclip _xcode-select _x_color _x_colormapid \ + _x_cursor _x_display _xdvi _x_extension _xfig \ + _x_font _xft_fonts _x_geometry _x_keysym _xloadimage \ + _x_locale _xmlsoft _xmlstarlet _xmms2 _x_modifier \ + _xmodmap _x_name _xournal _xpdf _xrandr \ + _x_resource _xscreensaver _x_selection_timeout _xset _xt_arguments \ + _xterm _x_title _xt_session_id _x_utils _xv \ + _x_visual _x_window _xwit _xxd _xz \ + _yafc _yast _yodl _yp _yum \ + _zargs _zattr _zcalc _zcalc_line _zcat \ + _zcompile _zdump _zeal _zed _zfs \ + _zfs_dataset _zfs_keysource_props _zfs_pool _zftp _zip \ + _zle _zlogin _zmodload _zmv _zoneadm \ + _zones _zparseopts _zpool _zpty _zsh \ + _zsh-mime-handler _zsocket _zstyle _ztodo _zypper +autoload -Uz +X _call_program + +typeset -gUa _comp_assocs +_comp_assocs=( '' ) + +#omz revision: 8cb53ba692a3df24a9b3159ef221ec3cf8d058e1 +#omz fpath: /home/opal/.config/oh-my-zsh/plugins/git /home/opal/.config/oh-my-zsh/functions /home/opal/.config/oh-my-zsh/completions /home/opal/.config/oh-my-zsh/cache/completions /usr/local/share/zsh/site-functions /run/current-system/profile/share/zsh/site-functions /gnu/store/71yp1p06jy2j96bfdz43f4p6ncdym5a1-zsh-5.8/share/zsh/5.8/functions diff --git a/dotfiles/guix/home/files/zsh/.zprofile b/dotfiles/guix/home/files/zsh/.zprofile new file mode 100644 index 0000000..dac87fa --- /dev/null +++ b/dotfiles/guix/home/files/zsh/.zprofile @@ -0,0 +1,15 @@ +# Each new shell auto-imports all environment variables. +# Hence exporting needs to be done only once. +# Also, all non-login shells are descendants of a login shell. +# Ergo, exports need to be done in the login shell only. +# Hence, we put exports in .zprofile + +# Only vars needed by external commands should be exported. +# Note that you can export vars w/out assigning a value to them. +export XDG_CONFIG_HOME=~/.config +export XDG_CACHE_HOME=~/.cache +export XDG_DATA_HOME=~/.local/share +export XDG_STATE_HOME=~/.config/zsh +export EDITOR=nvim +export VISUAL=nvim +GUIX_PROFILE="$HOME/.config/guix/current" . "$GUIX_PROFILE/etc/profile" diff --git a/dotfiles/guix/home/files/zsh/.zsh_history b/dotfiles/guix/home/files/zsh/.zsh_history new file mode 100644 index 0000000..87dfd8f --- /dev/null +++ b/dotfiles/guix/home/files/zsh/.zsh_history @@ -0,0 +1,402 @@ +: 1631168625:0;vim .zshrc +: 1631169669:0;wal ~/Downloads/grain.jpg +: 1631169685:0;wal -b /home/ry/Downloads/grain.jpg +: 1631169702:0;man wal +: 1631169723:0;wal --backend +: 1631169743:0;wal -i /home/ry/Downloads/grain.jpg +: 1631169806:0;ls +: 1631169832:0;mkdir ~/.config/alacritty +: 1631169849:0;vim ~/.config/alacritty/alacritty.yml +: 1631170200:0;wal -i ~/Downloads/grain.jpg +: 1631170207:0;wal -i ~/Downloads/grain.jpg -b +: 1631170222:0;wal -b -i ~/Downloads/grain.jpg +: 1631170346:0;vim ~/.config/awesome/rc.lua +: 1631170969:0;mkdir ~/.config/awesome/themes +: 1631170996:0;cp -R /usr/share/awesome/themes/* ~/.config/awesome/themes +: 1631171002:0;ls +: 1631171003:0;cd .config +: 1631171004:0;ls +: 1631171006:0;cd awesome +: 1631171006:0;ls +: 1631171009:0;vim rc.lua +: 1631171201:0;vim ~/.config/awesome/themes/default +: 1631171246:0;ls +: 1631171255:0;rm -r themes +: 1631171255:0;ls +: 1631171269:0;vim rc.lua +: 1631171553:0;sudo pacman -S inconsolata +: 1631171572:0;sudo pacman -Ss inconsolata +: 1631171580:0;sudo pacman -S ttf-inconsolata +: 1631171776:0;vim rc.lua +: 1631171957:0;sudo pacman -S zip unzip +: 1631171977:0;cd Downloads +: 1631171980:0;unzip Hack-v3.003-ttf.zip +: 1631171981:0;ls +: 1631171987:0;cd ttf +: 1631171988:0;ls +: 1631171989:0;cd .. +: 1631171990:0;ls +: 1631172033:0;cp ttf/* /usr/share/fonts +: 1631172085:0;mv ttf hack +: 1631172096:0;sudo cp hack /usr/share/fonts/ +: 1631172104:0;sudo cp -r hack /usr/share/fonts/ +: 1631172109:0;ls +: 1631172111:0;cd hack +: 1631172112:0;ls +: 1631172113:0;cd .. +: 1631172217:0;fc-cache -f -v +: 1631172234:0;fc-list | grep "Hack" +: 1631172291:0;vim ~/.config/alacritty/alacritty.yml +: 1631173180:0;sudo pacman -S picom +: 1631173359:0;vim /usr/share/awesome/themes/default/theme.lua +: 1631173453:0;vim rc.lua +: 1631173502:0;vim /usr/share/awesome/themes/default/theme.lua +: 1631173517:0;sudo vim /usr/share/awesome/themes/default/theme.lua +: 1631173575:0;sudo -i +: 1631173807:0;pacman -S --needed lightdm-webkit2-greeter lightdm-webkit-theme-litarvan +: 1631173810:0;sudo pacman -S --needed lightdm-webkit2-greeter lightdm-webkit-theme-litarvan +: 1631173827:0;sudo vim /etc/lightdm/lightdm.conf +: 1631173861:0;sudo vim /etc/lightdm/lightdm-webkit2-greeter.conf +: 1631173882:0;reboot +: 1631174209:0;sudo -i +: 1631174291:0;mv ~/Downloads/grain.jpg ~/Pictures/grain.jpg +: 1631174307:0;vim ~/.config/awesome/rc.lua +: 1631174714:0;man shutdown +: 1631174741:0;man poweroff +: 1631174762:0;poweroff -f +: 1631174765:0;sudo poweroff -f +: 1631203235:0;ls +: 1631203239:0;ls -la +: 1631203437:0;ls +: 1631203442:0;cd Downloads +: 1631203442:0;ls +: 1631203447:0;unzip Attachments-asd.zip +: 1631203449:0;ls +: 1631203459:0;mkdir ~/.ssh +: 1631203463:0;mv config ~/.ssh +: 1631203469:0;mv id_rsa ~/.ssh +: 1631203478:0;mv id_rsa.pub ~/.ssh/ +: 1631203487:0;mv known_hosts ~/.ssh +: 1631203490:0;ssh-add +: 1631203502:0;chmod 600 ~/.ssh/id_rsa +: 1631203505:0;chmod 600 ~/.ssh/id_rsa.pub +: 1631203508:0;ssh-add +: 1631203518:0;ssh mail +: 1631204194:0;ls +: 1631205222:0;ls -la +: 1631205240:0;sudo vim /etc/lightdm/lightdm.conf +: 1631205263:0;reboot +: 1631205489:0;ls +: 1631205495:0;ls -la +: 1631205701:0;uname -a +: 1631205719:0;uname +: 1631205722:0;name -a +: 1631205725:0;uname -a +: 1631206735:0;vim ~/.config/awesome/rc.lua +: 1631206901:0;ssh mail +: 1631207021:0;sudo pacman -S terminfo +: 1631207026:0;terminfo +: 1631207140:0;vim ~/.config/alacritty/alacritty.yml +: 1631207171:0;ssh mail +: 1631207341:0;vim ~/.zshrc +: 1631207398:0;vim ~/.config/alacritty/alacritty.yml +: 1631207419:0;ssh mail +: 1631207707:0;xflock4 +: 1631208953:0;ssh mail +: 1631209463:0;ls -la /etc/lightdm +: 1631209504:0;sudo systemctl status lightdm +: 1631209564:0;sudo vim /etc/lightdm/lightdm.conf +: 1631210719:0;ssh mail +: 1631211283:0;ls +: 1631211284:0;ls -la +: 1631211293:0;cat .Xauthority +: 1631211299:0;cat .xsession-errors +: 1631211316:0;ls +: 1631211443:0;vim ~/.xprofile +: 1631211488:0;sudo -i +: 1631211817:0;ls +: 1631211820:0;vim ~/.xsession-errors +: 1631211833:0;vim ~/.Xsession +: 1631211958:0;which nitrogen +: 1631212118:0;lightdm --version +: 1631212155:0;vim ~/.config/awesome/rc.lua +: 1631213050:0;sudo pacman -Rs nitrogen +: 1631213259:0;vim ~/.config/awesome/rc.lua +: 1631213504:0;sudo -i +: 1631213545:0;ls +: 1631213547:0;cd .config +: 1631213547:0;ls +: 1631213552:0;cd awesome +: 1631213557:0;sudo chmod 644 default +: 1631213557:0;ls +: 1631213558:0;ls -la +: 1631213574:0;sudo chmod 744 default +: 1631213575:0;ls +: 1631213576:0;ls -la +: 1631213578:0;cd default +: 1631213578:0;ls +: 1631213587:0;sudo chown ry:ry default +: 1631213588:0;ls +: 1631213589:0;ls -la +: 1631213590:0;cd default +: 1631213591:0;ls +: 1631213592:0;ls -la +: 1631213600:0;sudo chown -r ry:ry default +: 1631213603:0;sudo chown -R ry:ry default +: 1631213609:0;sudo chown -R ry:ry ../default +: 1631213610:0;ls -la +: 1631213618:0;vim theme.lua +: 1631213715:0;vim ../rc.lua +: 1631213765:0;SSH MAIL +: 1631213767:0;ssh mail +: 1631214012:0;ls +: 1631214014:0;ls -la +: 1631214018:0;pwd +: 1631214068:0;ls +: 1631214073:0;vim theme.lua +: 1631214117:0;cd .config +: 1631214117:0;ls +: 1631214293:0;cd .. +: 1631214293:0;ls +: 1631214321:0;vim autorun.sh +: 1631214406:0;cp ~/Pictures/grain.jpg ~/.config/ +: 1631214415:0;rm ~/.config/grain.jpg +: 1631214421:0;sudo pacman -S feh +: 1631214469:0;which wal +: 1631214660:0;wal -i ~/Pictures/grain.jpg +: 1631214675:0;sudo pacman -S imagemagick +: 1631214710:0;wal -i ~/Pictures/grain.jpg +: 1631214795:0;ls +: 1631214803:0;vim default/theme.lua +: 1631214822:0;vim rc.lua +: 1631215060:0;ls +: 1631215061:0;pwd +: 1631215077:0;mkdir themes +: 1631215082:0;mv default themes +: 1631215083:0;ls +: 1631215116:0;vim themes/default/theme.lua +: 1631215219:0;cp ~/Pictures/grain.jpg ~/.config/awesome/themes/default/pic.jpg +: 1631215475:0;ls ~/.config/awesome/themes/default/pic.jpg +: 1631215559:0;ls +: 1631215578:0;ls -la +: 1631215601:0;chmod -R 664 ~/.config +: 1631215612:0;ls -la +: 1631215614:0;cd .. +: 1631215615:0;ls -la +: 1631215616:0;cd +: 1631215617:0;ls -la +: 1631215633:0;sudo chmod -R 664 ~/.config +: 1631215647:0;ls +: 1631215649:0;cd .config +: 1631215650:0;ls +: 1631215651:0;ls -la +: 1631215666:0;sudo chmod -R 774 ~/.config +: 1631215773:0;~ +: 1631215774:0;ls +: 1631215836:0;cd .config/awesome +: 1631215836:0;ls +: 1631215837:0;ls -la +: 1631215852:0;vim themes/default/theme.lua +: 1631216516:0;sudo pacman -Syyu +: 1631216552:0;vim /etc/pacman.conf +: 1631216635:0;ls +: 1631216643:0;vim ~/.config/user-dirs.locale +: 1631216648:0;vim ~/.config/user-dirs.dirs +: 1631216688:0;ls +: 1631216695:0;rm -r Desktop +: 1631216695:0;ls +: 1631216700:0;mv Documents docs +: 1631216707:0;mv Downloads dls +: 1631216708:0;ls +: 1631216715:0;mv Music music +: 1631216718:0;mv Pictures pics +: 1631216731:0;ls +: 1631216734:0;rm Public Templates +: 1631216738:0;rm -r Public Templates +: 1631216739:0;ls +: 1631216743:0;mv Videos vids +: 1631216743:0;ls +: 1631216803:0;cd scripts +: 1631216803:0;ls +: 1631216816:0;ls -la +: 1631216945:0;ls +: 1631216975:0;sudo pacman -S neovim +: 1631216988:0;ls +: 1631216991:0;neofetch +: 1631217001:0;ls +: 1631217034:0;cd ~/.config +: 1631217034:0;ls +: 1631217037:0;ls -la +: 1631217056:0;vim neofetch/config.conf +: 1631217261:0;ssh mail +: 1631218022:0;ls +: 1631218031:0;sudo vim /etc/pacman.conf +: 1631218049:0;sudo cp /etc/pacman.conf /etc/pacman.conf.bak +: 1631218053:0;ls +: 1631218057:0;vim /etc/pacman.conf +: 1631218083:0;sudo vim /etc/pacman.conf +: 1631218112:0;man pacman +: 1631218129:0;pacman -Q endeavor +: 1631218130:0;pacman -Q endeavor* +: 1631218133:0;pacman -Q +: 1631218186:0;pacman -S | tee ~/output.txt +: 1631218193:0;pacman -Q | tee ~/output.txt +: 1631218195:0;ls +: 1631218470:0;sudo pacman -Rs endeavoros-keyring endeavoros-mirrorlist endeavor-skel-xfce4 endeavoros-theming endeavoros-xfce4-terminal-colors eos-apps-info eos-bash-shared eos-hooks eos-log-tool eos-rankmirrors eos-translations eos-update-notifier +: 1631218515:0;pacman -Q endeavouros-keyring +: 1631218522:0;pacman -R endeavouros-keyring +: 1631218525:0;sudo pacman -R endeavouros-keyring +: 1631218533:0;sudo pacman -R endeavouros-mirrorlist +: 1631218548:0;sudo pacman -R endeavouros-skel-xfce4 endeavouros-theming endeavouros-xfce4-terminal-colors +: 1631218566:0;sudo pacman -R eos-bash-shared +: 1631218576:0;sudo pacman -R eos-log-tool +: 1631218580:0;sudo pacman -R eos-hooks +: 1631218585:0;sudo pacman -R eos-rankmirrors +: 1631218591:0;sudo pacman -R eos-apps-info +: 1631218596:0;sudo pacman -R eos-bash-shared +: 1631218601:0;sudo pacman -R eos-translations +: 1631218606:0;sudo pacman -R eos-update-notifier +: 1631218612:0;sudo pacman -R welcome +: 1631218622:0;sudo pacman -R endeavouros-skel-xfce4 +: 1631218627:0;sudo pacman -R endeavouros-theming +: 1631218636:0;sudo pacman -R endeavouros-xfce4-terminal-colors +: 1631218640:0;sudo pacman -R endeavouros-theming +: 1631218648:0;sudo pacman -R eos-bash-shared +: 1631218655:0;sudo pacman -R reflector-simple +: 1631218658:0;sudo pacman -R eos-bash-shared +: 1631218661:0;sudo pacman -R endeavouros-theming +: 1631218678:0;sudo pacman -Syyu +: 1631218728:0;sudo pacman -Scc +: 1631218753:0;pacman -S filesystem +: 1631218756:0;sudo pacman -S filesystem +: 1631218763:0;sudo pacman -S grub +: 1631218775:0;vim /etc/default/grub +: 1631218794:0;sudo -i +: 1631219694:0;ssh mail +: 1631220256:0;sudo pacman -S zathura-pdf-mupdf +: 1631220336:0;ssh mail +: 1631223216:0;uname -r +: 1631223220:0;neofetch +: 1631223230:0;pacman -S lsb-release +: 1631223233:0;sudo pacman -S lsb-release +: 1631223240:0;neofetch +: 1631223251:0;ls +: 1631223253:0;cd bin +: 1631223253:0;ls +: 1631223319:0;vim ~/.config/user-dirs.dirs +: 1631223334:0;cd +: 1631223340:0;rm -rf Public Templates Desktop +: 1631223341:0;ls +: 1631223361:0;cd go +: 1631223361:0;ls +: 1631223362:0;cd .. +: 1631223363:0;rm go +: 1631223364:0;ls +: 1631223367:0;rm -r go +: 1631223367:0;ls +: 1631223370:0;rm output.txt +: 1631223371:0;ls +: 1631223379:0;vim ~/.config/user-dirs.dirs +: 1631223451:0;ls +: 1631223453:0;rm -r Desktop +: 1631223453:0;ls +: 1631223455:0;ls -la +: 1631223458:0;ls +: 1631224903:0;pkill lightdm +: 1631224906:0;sudo pkill lightdm +: 1631225001:0;pacman -Q | grep lightdm +: 1631225014:0;ls +: 1631225048:0;xdg-user-dirs-update +: 1631225056:0;rm -r Desktop Public Templates +: 1631225056:0;ls +: 1631225067:0;vim ~/.config/user-dirs.dirs +: 1631225082:0;ls +: 1631225977:0;cd .config +: 1631225977:0;ls +: 1631226648:0;git init +: 1631226679:0;ls +: 1631226683:0;vim .gitignore +: 1631226723:0;cd .config +: 1631226729:0;ls +: 1631226785:0;git add . +: 1631226788:0;git commit -m "first" +: 1631226803:0;git config --global user.email "rpem66@pm.me" +: 1631226825:0;git config --global user.name "Ry" +: 1631226826:0;ls +: 1631226830:0;git commit -m "first" +: 1631226835:0;ls +: 1631226854:0;git remote add origin http://git.tr909.sh/ry/dotfiles.git +: 1631226858:0;git push origin master +: 1631226882:0;cd .config +: 1631226885:0;vim .gitignore +: 1631226935:0;git add . +: 1631226939:0;git commit -m "first" +: 1631226942:0;git push origin master +: 1631227729:0;cd bin +: 1631227735:0;$ git clone --depth=1 https://github.com/adi1090x/rofi.git +: 1631227743:0;git clone --depth=1 https://github.com/adi1090x/rofi.git +: 1631227745:0;ls +: 1631227750:0;cd rofi +: 1631227750:0;ls +: 1631227759:0;chmod +x setup.sh +: 1631227762:0;./setup.sh +: 1631227876:0;vim ~/.config/rofi/launchers/text/launcher.sh +: 1631227970:0;vim ~/.config/awesome/rc.lua +: 1631228023:0;ls +: 1631228028:0;cd .. +: 1631228029:0;ls +: 1631228032:0;cd ~/.config/rofi +: 1631228033:0;l +: 1631228034:0;ls +: 1631228040:0;./launchers/text/launcher.sh +: 1631228048:0;vim ~/.config/rofi/launchers/text/launcher.sh +: 1631228090:0;vim ~/.config/rofi/launchers/text/styles/colors.rasi +: 1631228146:0;vim ~/.config/rofi/launchers/text/launcher.sh +: 1631228157:0;vim ~/.config/awesome/rc.lua +: 1631228217:0;vim ~/.config/rofi/launchers/text/launcher.sh +: 1631228284:0;vim ~/.config/rofi/launchers/text/styles/colors.rasi +: 1631228353:0;;s +: 1631228354:0;ls +: 1631228355:0;cd .. +: 1631228355:0;ls +: 1631228362:0;git add . +: 1631228368:0;git commit -m "added rofi stuff" +: 1631228373:0;git push origin master +: 1631228433:0;ls +: 1631228527:0;sudo vim /etc/zsh/zshenv +: 1631228550:0;mkdir ~/.config/zsh +: 1631228566:0;mv ~/.zshrc ~/.config/zsh +: 1631228567:0;ls +: 1631228584:0;source ~/.config/zsh/.zshrc +: 1631228593:0;ls +: 1631228594:0;ls -la +: 1631228603:0;rm -rf EOS-greeter.conf +: 1631228607:0;rm EOS-initial-wallpaper.XFCE +: 1631228608:0;ls +: 1631228613:0;rm reflector-simple-free-params.txt +: 1631228623:0;sudo pacman -Rs neofetch +: 1631228625:0;ls +: 1631228629:0;rm -r neofetch +: 1631228629:0;ls +: 1631228632:0;cd ../bin +: 1631228633:0;ls +: 1631228647:0;git clone https://github.com/dylanaraps/pfetch.git +: 1631228650:0;ls +: 1631228652:0;cd pfetch +: 1631228652:0;ls +: 1631228655:0;cat README.md +: 1631228672:0;make pfetch +: 1631228674:0;ls +: 1631228677:0;sudo make install pfetch +: 1631228686:0;sudo make pfetch +: 1631228709:0;make install pfetch +: 1631228712:0;make install +: 1631228714:0;sudo make install +: 1631228715:0;ls +: 1631228716:0;pfetch +: 1631228726:0;vim ~/.config/zsh/.zshrc +: 1631228785:0;cd .config +: 1631228785:0;ls +: 1631228788:0;vim .gitignore +: 1631228808:0;ls +: 1631228818:0;mv ~/.zsh_history ~/.config/zsh/ diff --git a/dotfiles/guix/home/files/zsh/.zshrc b/dotfiles/guix/home/files/zsh/.zshrc new file mode 100644 index 0000000..5444dec --- /dev/null +++ b/dotfiles/guix/home/files/zsh/.zshrc @@ -0,0 +1,66 @@ +[[ $TERM == "dumb" ]] && unsetopt zle && PS1='$ ' && return + +# --- zsh config --- # +export ZSH="$XDG_CONFIG_HOME/oh-my-zsh" +HISTFILE=$XDG_CONFIG_HOME/zsh/.history +ZSH_THEME="mrtazz" +DISABLE_AUTO_UPDATE="true" +ENABLE_CORRECTION="true" +plugins=(git) +# This has to stay below plugins. +source $ZSH/oh-my-zsh.sh + +# --- user paths --- # +# scripts +export PATH=/home/ry/scripts:$PATH +# cron scripts +export PATH=/home/ry/scripts/cron-scripts:$PATH +# doom +export PATH=~/.config/emacs/bin:$PATH +# GNU Guix path +export PATH=/home/ry/.guix-profile/bin:$PATH +# --- locale --- # +export LANG=en_US.UTF-8 + +# --- autostart --- # +pfetch + +# --- Functions --- # +# Move files to trash folder instead. +del () { mv "$@" $HOME/.local/share/Trash/files/.; } +# Make directory and CD into it. +mkcd () { mkdir -p -- "$1" && cd -P -- "$1" } + +# --- Aliases --- # +# dnf +alias install="sudo dnf -y install" +alias remove="sudo dnf remove" +alias search="dnf search" +alias update="sudo dnf update" + +# qol +alias vi="nvim" +alias vim="nvim" +alias unmount="umount" + +# systemD +alias sr="sudo systemctl restart" +alias se="sudo systemctl enable" +alias sen="sudo systemctl enable --now" +alias sd="sudo systemctl disable" + +# git +alias ga="git add" +alias gc="git commit -m" +alias gs="git status" +alias gd="git diff" +alias gm="git merge" +alias gp="git push" +alias gco="git checkout" + +# config +alias zshrc="vim ~/dotfiles/.config/zsh/.zshrc" +alias zshrcsource="source ~/.config/zsh/.zshrc" + +# firewalld +alias fcmd="firewall-cmd" diff --git a/dotfiles/guix/home/files/zsh/history b/dotfiles/guix/home/files/zsh/history new file mode 100644 index 0000000..6d22e59 --- /dev/null +++ b/dotfiles/guix/home/files/zsh/history @@ -0,0 +1,3 @@ +: 1633197304:0;ls +: 1633197308:0;vim .zshrc +: 1633197317:0;zshrcsource diff --git a/dotfiles/guix/home/files/zsh/pipewire/media-session.d/bluez-autoswitch b/dotfiles/guix/home/files/zsh/pipewire/media-session.d/bluez-autoswitch new file mode 100644 index 0000000..6f31cf5 --- /dev/null +++ b/dotfiles/guix/home/files/zsh/pipewire/media-session.d/bluez-autoswitch @@ -0,0 +1 @@ +{ } \ No newline at end of file diff --git a/dotfiles/guix/home/files/zsh/pipewire/media-session.d/default-routes b/dotfiles/guix/home/files/zsh/pipewire/media-session.d/default-routes new file mode 100644 index 0000000..59e995d --- /dev/null +++ b/dotfiles/guix/home/files/zsh/pipewire/media-session.d/default-routes @@ -0,0 +1,21 @@ +{ + "default.route.alsa_card.usb-C-Media_Electronics_Inc._USB_Audio_Device-00:profile:off": [ ], + "default.route.alsa_card.pci-0000_00_1f.3-platform-skl_hda_dsp_generic:profile:off": [ ], + "default.route.alsa_card.usb-C-Media_Electronics_Inc._USB_Audio_Device-00:profile:output:analog-stereo+input:mono-fallback": [ "analog-output-speaker" ], + "default.route.alsa_card.pci-0000_00_1f.3-platform-skl_hda_dsp_generic:profile:HiFi": [ ], + "default.route.alsa_card.usb-C-Media_Electronics_Inc._USB_Audio_Device-00:output:analog-output-speaker": { "mute": false, "volumes": [ 0.438993, 0.438993 ], "channels": [ "FL", "FR" ], "latencyOffsetNsec": 0 }, + "default.route.alsa_card.pci-0000_00_1f.3-platform-skl_hda_dsp_generic:output:[Out] Speaker": { "mute": true, "volumes": [ 0.551383, 0.551383 ], "channels": [ "FL", "FR" ], "latencyOffsetNsec": 0 }, + "default.route.alsa_card.pci-0000_00_1f.3-platform-skl_hda_dsp_generic:input:[In] Mic1": { "mute": true, "volumes": [ 0.399992, 0.399992, 0.399992, 0.399992 ], "channels": [ "FL", "FR", "RL", "RR" ], "latencyOffsetNsec": 0 }, + "default.route.bluez_card.00_1B_66_BD_13_AA:profile:a2dp-sink-aac": [ "headphone-output" ], + "default.route.bluez_card.00_1B_66_BD_13_AA:output:headphone-output": { "mute": false, "volumes": [ 0.017544, 0.017544 ], "channels": [ "FL", "FR" ], "latencyOffsetNsec": 0 }, + "default.route.bluez_card.B8_F6_53_95_E8_5B:profile:a2dp-sink-sbc": [ "speaker-output" ], + "default.route.bluez_card.B8_F6_53_95_E8_5B:output:speaker-output": { "mute": false, "volumes": [ 0.830590, 0.830590 ], "channels": [ "FL", "FR" ], "latencyOffsetNsec": 0 }, + "default.route.alsa_card.pci-0000_00_1f.3-platform-skl_hda_dsp_generic:output:[Out] Headphones": { "mute": false, "volumes": [ 0.031800, 0.031800 ], "channels": [ "FL", "FR" ], "latencyOffsetNsec": 0 }, + "default.route.alsa_card.usb-0c76_USB_PnP_Audio_Device-00:profile:off": [ ], + "default.route.alsa_card.pci-0000_00_1f.3:profile:off": [ ], + "default.route.alsa_card.usb-0c76_USB_PnP_Audio_Device-00:profile:output:analog-stereo+input:mono-fallback": [ "analog-output-speaker" ], + "default.route.alsa_card.pci-0000_00_1f.3:profile:output:analog-stereo+input:analog-stereo": [ ], + "default.route.alsa_card.usb-0c76_USB_PnP_Audio_Device-00:output:analog-output-speaker": { "mute": false, "volumes": [ 1.000000, 1.000000 ], "channels": [ "FL", "FR" ], "latencyOffsetNsec": 0 }, + "default.route.alsa_card.usb-0c76_USB_PnP_Audio_Device-00:profile:output:iec958-stereo+input:mono-fallback": [ ], + "default.route.alsa_card.pci-0000_00_1f.3:profile:output:hdmi-stereo+input:analog-stereo": [ ] +} \ No newline at end of file diff --git a/dotfiles/guix/home/files/zsh/pipewire/media-session.d/restore-stream b/dotfiles/guix/home/files/zsh/pipewire/media-session.d/restore-stream new file mode 100644 index 0000000..4e22f43 --- /dev/null +++ b/dotfiles/guix/home/files/zsh/pipewire/media-session.d/restore-stream @@ -0,0 +1,14 @@ +{ + "restore.stream.Output/Audio.application.name:Firefox": { "volume": 1.000000, "mute": false, "volumes": [ 0.984018, 0.984018 ], "channels": [ "FL", "FR" ] }, + "restore.stream.Output/Audio.media.role:Notification": { "volume": 1.000000, "mute": false, "volumes": [ 1.000000, 1.000000 ], "channels": [ "FL", "FR" ] }, + "restore.stream.Output/Audio.application.name:eSpeak": { "volume": 1.000000, "mute": false, "volumes": [ 1.000000 ] }, + "restore.stream.Output/Audio.application.name:speech-dispatcher-espeak-ng": { "volume": 1.000000, "mute": false, "volumes": [ 1.000000 ], "channels": [ "MONO" ] }, + "restore.stream.Output/Audio.application.name:speech-dispatcher-dummy": { "volume": 1.000000, "mute": false, "volumes": [ 1.000000 ], "channels": [ "MONO" ] }, + "restore.stream.Output/Audio.application.name:Tor Browser": { "volume": 1.000000, "mute": false, "volumes": [ 0.000000, 0.000000 ], "channels": [ "FL", "FR" ] }, + "restore.stream.Input/Audio.application.name:GNOME Settings": { "volume": 1.000000, "mute": false, "volumes": [ 1.000000 ], "channels": [ "MONO" ] }, + "restore.stream.Output/Audio.application.name:VirtualBoxVM": { "volume": 1.000000, "mute": false, "volumes": [ 1.000000, 1.000000 ], "channels": [ "FL", "FR" ] }, + "restore.stream.Output/Audio.application.name:Chromium": { "volume": 1.000000, "mute": false, "volumes": [ 1.000000, 1.000000 ], "channels": [ "FL", "FR" ] }, + "restore.stream.Output/Audio.application.name:WEBRTC VoiceEngine": { "volume": 1.000000, "mute": false, "volumes": [ 1.000000, 1.000000 ], "channels": [ "FL", "FR" ] }, + "restore.stream.Output/Audio.media.role:Movie": { "volume": 1.000000, "mute": false, "volumes": [ 1.000000 ], "channels": [ "MONO" ] }, + "restore.stream.Output/Audio.application.name:IceCat": { "volume": 1.000000, "mute": false, "volumes": [ 0.585362, 0.585362 ], "channels": [ "FL", "FR" ] } +} \ No newline at end of file diff --git a/dotfiles/guix/home/files/zsh/zprofile b/dotfiles/guix/home/files/zsh/zprofile new file mode 100644 index 0000000..dac87fa --- /dev/null +++ b/dotfiles/guix/home/files/zsh/zprofile @@ -0,0 +1,15 @@ +# Each new shell auto-imports all environment variables. +# Hence exporting needs to be done only once. +# Also, all non-login shells are descendants of a login shell. +# Ergo, exports need to be done in the login shell only. +# Hence, we put exports in .zprofile + +# Only vars needed by external commands should be exported. +# Note that you can export vars w/out assigning a value to them. +export XDG_CONFIG_HOME=~/.config +export XDG_CACHE_HOME=~/.cache +export XDG_DATA_HOME=~/.local/share +export XDG_STATE_HOME=~/.config/zsh +export EDITOR=nvim +export VISUAL=nvim +GUIX_PROFILE="$HOME/.config/guix/current" . "$GUIX_PROFILE/etc/profile" diff --git a/dotfiles/guix/home/files/zsh/zshenv b/dotfiles/guix/home/files/zsh/zshenv new file mode 100644 index 0000000..27a88e2 --- /dev/null +++ b/dotfiles/guix/home/files/zsh/zshenv @@ -0,0 +1,9 @@ +if [[ -z "$XDG_CONFIG_HOME" ]] +then + export XDG_CONFIG_HOME="$HOME/.config" +fi + +if [[ -d "$XDG_CONFIG_HOME/zsh" ]] +then + export ZDOTDIR="$XDG_CONFIG_HOME/zsh" +fi diff --git a/dotfiles/guix/home/files/zsh/zshrc b/dotfiles/guix/home/files/zsh/zshrc new file mode 100644 index 0000000..5444dec --- /dev/null +++ b/dotfiles/guix/home/files/zsh/zshrc @@ -0,0 +1,66 @@ +[[ $TERM == "dumb" ]] && unsetopt zle && PS1='$ ' && return + +# --- zsh config --- # +export ZSH="$XDG_CONFIG_HOME/oh-my-zsh" +HISTFILE=$XDG_CONFIG_HOME/zsh/.history +ZSH_THEME="mrtazz" +DISABLE_AUTO_UPDATE="true" +ENABLE_CORRECTION="true" +plugins=(git) +# This has to stay below plugins. +source $ZSH/oh-my-zsh.sh + +# --- user paths --- # +# scripts +export PATH=/home/ry/scripts:$PATH +# cron scripts +export PATH=/home/ry/scripts/cron-scripts:$PATH +# doom +export PATH=~/.config/emacs/bin:$PATH +# GNU Guix path +export PATH=/home/ry/.guix-profile/bin:$PATH +# --- locale --- # +export LANG=en_US.UTF-8 + +# --- autostart --- # +pfetch + +# --- Functions --- # +# Move files to trash folder instead. +del () { mv "$@" $HOME/.local/share/Trash/files/.; } +# Make directory and CD into it. +mkcd () { mkdir -p -- "$1" && cd -P -- "$1" } + +# --- Aliases --- # +# dnf +alias install="sudo dnf -y install" +alias remove="sudo dnf remove" +alias search="dnf search" +alias update="sudo dnf update" + +# qol +alias vi="nvim" +alias vim="nvim" +alias unmount="umount" + +# systemD +alias sr="sudo systemctl restart" +alias se="sudo systemctl enable" +alias sen="sudo systemctl enable --now" +alias sd="sudo systemctl disable" + +# git +alias ga="git add" +alias gc="git commit -m" +alias gs="git status" +alias gd="git diff" +alias gm="git merge" +alias gp="git push" +alias gco="git checkout" + +# config +alias zshrc="vim ~/dotfiles/.config/zsh/.zshrc" +alias zshrcsource="source ~/.config/zsh/.zshrc" + +# firewalld +alias fcmd="firewall-cmd" diff --git a/dotfiles/guix/home/guix-home.scm b/dotfiles/guix/home/guix-home.scm new file mode 100644 index 0000000..2710a70 --- /dev/null +++ b/dotfiles/guix/home/guix-home.scm @@ -0,0 +1,201 @@ +(use-modules + (gnu) + (gnu home) + (gnu home services) + (gnu home services shells) + (gnu home services shepard) + (gnu packages libreoffice) + (gnu packages mail) + (gnu packages pdf)) + +(home-environment + (packages + (append + ;; Tools/Libraries + (list + gcc-toolchain + wget + curl + cmake + make + zip + unzip + libtool + openssl + openssh + gst-plugins-bad + gst-plugins-base + gst-plugins-good + gst-plugins-ugly + gst-libav + wl-clipboard + zsh + gnupg) + ;; Applications + (list + alacritty + nyxt + zathura-pdf-mupdf + thunar + firefox + wl-randr + libreoffice + calibre + mpv + youtube-dl + icedove + keepassxc + nautilus) + ;; Emacs + (list + emacs-vterm + emacs-geiser + emacs-geiser-guile + emacs-doom-modeline + emacs-all-the-icons + emacs-all-the-icons-dired + emacs-general + emacs-which-key + emacs-alert + emacs-helpful + emacs-pinentry + emacs-doom-themes + emacs-evil + emacs-evil-collection + emacs-vertico + emacs-orderless + emacs-consult + emacs-company + emacs-marginalia + emacs-perspective + emacs-dired-rsync + emacs-dired-hacks + emacs-org-bullets + emacs-org-make-toc + emacs-visual-fill-column + emacs-flycheck + emacs-rainbow-mode + emacs-rainbow-delimiters + emacs-magit + emacs-projectile + emacs-lsp-mode + emacs-lsp-ui + emacs-treemacs + emacs-lsp-treemacs + emacs-parinfer + emacs-yasnippet + emacs-pdf-tools) + ;; Languages + (list + ruby + python + guile + sbcl + perl + python-lsp-server + ruby-solargraph) + ;; Aesthetics/Fonts + (list + gnome-tweaks + papirus-icon-theme + arc-theme + font-fira-mono + font-fira-code + font-fira-sans + font-abattis-cantarell + font-google-noto + font-awesome))) + (services + (append + ;; Shell + (list + (service home-zsh-service-type + (home-zsh-configuration + ;; Place all configs to $XDG_CONFIG_HOME/zsh. Makes + ;; ~/.zshenv set ZDOTDIR to $XDG_CONFIG_HOME/zsh + ;; and shell process starts with ~/.config/zsh/.zshenv + (xdg-flavor? #t) + ;; .zshenv + (zshenv + (list + (local-file + (string-append (getenv "HOME") + "/dotfiles/guix/home/files/zsh/zshenv") + "/.config/zsh/.zshenv"))) + ;; .zprofile + (zprofile + (list + (local-file + (string-append (getenv "HOME") + "/dotfiles/guix/home/files/zsh/zprofile") + "/.config/zsh/.zprofile"))) + ;; .zshrc + (zshrc + (list + (local-file + (string-append (getenv "HOME") + "/dotfiles/guix/home/files/zsh/zshrc") + "/.config/zsh/.zshrc")))))) + ;; Files + (list + (simple-service 'user-dirs-config + home-files-service-type + (list + `(".config/user-dirs.dirs" + ,(local-file + (string-append (getenv "HOME") + "/dotfiles/guix/home/files/user-dirs.dirs"))))) + (simple-service 'emacs-config + home-files-service-type + (list + `(".config/emacs/init.el" + ,(local-file + (string-append (getenv "HOME") + "/dotfiles/guix/home/files/emacs/init.el"))))) + + (simple-service 'nyxt-config + home-files-service-type + (list + `(".config/nyxt/init.lisp" + ,(local-file + (string-append (getenv "HOME") + "/dotfiles/guix/home/files/nyxt/init.lisp"))))) + + (simple-service 'dunst-config + home-files-service-type + (list + `(".config/dunst/dunstrc" + ,(local-file + (string-append (getenv "HOME") + "/dotfiles/guix/home/files/dunst/dunstrc"))))) + + (simple-service 'mbsync-config + home-files-service-type + (list + `(".config/mbsync/mbsyncrc" + ,(local-file + (string-append (getenv "HOME") + "/dotfiles/guix/home/files/mbsync/mbsyncrc"))))) + + (simple-service 'alacritty-config + home-files-service-type + (list + `(".config/alacritty/alacritty.yml" + ,(local-file + (string-append (getenv "HOME") + "/dotfiles/guix/home/files/alacritty/alacritty.yml")))))) + + ;; Daemons + (list + (service home-shepard-service-type + (home-shepherd-configuration + (services + (list + (shepard-service + (provision '(emacs)) + (start #~(make-system-constructor "emacs --daemon")) + (stop #~(make-system-constructor "emacsclient -e '(kill-emacs)'"))) + (shepard-service + (provision '(gnome-keyring-daemon)) + (start #~(make-system-contructor "gnome-keyring-daemon --daemonize ")) + (stop #~(make-system-contructor "pkill gnome-keyring-daemon"))))))))))) diff --git a/dotfiles/guix/system/channels.scm b/dotfiles/guix/system/channels.scm new file mode 100644 index 0000000..512b9e6 --- /dev/null +++ b/dotfiles/guix/system/channels.scm @@ -0,0 +1,17 @@ +(list (channel + (name 'guix) + (url "https://git.savannah.gnu.org/git/guix.git") + (introduction + (make-channel-introduction + "9edb3f66fd807b096b48283debdcddccfea34bad" + (openpgp-fingerprint + "BBB0 2DDF 2CEA F6A8 0D1D E643 A2A0 6DF2 A33A 54FA")))) + + (channel + (name 'nonguix) + (url "https://gitlab.com/nonguix/nonguix") + (introduction + (make-channel-introduction + "897c1a470da759236cc11798f4e0a5f7d4d59fbc" + (openpgp-fingerprint + "2A39 3FFF 68F4 EF7A 3D29 12AF 6F51 20A0 22FB B2D5"))))) diff --git a/dotfiles/guix/system/home-desktop.scm b/dotfiles/guix/system/home-desktop.scm new file mode 100644 index 0000000..76d9c4b --- /dev/null +++ b/dotfiles/guix/system/home-desktop.scm @@ -0,0 +1,102 @@ +(use-modules (gnu) + (gnu services desktop) + (gnu packages wm) + (gnu system setuid) + (gnu packages admin) + (nongnu packages linux)) + +(use-service-modules + cups + desktop + networking + ssh + sddm + xorg) + +(operating-system + (kernel linux) + (firmware (list linux-firmware)) + (locale "en_US.utf8") + (timezone "America/Los_Angeles") + (keyboard-layout (keyboard-layout "us")) + (host-name "borges") + (setuid-programs + (cons (setuid-program + (program (file-append swaylock "/bin/swaylock"))) + %setuid-programs)) + (users (cons* (user-account + (name "opal") + (comment "opal") + (group "users") + (home-directory "/home/opal") + (supplementary-groups + '("wheel" + "netdev" + "audio" + "video"))) + %base-user-accounts)) + + (packages (append (list git + wl-clipboard + icecat + vim + nss-certs + stow + exfat-utils + emacs + sway + swaybg + swaylock + swayidle + dmenu + bluez + bluez-alsa + pulseaudio)) + %base-packages) + + (services + (append (modify-services %desktop-services + (delete gdm-service-type)) + (list (service sddm-service-type + (sddm-configuration + (display-server "wayland")))))) + (bootloader + (bootloader-configuration + (bootloader grub-efi-bootloader) + (targets (list "/boot/efi")) + (keyboard-layout keyboard-layout))) + (mapped-devices + (list (mapped-device + (source + (uuid "40aa6387-e935-4f70-8e7d-1975678a5a32")) + (target "cryptroot") + (type luks-device-mapping)))) + (file-systems + (cons* (file-system + (mount-point "/") + (device "/dev/mapper/cryptroot") + (type "btrfs") + (dependencies mapped-devices)) + (file-system + (mount-point "/boot/efi") + (device (uuid "1C3B-10F5" 'fat32)) + (type "vfat")) + %base-file-systems))) + +;; (setuid-programs +;; (let ((from (lambda (package file) +;; (setuid-program (program (file-append package file)))))) +;; (cons* (from light "/bin/light") +;; (from mtr "/sbin/mtr") +;; (from network-manager "/bin/nmtui") +;; (from nfs-utils "/sbin/mount.nfs") +;; (from swaylock "/bin/swaylock") +;; %setuid-programs))) + +;; (services (cons* ... +;; (modify-services %desktop-services +;; (gdm-service-type config +;; =;;putabrackethere (gdm-configuration +;; (inherit config) +;; (wayland? #t) +;; (debug? #t)))))) diff --git a/dotfiles/guix/system/work-laptop.scm b/dotfiles/guix/system/work-laptop.scm new file mode 100644 index 0000000..e5de69f --- /dev/null +++ b/dotfiles/guix/system/work-laptop.scm @@ -0,0 +1,110 @@ +(use-modules (gnu) + (gnu services desktop) + (gnu packages wm) + (gnu system setuid) + (gnu packages admin) + (nongnu packages linux)) + +(use-service-modules + cups + desktop + networking + ssh + sddm + xorg) + +(operating-system + (kernel linux) + (firmware (list linux-firmware)) + (locale "en_US.utf8") + (timezone "America/Los_Angeles") + (keyboard-layout (keyboard-layout "us")) + (host-name "borges") + (setuid-programs + (cons (setuid-program + (program (file-append swaylock "/bin/swaylock"))) + %setuid-programs)) + (users (cons* (user-account + (name "opal") + (comment "opal") + (group "users") + (home-directory "/home/opal") + (supplementary-groups + '("wheel" + "netdev" + "audio" + "video"))) + %base-user-accounts)) + + (packages (append (list git + wl-clipboard + vim + nss-certs + stow + exfat-utils + emacs + emacs-exwm + sway + swaybg + swaylock + swayidle + polybar + nyxt + dmenu + bluez + bluez-alsa + pulseaudio + keepassxc + font-fira-mono + font-fira-sans + font-fira-code + gcc-toolchain)) + %base-packages) + + (services + (append (modify-services %desktop-services + (delete gdm-service-type)) + (list (service sddm-service-type + (sddm-configuration + (display-server "wayland")))))) + + (bootloader + (bootloader-configuration + (bootloader grub-efi-bootloader) + (targets (list "/boot/efi")) + (keyboard-layout keyboard-layout))) + (mapped-devices + (list (mapped-device + (source + (uuid "abe760e2-4ba5-4f43-81a2-1c3f16eb62a8")) + (target "cryptroot") + (type luks-device-mapping)))) + (file-systems + (cons* (file-system + (mount-point "/") + (device "/dev/mapper/cryptroot") + (type "btrfs") + (dependencies mapped-devices)) + (file-system + (mount-point "/boot/efi") + (device (uuid "15B3-5DE5" 'fat32)) + (type "vfat")) + %base-file-systems))) + +;; (setuid-programs +;; (let ((from (lambda (package file) +;; (setuid-program (program (file-append package file)))))) +;; (cons* (from light "/bin/light") +;; (from mtr "/sbin/mtr") +;; (from network-manager "/bin/nmtui") +;; (from nfs-utils "/sbin/mount.nfs") +;; (from swaylock "/bin/swaylock") +;; %setuid-programs))) + +;; (services (cons* ... +;; (modify-services %desktop-services +;; (gdm-service-type config +;; =;;putabrackethere (gdm-configuration +;; (inherit config) +;; (wayland? #t) +;; (debug? #t)))))) diff --git a/dotfiles/org/Desktop.org b/dotfiles/org/Desktop.org new file mode 100644 index 0000000..05a98c1 --- /dev/null +++ b/dotfiles/org/Desktop.org @@ -0,0 +1,851 @@ +#+TITLE: Desktop Configuration + +This =.org= document is where I store all of my small time user-level configuration. + +I prefer to use programs that I can extend the functionality of via configuration files and source code. + +* Sway +** General +*** Include +#+begin_src shell :tangle ~/dotfiles/guix/home/files/sway/config :mkdirp yes +include /gnu/store/6d3q9f1bdfn4cchsziws33ixq2p4zjhw-sway-1.6.1/etc/sway/config.d/* +#+end_src +*** Mod Key +#+begin_src shell :tangle ~/dotfiles/guix/home/files/sway/config :mkdirp yes +set $mod Mod4 +#+end_src +*** Directional Keys +#+begin_src shell :tangle ~/dotfiles/guix/home/files/sway/config :mkdirp yes +set $left h +set $down j +set $up k +set $right l +#+end_src +*** Applications +#+begin_src shell :tangle ~/dotfiles/guix/home/files/sway/config :mkdirp yes +# Terminal +set $term alacritty + +# Application Launcher +set $menu dmenu_path | dmenu | xargs swaymsg exec -- +#+end_src +*** Opacity +#+begin_src shell :tangle ~/dotfiles/guix/home/files/sway/config :mkdirp yes +set $opacity 0.92 +for_window [class=".*"] opacity $opacity +for_window [app_id=".*"] opacity $opacity +#+end_src +*** Borders and Gaps +#+begin_src shell :tangle ~/dotfiles/guix/home/files/sway/config :mkdirp yes +# Window Borders +default_border none + +# Gaps +gaps top 2 +gaps inner 3 +# gaps outer 3 +#+end_src +*** Mouse Behavior +#+begin_src shell :tangle ~/dotfiles/guix/home/files/sway/config :mkdirp yes +# Hide mouse cursor after inactivity +seat * hide_cursor 4000 +#+end_src +*** Autostart +#+begin_src shell :tangle ~/dotfiles/guix/home/files/sway/config :mkdirp yes +# Notifications +exec_always dunst + +# Wlsunset (Night Light) +exec_always wlsunset -l 47.6, -122.3 -t 3500 -T 6500 +#+end_src +*** Wallpaper & Monitor(s) +#+begin_src shell :tangle ~/dotfiles/guix/home/files/sway/config :mkdirp yes +# Wallpaper +output * bg /home/opal/Dotfiles/guix-wallpaper.jpg stretch + +# Monitors +# You can get the names of your outputs by running: swaymsg -t get_outputs +output eDP-1 resolution 1920x1080 position 0,0 +#+end_src + +*** Idle Behavior +#+begin_src shell :tangle ~/dotfiles/guix/home/files/sway/config :mkdirp yes +### Idle configuration +# This will lock your screen after 300 seconds of inactivity, then turn off +# your displays after another 300 seconds, and turn your screens back on when +# resumed. It will also lock your screen before your computer goes to sleep. +exec swayidle -w \ + timeout 300 'swaylock -f -c 000000' \ + timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \ + before-sleep 'swaylock -f -c 000000' +#+end_src + +*** Input +#+begin_src shell :tangle ~/dotfiles/guix/home/files/sway/config :mkdirp yes +### Input configuration +# +# Example configuration: +# +# input "2:14:SynPS/2_Synaptics_TouchPad" { +# dwt enabled +# tap enabled +# natural_scroll enabled +# middle_emulation enabled +# } +# +# You can get the names of your inputs by running: swaymsg -t get_inputs +# Read `man 5 sway-input` for more information about this section. +input type:keyboard { + # Capslock key should work as escape key + # See /usr/share/X11/xkb/rules/xorg.lst for options + xkb_options caps:escape + + repeat_delay 250 + repeat_rate 45 +} +#+end_src +** Keybindings +*** General +#+begin_src shell :tangle ~/dotfiles/guix/home/files/sway/config :mkdirp yes +# Start a terminal +bindsym $mod+Return exec $term + +# Kill focused window +bindsym $mod+Shift+q kill + +# Lock SwayWM +bindsym Control+Shift+l exec swaylock + +# Start your launcher +bindsym $mod+d exec $menu + +# Change normal to inverse to use left mouse button for resizing and right +# mouse button for dragging. +floating_modifier $mod normal + +# Reload the configuration file +bindsym $mod+Shift+c reload + +# Exit sway (logs you out of your Wayland session) +bindsym $mod+Shift+x exec swaymsg -r exit +#+end_src +*** Navigation & Focus +#+begin_src shell :tangle ~/dotfiles/guix/home/files/sway/config :mkdirp yes + +# Moving around: +# Move your focus around +bindsym $mod+$left focus left +bindsym $mod+$down focus down +bindsym $mod+$up focus up +bindsym $mod+$right focus right +# Or use $mod+[up|down|left|right] +bindsym $mod+Left focus left +bindsym $mod+Down focus down +bindsym $mod+Up focus up +bindsym $mod+Right focus right + +# Move the focused window with the same, but add Shift +bindsym $mod+Shift+$left move left +bindsym $mod+Shift+$down move down +bindsym $mod+Shift+$up move up +bindsym $mod+Shift+$right move right +# Ditto, with arrow keys +bindsym $mod+Shift+Left move left +bindsym $mod+Shift+Down move down +bindsym $mod+Shift+Up move up +bindsym $mod+Shift+Right move right +#+end_src +*** Workspaces +#+begin_src shell :tangle ~/dotfiles/guix/home/files/sway/config :mkdirp yes +set $ws1 ۱ +set $ws2 ۲ +set $ws3 ۳ +set $ws4 ۴ +set $ws5 ۵ + +# Switch to workspace +bindsym $mod+1 workspace $ws1 +bindsym $mod+2 workspace $ws2 +bindsym $mod+3 workspace $ws3 +bindsym $mod+4 workspace $ws4 +bindsym $mod+5 workspace $ws5 + +# Move focused container to workspace +bindsym $mod+Shift+1 move container to workspace $ws1 +bindsym $mod+Shift+2 move container to workspace $ws2 +bindsym $mod+Shift+3 move container to workspace $ws3 +bindsym $mod+Shift+4 move container to workspace $ws4 +bindsym $mod+Shift+5 move container to workspace $ws5 +#+end_src +*** Layout +#+begin_src shell :tangle ~/dotfiles/guix/home/files/sway/config :mkdirp yes +# Layout stuff: +# +# You can "split" the current object of your focus with +# $mod+b or $mod+v, for horizontal and vertical splits +# respectively. +bindsym $mod+b splith +bindsym $mod+v splitv + +# Switch the current container between different layout styles +bindsym $mod+s layout stacking +bindsym $mod+w layout tabbed +bindsym $mod+e layout toggle split + +# Make the current focus fullscreen +bindsym $mod+f fullscreen + +# Toggle the current focus between tiling and floating mode +bindsym $mod+Shift+space floating toggle + +# Swap focus between the tiling area and the floating area +bindsym $mod+space focus mode_toggle + +# Move focus to the parent container +bindsym $mod+a focus parent +# +# Scratchpad: +# +# Sway has a "scratchpad", which is a bag of holding for windows. +# You can send windows there and get them back later. + +# Move the currently focused window to the scratchpad +bindsym $mod+Shift+minus move scratchpad + +# Show the next scratchpad window or hide the focused scratchpad window. +# If there are multiple scratchpad windows, this command cycles through them. +bindsym $mod+minus scratchpad show +# +# Resizing containers: +# +mode "resize" { + # left will shrink the containers width + # right will grow the containers width + # up will shrink the containers height + # down will grow the containers height + bindsym $left resize shrink width 10px + bindsym $down resize grow height 10px + bindsym $up resize shrink height 10px + bindsym $right resize grow width 10px + + # Ditto, with arrow keys + bindsym Left resize shrink width 10px + bindsym Down resize grow height 10px + bindsym Up resize shrink height 10px + bindsym Right resize grow width 10px + + # Return to default mode + bindsym Return mode "default" + bindsym Escape mode "default" +} +bindsym $mod+r mode "resize" + +#+end_src +** Swaybar +#+begin_src shell :tangle ~/dotfiles/guix/home/files/sway/config :mkdirp yes +# +# Status Bar: +# +# Read `man 5 sway-bar` for more information about this section. +bar { + position top + gaps 5 + + # When the status_command prints a new line to stdout, swaybar updates. + # The default just shows the current date and time. + status_command while date +'%Y-%m-%d %l:%M:%S %p'; do sleep 1; done + + colors { + statusline #ffffff + background #323232 + inactive_workspace #32323200 #32323200 #5c5c5c + } +} + + +#+end_src +* Zsh +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. +** zshrc +#+begin_src shell :tangle ~/dotfiles/guix/home/files/zsh/zshrc :mkdirp yes +[[ $TERM == "dumb" ]] && unsetopt zle && PS1='$ ' && return + +# --- zsh config --- # +export ZSH="$XDG_CONFIG_HOME/oh-my-zsh" +HISTFILE=$XDG_CONFIG_HOME/zsh/.history +ZSH_THEME="mrtazz" +DISABLE_AUTO_UPDATE="true" +ENABLE_CORRECTION="true" +plugins=(git) +# This has to stay below plugins. +source $ZSH/oh-my-zsh.sh + +# --- user paths --- # +# scripts +export PATH=/home/ry/scripts:$PATH +# cron scripts +export PATH=/home/ry/scripts/cron-scripts:$PATH +# doom +export PATH=~/.config/emacs/bin:$PATH +# GNU Guix path +export PATH=/home/ry/.guix-profile/bin:$PATH +# --- locale --- # +export LANG=en_US.UTF-8 + +# --- autostart --- # +pfetch + +# --- Functions --- # +# Move files to trash folder instead. +del () { mv "$@" $HOME/.local/share/Trash/files/.; } +# Make directory and CD into it. +mkcd () { mkdir -p -- "$1" && cd -P -- "$1" } + +# --- Aliases --- # +# dnf +alias install="sudo dnf -y install" +alias remove="sudo dnf remove" +alias search="dnf search" +alias update="sudo dnf update" + +# qol +alias vi="nvim" +alias vim="nvim" +alias unmount="umount" + +# systemD +alias sr="sudo systemctl restart" +alias se="sudo systemctl enable" +alias sen="sudo systemctl enable --now" +alias sd="sudo systemctl disable" + +# git +alias ga="git add" +alias gc="git commit -m" +alias gs="git status" +alias gd="git diff" +alias gm="git merge" +alias gp="git push" +alias gco="git checkout" + +# config +alias zshrc="vim ~/dotfiles/.config/zsh/.zshrc" +alias zshrcsource="source ~/.config/zsh/.zshrc" + +# firewalld +alias fcmd="firewall-cmd" +#+end_src + +** +** zprofile +#+begin_src shell :tangle ~/dotfiles/guix/home/files/zsh/zprofile :mkdirp yes +# Each new shell auto-imports all environment variables. +# Hence exporting needs to be done only once. +# Also, all non-login shells are descendants of a login shell. +# Ergo, exports need to be done in the login shell only. +# Hence, we put exports in .zprofile + +# Only vars needed by external commands should be exported. +# Note that you can export vars w/out assigning a value to them. +export XDG_CONFIG_HOME=~/.config +export XDG_CACHE_HOME=~/.cache +export XDG_DATA_HOME=~/.local/share +export XDG_STATE_HOME=~/.config/zsh +export EDITOR=nvim +export VISUAL=nvim +GUIX_PROFILE="$HOME/.config/guix/current" . "$GUIX_PROFILE/etc/profile" +#+end_src +** zshenv +#+begin_src shell :tangle ~/dotfiles/guix/home/files/zsh/zshenv :mkdirp yes +if [[ -z "$XDG_CONFIG_HOME" ]] +then + export XDG_CONFIG_HOME="$HOME/.config" +fi + +if [[ -d "$XDG_CONFIG_HOME/zsh" ]] +then + export ZDOTDIR="$XDG_CONFIG_HOME/zsh" +fi +#+end_src + +#+RESULTS: + +* Alacritty +#+begin_src sh :tangle ~/dotfiles/guix/home/files/alacritty.yml :mkdirp yes +# Env +env: + TERM: xterm-256color + +# Font configuration +font: + normal: + family: inconsolata + style: Regular + bold: + family: inconsolata + style: Bold + italic: + family: inconsolata + style: Italic + bold_italic: + family: inconsolata + style: Bold Italic + size: 16 +#+end_src + +* Dunst +#+begin_src shell :tangle ~/dotfiles/guix/home/files/dunst/dunstrc +[global] + ### Display ### + + # Which monitor should the notifications be displayed on. + monitor = 0 + + # Display notification on focused monitor. Possible modes are: + # mouse: follow mouse pointer + # keyboard: follow window with keyboard focus + # none: don't follow anything + # + # "keyboard" needs a window manager that exports the + # _NET_ACTIVE_WINDOW property. + # This should be the case for almost all modern window managers. + # + # If this option is set to mouse or keyboard, the monitor option + # will be ignored. + follow = none + + ### Geometry ### + + # dynamic width from 0 to 300 + # width = (0, 300) + # constant width of 300 + width = 300 + + # The maximum height of a single notification, excluding the frame. + height = 300 + + # Position the notification in the top right corner + origin = top-right + + # Offset from the origin + offset = 10x50 + + # Scale factor. It is auto-detected if value is 0. + scale = 0 + + # Maximum number of notification (0 means no limit) + notification_limit = 0 + + ### Progress bar ### + + # Turn on the progess bar. It appears when a progress hint is passed with + # for example dunstify -h int:value:12 + progress_bar = true + + # Set the progress bar height. This includes the frame, so make sure + # it's at least twice as big as the frame width. + progress_bar_height = 10 + + # Set the frame width of the progress bar + progress_bar_frame_width = 1 + + # Set the minimum width for the progress bar + progress_bar_min_width = 150 + + # Set the maximum width for the progress bar + progress_bar_max_width = 300 + + + # Show how many messages are currently hidden (because of + # notification_limit). + indicate_hidden = yes + + # The transparency of the window. Range: [0; 100]. + # This option will only work if a compositing window manager is + # present (e.g. xcompmgr, compiz, etc.). (X11 only) + transparency = 0 + + # Draw a line of "separator_height" pixel height between two + # notifications. + # Set to 0 to disable. + separator_height = 2 + + # Padding between text and separator. + padding = 8 + + # Horizontal padding. + horizontal_padding = 8 + + # Padding between text and icon. + text_icon_padding = 0 + + # Defines width in pixels of frame around the notification window. + # Set to 0 to disable. + frame_width = 3 + + # Defines color of the frame around the notification window. + frame_color = "#aaaaaa" + + # Define a color for the separator. + # possible values are: + # * auto: dunst tries to find a color fitting to the background; + # * foreground: use the same color as the foreground; + # * frame: use the same color as the frame; + # * anything else will be interpreted as a X color. + separator_color = frame + + # Sort messages by urgency. + sort = yes + + # Don't remove messages, if the user is idle (no mouse or keyboard input) + # for longer than idle_threshold seconds. + # Set to 0 to disable. + # A client can set the 'transient' hint to bypass this. See the rules + # section for how to disable this if necessary + # idle_threshold = 120 + + ### Text ### + + font = Monospace 8 + + # The spacing between lines. If the height is smaller than the + # font height, it will get raised to the font height. + line_height = 0 + + # Possible values are: + # full: Allow a small subset of html markup in notifications: + # bold + # italic + # strikethrough + # underline + # + # For a complete reference see + # . + # + # strip: This setting is provided for compatibility with some broken + # clients that send markup even though it's not enabled on the + # server. Dunst will try to strip the markup but the parsing is + # simplistic so using this option outside of matching rules for + # specific applications *IS GREATLY DISCOURAGED*. + # + # no: Disable markup parsing, incoming notifications will be treated as + # plain text. Dunst will not advertise that it has the body-markup + # capability if this is set as a global setting. + # + # It's important to note that markup inside the format option will be parsed + # regardless of what this is set to. + markup = full + + # The format of the message. Possible variables are: + # %a appname + # %s summary + # %b body + # %i iconname (including its path) + # %I iconname (without its path) + # %p progress value if set ([ 0%] to [100%]) or nothing + # %n progress value if set without any extra characters + # %% Literal % + # Markup is allowed + format = "%s\n%b" + + # Alignment of message text. + # Possible values are "left", "center" and "right". + alignment = left + + # Vertical alignment of message text and icon. + # Possible values are "top", "center" and "bottom". + vertical_alignment = center + + # Show age of message if message is older than show_age_threshold + # seconds. + # Set to -1 to disable. + show_age_threshold = 60 + + # Specify where to make an ellipsis in long lines. + # Possible values are "start", "middle" and "end". + ellipsize = middle + + # Ignore newlines '\n' in notifications. + ignore_newline = no + + # Stack together notifications with the same content + stack_duplicates = true + + # Hide the count of stacked notifications with the same content + hide_duplicate_count = false + + # Display indicators for URLs (U) and actions (A). + show_indicators = yes + + ### Icons ### + + # Align icons left/right/off + icon_position = left + + # Scale small icons up to this size, set to 0 to disable. Helpful + # for e.g. small files or high-dpi screens. In case of conflict, + # max_icon_size takes precedence over this. + min_icon_size = 0 + + # Scale larger icons down to this size, set to 0 to disable + max_icon_size = 32 + + # Paths to default icons. + icon_path = /usr/share/icons/gnome/16x16/status/:/usr/share/icons/gnome/16x16/devices/ + + ### History ### + + # Should a notification popped up from history be sticky or timeout + # as if it would normally do. + sticky_history = yes + + # Maximum amount of notifications kept in history + history_length = 20 + + ### Misc/Advanced ### + + # dmenu path. + dmenu = /usr/bin/dmenu -p dunst: + + # Browser for opening urls in context menu. + browser = /usr/bin/xdg-open + + # Always run rule-defined scripts, even if the notification is suppressed + always_run_script = true + + # Define the title of the windows spawned by dunst + title = Dunst + + # Define the class of the windows spawned by dunst + class = Dunst + + # Define the corner radius of the notification window + # in pixel size. If the radius is 0, you have no rounded + # corners. + # The radius will be automatically lowered if it exceeds half of the + # notification height to avoid clipping text and/or icons. + corner_radius = 0 + + # Ignore the dbus closeNotification message. + # Useful to enforce the timeout set by dunst configuration. Without this + # parameter, an application may close the notification sent before the + # user defined timeout. + ignore_dbusclose = false + + ### Wayland ### + # These settings are Wayland-specific. They have no effect when using X11 + + # Uncomment this if you want to let notications appear under fullscreen + # applications (default: overlay) + # layer = top + + # Set this to true to use X11 output on Wayland. + force_xwayland = false + + ### Legacy + + # Use the Xinerama extension instead of RandR for multi-monitor support. + # This setting is provided for compatibility with older nVidia drivers that + # do not support RandR and using it on systems that support RandR is highly + # discouraged. + # + # By enabling this setting dunst will not be able to detect when a monitor + # is connected or disconnected which might break follow mode if the screen + # layout changes. + force_xinerama = false + + ### mouse + + # Defines list of actions for each mouse event + # Possible values are: + # * none: Don't do anything. + # * do_action: Invoke the action determined by the action_name rule. If there is no + # such action, open the context menu. + # * open_url: If the notification has exactly one url, open it. If there are multiple + # ones, open the context menu. + # * close_current: Close current notification. + # * close_all: Close all notifications. + # * context: Open context menu for the notification. + # * context_all: Open context menu for all notifications. + # These values can be strung together for each mouse event, and + # will be executed in sequence. + mouse_left_click = close_current + mouse_middle_click = do_action, close_current + mouse_right_click = close_all + +# Experimental features that may or may not work correctly. Do not expect them +# to have a consistent behaviour across releases. +[experimental] + # Calculate the dpi to use on a per-monitor basis. + # If this setting is enabled the Xft.dpi value will be ignored and instead + # dunst will attempt to calculate an appropriate dpi value for each monitor + # using the resolution and physical size. This might be useful in setups + # where there are multiple screens with very different dpi values. + per_monitor_dpi = false + + +[urgency_low] + # IMPORTANT: colors have to be defined in quotation marks. + # Otherwise the "#" and following would be interpreted as a comment. + background = "#222222" + foreground = "#888888" + timeout = 10 + # Icon for notifications with low urgency, uncomment to enable + #default_icon = /path/to/icon + +[urgency_normal] + background = "#285577" + foreground = "#ffffff" + timeout = 10 + # Icon for notifications with normal urgency, uncomment to enable + #default_icon = /path/to/icon + +[urgency_critical] + background = "#900000" + foreground = "#ffffff" + frame_color = "#ff0000" + timeout = 0 + # Icon for notifications with critical urgency, uncomment to enable + #default_icon = /path/to/icon + +# Every section that isn't one of the above is interpreted as a rules to +# override settings for certain messages. +# +# Messages can be matched by +# appname (discouraged, see desktop_entry) +# body +# category +# desktop_entry +# icon +# match_transient +# msg_urgency +# stack_tag +# summary +# +# and you can override the +# background +# foreground +# format +# frame_color +# fullscreen +# new_icon +# set_stack_tag +# set_transient +# set_category +# timeout +# urgency +# skip_display +# history_ignore +# action_name +# word_wrap +# ellipsize +# alignment +# +# Shell-like globbing will get expanded. +# +# Instead of the appname filter, it's recommended to use the desktop_entry filter. +# GLib based applications export their desktop-entry name. In comparison to the appname, +# the desktop-entry won't get localized. +# +# SCRIPTING +# You can specify a script that gets run when the rule matches by +# setting the "script" option. +# The script will be called as follows: +# script appname summary body icon urgency +# where urgency can be "LOW", "NORMAL" or "CRITICAL". +# +# NOTE: It might be helpful to run dunst -print in a terminal in order +# to find fitting options for rules. + +# Disable the transient hint so that idle_threshold cannot be bypassed from the +# client +#[transient_disable] +# match_transient = yes +# set_transient = no +# +# Make the handling of transient notifications more strict by making them not +# be placed in history. +#[transient_history_ignore] +# match_transient = yes +# history_ignore = yes + +# fullscreen values +# show: show the notifications, regardless if there is a fullscreen window opened +# delay: displays the new notification, if there is no fullscreen window active +# If the notification is already drawn, it won't get undrawn. +# pushback: same as delay, but when switching into fullscreen, the notification will get +# withdrawn from screen again and will get delayed like a new notification +#[fullscreen_delay_everything] +# fullscreen = delay +#[fullscreen_show_critical] +# msg_urgency = critical +# fullscreen = show + +#[espeak] +# summary = "*" +# script = dunst_espeak.sh + +#[script-test] +# summary = "*script*" +# script = dunst_test.sh + +#[ignore] +# # This notification will not be displayed +# summary = "foobar" +# skip_display = true + +#[history-ignore] +# # This notification will not be saved in history +# summary = "foobar" +# history_ignore = yes + +#[skip-display] +# # This notification will not be displayed, but will be included in the history +# summary = "foobar" +# skip_display = yes + +#[signed_on] +# appname = Pidgin +# summary = "*signed on*" +# urgency = low +# +#[signed_off] +# appname = Pidgin +# summary = *signed off* +# urgency = low +# +#[says] +# appname = Pidgin +# summary = *says* +# urgency = critical +# +#[twitter] +# appname = Pidgin +# summary = *twitter.com* +# urgency = normal +# +#[stack-volumes] +# appname = "some_volume_notifiers" +# set_stack_tag = "volume" +# +# vim: ft=cfg +#+end_src + +* XDG User Directories +#+begin_src shell :tangle ~/dotfiles/guix/home/files/user-dirs.dirs +# This file is written by xdg-user-dirs-update +# If you want to change or add directories, just edit the line you're +# interested in. All local changes will be retained on the next run. +# Format is XDG_xxx_DIR="$HOME/yyy", where yyy is a shell-escaped +# homedir-relative path, or XDG_xxx_DIR="/yyy", where /yyy is an +# absolute path. No other format is supported. +# +XDG_DESKTOP_DIR="$HOME" +XDG_DOWNLOAD_DIR="$HOME/downloads" +XDG_TEMPLATES_DIR="$HOME" +XDG_PUBLICSHARE_DIR="$HOME" +XDG_DOCUMENTS_DIR="$HOME/documents" +XDG_MUSIC_DIR="$HOME/music" +XDG_PICTURES_DIR="$HOME/pictures" +XDG_VIDEOS_DIR="$HOME/videos" +#+end_src diff --git a/dotfiles/org/Desktop.org~ b/dotfiles/org/Desktop.org~ new file mode 100644 index 0000000..05a98c1 --- /dev/null +++ b/dotfiles/org/Desktop.org~ @@ -0,0 +1,851 @@ +#+TITLE: Desktop Configuration + +This =.org= document is where I store all of my small time user-level configuration. + +I prefer to use programs that I can extend the functionality of via configuration files and source code. + +* Sway +** General +*** Include +#+begin_src shell :tangle ~/dotfiles/guix/home/files/sway/config :mkdirp yes +include /gnu/store/6d3q9f1bdfn4cchsziws33ixq2p4zjhw-sway-1.6.1/etc/sway/config.d/* +#+end_src +*** Mod Key +#+begin_src shell :tangle ~/dotfiles/guix/home/files/sway/config :mkdirp yes +set $mod Mod4 +#+end_src +*** Directional Keys +#+begin_src shell :tangle ~/dotfiles/guix/home/files/sway/config :mkdirp yes +set $left h +set $down j +set $up k +set $right l +#+end_src +*** Applications +#+begin_src shell :tangle ~/dotfiles/guix/home/files/sway/config :mkdirp yes +# Terminal +set $term alacritty + +# Application Launcher +set $menu dmenu_path | dmenu | xargs swaymsg exec -- +#+end_src +*** Opacity +#+begin_src shell :tangle ~/dotfiles/guix/home/files/sway/config :mkdirp yes +set $opacity 0.92 +for_window [class=".*"] opacity $opacity +for_window [app_id=".*"] opacity $opacity +#+end_src +*** Borders and Gaps +#+begin_src shell :tangle ~/dotfiles/guix/home/files/sway/config :mkdirp yes +# Window Borders +default_border none + +# Gaps +gaps top 2 +gaps inner 3 +# gaps outer 3 +#+end_src +*** Mouse Behavior +#+begin_src shell :tangle ~/dotfiles/guix/home/files/sway/config :mkdirp yes +# Hide mouse cursor after inactivity +seat * hide_cursor 4000 +#+end_src +*** Autostart +#+begin_src shell :tangle ~/dotfiles/guix/home/files/sway/config :mkdirp yes +# Notifications +exec_always dunst + +# Wlsunset (Night Light) +exec_always wlsunset -l 47.6, -122.3 -t 3500 -T 6500 +#+end_src +*** Wallpaper & Monitor(s) +#+begin_src shell :tangle ~/dotfiles/guix/home/files/sway/config :mkdirp yes +# Wallpaper +output * bg /home/opal/Dotfiles/guix-wallpaper.jpg stretch + +# Monitors +# You can get the names of your outputs by running: swaymsg -t get_outputs +output eDP-1 resolution 1920x1080 position 0,0 +#+end_src + +*** Idle Behavior +#+begin_src shell :tangle ~/dotfiles/guix/home/files/sway/config :mkdirp yes +### Idle configuration +# This will lock your screen after 300 seconds of inactivity, then turn off +# your displays after another 300 seconds, and turn your screens back on when +# resumed. It will also lock your screen before your computer goes to sleep. +exec swayidle -w \ + timeout 300 'swaylock -f -c 000000' \ + timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \ + before-sleep 'swaylock -f -c 000000' +#+end_src + +*** Input +#+begin_src shell :tangle ~/dotfiles/guix/home/files/sway/config :mkdirp yes +### Input configuration +# +# Example configuration: +# +# input "2:14:SynPS/2_Synaptics_TouchPad" { +# dwt enabled +# tap enabled +# natural_scroll enabled +# middle_emulation enabled +# } +# +# You can get the names of your inputs by running: swaymsg -t get_inputs +# Read `man 5 sway-input` for more information about this section. +input type:keyboard { + # Capslock key should work as escape key + # See /usr/share/X11/xkb/rules/xorg.lst for options + xkb_options caps:escape + + repeat_delay 250 + repeat_rate 45 +} +#+end_src +** Keybindings +*** General +#+begin_src shell :tangle ~/dotfiles/guix/home/files/sway/config :mkdirp yes +# Start a terminal +bindsym $mod+Return exec $term + +# Kill focused window +bindsym $mod+Shift+q kill + +# Lock SwayWM +bindsym Control+Shift+l exec swaylock + +# Start your launcher +bindsym $mod+d exec $menu + +# Change normal to inverse to use left mouse button for resizing and right +# mouse button for dragging. +floating_modifier $mod normal + +# Reload the configuration file +bindsym $mod+Shift+c reload + +# Exit sway (logs you out of your Wayland session) +bindsym $mod+Shift+x exec swaymsg -r exit +#+end_src +*** Navigation & Focus +#+begin_src shell :tangle ~/dotfiles/guix/home/files/sway/config :mkdirp yes + +# Moving around: +# Move your focus around +bindsym $mod+$left focus left +bindsym $mod+$down focus down +bindsym $mod+$up focus up +bindsym $mod+$right focus right +# Or use $mod+[up|down|left|right] +bindsym $mod+Left focus left +bindsym $mod+Down focus down +bindsym $mod+Up focus up +bindsym $mod+Right focus right + +# Move the focused window with the same, but add Shift +bindsym $mod+Shift+$left move left +bindsym $mod+Shift+$down move down +bindsym $mod+Shift+$up move up +bindsym $mod+Shift+$right move right +# Ditto, with arrow keys +bindsym $mod+Shift+Left move left +bindsym $mod+Shift+Down move down +bindsym $mod+Shift+Up move up +bindsym $mod+Shift+Right move right +#+end_src +*** Workspaces +#+begin_src shell :tangle ~/dotfiles/guix/home/files/sway/config :mkdirp yes +set $ws1 ۱ +set $ws2 ۲ +set $ws3 ۳ +set $ws4 ۴ +set $ws5 ۵ + +# Switch to workspace +bindsym $mod+1 workspace $ws1 +bindsym $mod+2 workspace $ws2 +bindsym $mod+3 workspace $ws3 +bindsym $mod+4 workspace $ws4 +bindsym $mod+5 workspace $ws5 + +# Move focused container to workspace +bindsym $mod+Shift+1 move container to workspace $ws1 +bindsym $mod+Shift+2 move container to workspace $ws2 +bindsym $mod+Shift+3 move container to workspace $ws3 +bindsym $mod+Shift+4 move container to workspace $ws4 +bindsym $mod+Shift+5 move container to workspace $ws5 +#+end_src +*** Layout +#+begin_src shell :tangle ~/dotfiles/guix/home/files/sway/config :mkdirp yes +# Layout stuff: +# +# You can "split" the current object of your focus with +# $mod+b or $mod+v, for horizontal and vertical splits +# respectively. +bindsym $mod+b splith +bindsym $mod+v splitv + +# Switch the current container between different layout styles +bindsym $mod+s layout stacking +bindsym $mod+w layout tabbed +bindsym $mod+e layout toggle split + +# Make the current focus fullscreen +bindsym $mod+f fullscreen + +# Toggle the current focus between tiling and floating mode +bindsym $mod+Shift+space floating toggle + +# Swap focus between the tiling area and the floating area +bindsym $mod+space focus mode_toggle + +# Move focus to the parent container +bindsym $mod+a focus parent +# +# Scratchpad: +# +# Sway has a "scratchpad", which is a bag of holding for windows. +# You can send windows there and get them back later. + +# Move the currently focused window to the scratchpad +bindsym $mod+Shift+minus move scratchpad + +# Show the next scratchpad window or hide the focused scratchpad window. +# If there are multiple scratchpad windows, this command cycles through them. +bindsym $mod+minus scratchpad show +# +# Resizing containers: +# +mode "resize" { + # left will shrink the containers width + # right will grow the containers width + # up will shrink the containers height + # down will grow the containers height + bindsym $left resize shrink width 10px + bindsym $down resize grow height 10px + bindsym $up resize shrink height 10px + bindsym $right resize grow width 10px + + # Ditto, with arrow keys + bindsym Left resize shrink width 10px + bindsym Down resize grow height 10px + bindsym Up resize shrink height 10px + bindsym Right resize grow width 10px + + # Return to default mode + bindsym Return mode "default" + bindsym Escape mode "default" +} +bindsym $mod+r mode "resize" + +#+end_src +** Swaybar +#+begin_src shell :tangle ~/dotfiles/guix/home/files/sway/config :mkdirp yes +# +# Status Bar: +# +# Read `man 5 sway-bar` for more information about this section. +bar { + position top + gaps 5 + + # When the status_command prints a new line to stdout, swaybar updates. + # The default just shows the current date and time. + status_command while date +'%Y-%m-%d %l:%M:%S %p'; do sleep 1; done + + colors { + statusline #ffffff + background #323232 + inactive_workspace #32323200 #32323200 #5c5c5c + } +} + + +#+end_src +* Zsh +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. +** zshrc +#+begin_src shell :tangle ~/dotfiles/guix/home/files/zsh/zshrc :mkdirp yes +[[ $TERM == "dumb" ]] && unsetopt zle && PS1='$ ' && return + +# --- zsh config --- # +export ZSH="$XDG_CONFIG_HOME/oh-my-zsh" +HISTFILE=$XDG_CONFIG_HOME/zsh/.history +ZSH_THEME="mrtazz" +DISABLE_AUTO_UPDATE="true" +ENABLE_CORRECTION="true" +plugins=(git) +# This has to stay below plugins. +source $ZSH/oh-my-zsh.sh + +# --- user paths --- # +# scripts +export PATH=/home/ry/scripts:$PATH +# cron scripts +export PATH=/home/ry/scripts/cron-scripts:$PATH +# doom +export PATH=~/.config/emacs/bin:$PATH +# GNU Guix path +export PATH=/home/ry/.guix-profile/bin:$PATH +# --- locale --- # +export LANG=en_US.UTF-8 + +# --- autostart --- # +pfetch + +# --- Functions --- # +# Move files to trash folder instead. +del () { mv "$@" $HOME/.local/share/Trash/files/.; } +# Make directory and CD into it. +mkcd () { mkdir -p -- "$1" && cd -P -- "$1" } + +# --- Aliases --- # +# dnf +alias install="sudo dnf -y install" +alias remove="sudo dnf remove" +alias search="dnf search" +alias update="sudo dnf update" + +# qol +alias vi="nvim" +alias vim="nvim" +alias unmount="umount" + +# systemD +alias sr="sudo systemctl restart" +alias se="sudo systemctl enable" +alias sen="sudo systemctl enable --now" +alias sd="sudo systemctl disable" + +# git +alias ga="git add" +alias gc="git commit -m" +alias gs="git status" +alias gd="git diff" +alias gm="git merge" +alias gp="git push" +alias gco="git checkout" + +# config +alias zshrc="vim ~/dotfiles/.config/zsh/.zshrc" +alias zshrcsource="source ~/.config/zsh/.zshrc" + +# firewalld +alias fcmd="firewall-cmd" +#+end_src + +** +** zprofile +#+begin_src shell :tangle ~/dotfiles/guix/home/files/zsh/zprofile :mkdirp yes +# Each new shell auto-imports all environment variables. +# Hence exporting needs to be done only once. +# Also, all non-login shells are descendants of a login shell. +# Ergo, exports need to be done in the login shell only. +# Hence, we put exports in .zprofile + +# Only vars needed by external commands should be exported. +# Note that you can export vars w/out assigning a value to them. +export XDG_CONFIG_HOME=~/.config +export XDG_CACHE_HOME=~/.cache +export XDG_DATA_HOME=~/.local/share +export XDG_STATE_HOME=~/.config/zsh +export EDITOR=nvim +export VISUAL=nvim +GUIX_PROFILE="$HOME/.config/guix/current" . "$GUIX_PROFILE/etc/profile" +#+end_src +** zshenv +#+begin_src shell :tangle ~/dotfiles/guix/home/files/zsh/zshenv :mkdirp yes +if [[ -z "$XDG_CONFIG_HOME" ]] +then + export XDG_CONFIG_HOME="$HOME/.config" +fi + +if [[ -d "$XDG_CONFIG_HOME/zsh" ]] +then + export ZDOTDIR="$XDG_CONFIG_HOME/zsh" +fi +#+end_src + +#+RESULTS: + +* Alacritty +#+begin_src sh :tangle ~/dotfiles/guix/home/files/alacritty.yml :mkdirp yes +# Env +env: + TERM: xterm-256color + +# Font configuration +font: + normal: + family: inconsolata + style: Regular + bold: + family: inconsolata + style: Bold + italic: + family: inconsolata + style: Italic + bold_italic: + family: inconsolata + style: Bold Italic + size: 16 +#+end_src + +* Dunst +#+begin_src shell :tangle ~/dotfiles/guix/home/files/dunst/dunstrc +[global] + ### Display ### + + # Which monitor should the notifications be displayed on. + monitor = 0 + + # Display notification on focused monitor. Possible modes are: + # mouse: follow mouse pointer + # keyboard: follow window with keyboard focus + # none: don't follow anything + # + # "keyboard" needs a window manager that exports the + # _NET_ACTIVE_WINDOW property. + # This should be the case for almost all modern window managers. + # + # If this option is set to mouse or keyboard, the monitor option + # will be ignored. + follow = none + + ### Geometry ### + + # dynamic width from 0 to 300 + # width = (0, 300) + # constant width of 300 + width = 300 + + # The maximum height of a single notification, excluding the frame. + height = 300 + + # Position the notification in the top right corner + origin = top-right + + # Offset from the origin + offset = 10x50 + + # Scale factor. It is auto-detected if value is 0. + scale = 0 + + # Maximum number of notification (0 means no limit) + notification_limit = 0 + + ### Progress bar ### + + # Turn on the progess bar. It appears when a progress hint is passed with + # for example dunstify -h int:value:12 + progress_bar = true + + # Set the progress bar height. This includes the frame, so make sure + # it's at least twice as big as the frame width. + progress_bar_height = 10 + + # Set the frame width of the progress bar + progress_bar_frame_width = 1 + + # Set the minimum width for the progress bar + progress_bar_min_width = 150 + + # Set the maximum width for the progress bar + progress_bar_max_width = 300 + + + # Show how many messages are currently hidden (because of + # notification_limit). + indicate_hidden = yes + + # The transparency of the window. Range: [0; 100]. + # This option will only work if a compositing window manager is + # present (e.g. xcompmgr, compiz, etc.). (X11 only) + transparency = 0 + + # Draw a line of "separator_height" pixel height between two + # notifications. + # Set to 0 to disable. + separator_height = 2 + + # Padding between text and separator. + padding = 8 + + # Horizontal padding. + horizontal_padding = 8 + + # Padding between text and icon. + text_icon_padding = 0 + + # Defines width in pixels of frame around the notification window. + # Set to 0 to disable. + frame_width = 3 + + # Defines color of the frame around the notification window. + frame_color = "#aaaaaa" + + # Define a color for the separator. + # possible values are: + # * auto: dunst tries to find a color fitting to the background; + # * foreground: use the same color as the foreground; + # * frame: use the same color as the frame; + # * anything else will be interpreted as a X color. + separator_color = frame + + # Sort messages by urgency. + sort = yes + + # Don't remove messages, if the user is idle (no mouse or keyboard input) + # for longer than idle_threshold seconds. + # Set to 0 to disable. + # A client can set the 'transient' hint to bypass this. See the rules + # section for how to disable this if necessary + # idle_threshold = 120 + + ### Text ### + + font = Monospace 8 + + # The spacing between lines. If the height is smaller than the + # font height, it will get raised to the font height. + line_height = 0 + + # Possible values are: + # full: Allow a small subset of html markup in notifications: + # bold + # italic + # strikethrough + # underline + # + # For a complete reference see + # . + # + # strip: This setting is provided for compatibility with some broken + # clients that send markup even though it's not enabled on the + # server. Dunst will try to strip the markup but the parsing is + # simplistic so using this option outside of matching rules for + # specific applications *IS GREATLY DISCOURAGED*. + # + # no: Disable markup parsing, incoming notifications will be treated as + # plain text. Dunst will not advertise that it has the body-markup + # capability if this is set as a global setting. + # + # It's important to note that markup inside the format option will be parsed + # regardless of what this is set to. + markup = full + + # The format of the message. Possible variables are: + # %a appname + # %s summary + # %b body + # %i iconname (including its path) + # %I iconname (without its path) + # %p progress value if set ([ 0%] to [100%]) or nothing + # %n progress value if set without any extra characters + # %% Literal % + # Markup is allowed + format = "%s\n%b" + + # Alignment of message text. + # Possible values are "left", "center" and "right". + alignment = left + + # Vertical alignment of message text and icon. + # Possible values are "top", "center" and "bottom". + vertical_alignment = center + + # Show age of message if message is older than show_age_threshold + # seconds. + # Set to -1 to disable. + show_age_threshold = 60 + + # Specify where to make an ellipsis in long lines. + # Possible values are "start", "middle" and "end". + ellipsize = middle + + # Ignore newlines '\n' in notifications. + ignore_newline = no + + # Stack together notifications with the same content + stack_duplicates = true + + # Hide the count of stacked notifications with the same content + hide_duplicate_count = false + + # Display indicators for URLs (U) and actions (A). + show_indicators = yes + + ### Icons ### + + # Align icons left/right/off + icon_position = left + + # Scale small icons up to this size, set to 0 to disable. Helpful + # for e.g. small files or high-dpi screens. In case of conflict, + # max_icon_size takes precedence over this. + min_icon_size = 0 + + # Scale larger icons down to this size, set to 0 to disable + max_icon_size = 32 + + # Paths to default icons. + icon_path = /usr/share/icons/gnome/16x16/status/:/usr/share/icons/gnome/16x16/devices/ + + ### History ### + + # Should a notification popped up from history be sticky or timeout + # as if it would normally do. + sticky_history = yes + + # Maximum amount of notifications kept in history + history_length = 20 + + ### Misc/Advanced ### + + # dmenu path. + dmenu = /usr/bin/dmenu -p dunst: + + # Browser for opening urls in context menu. + browser = /usr/bin/xdg-open + + # Always run rule-defined scripts, even if the notification is suppressed + always_run_script = true + + # Define the title of the windows spawned by dunst + title = Dunst + + # Define the class of the windows spawned by dunst + class = Dunst + + # Define the corner radius of the notification window + # in pixel size. If the radius is 0, you have no rounded + # corners. + # The radius will be automatically lowered if it exceeds half of the + # notification height to avoid clipping text and/or icons. + corner_radius = 0 + + # Ignore the dbus closeNotification message. + # Useful to enforce the timeout set by dunst configuration. Without this + # parameter, an application may close the notification sent before the + # user defined timeout. + ignore_dbusclose = false + + ### Wayland ### + # These settings are Wayland-specific. They have no effect when using X11 + + # Uncomment this if you want to let notications appear under fullscreen + # applications (default: overlay) + # layer = top + + # Set this to true to use X11 output on Wayland. + force_xwayland = false + + ### Legacy + + # Use the Xinerama extension instead of RandR for multi-monitor support. + # This setting is provided for compatibility with older nVidia drivers that + # do not support RandR and using it on systems that support RandR is highly + # discouraged. + # + # By enabling this setting dunst will not be able to detect when a monitor + # is connected or disconnected which might break follow mode if the screen + # layout changes. + force_xinerama = false + + ### mouse + + # Defines list of actions for each mouse event + # Possible values are: + # * none: Don't do anything. + # * do_action: Invoke the action determined by the action_name rule. If there is no + # such action, open the context menu. + # * open_url: If the notification has exactly one url, open it. If there are multiple + # ones, open the context menu. + # * close_current: Close current notification. + # * close_all: Close all notifications. + # * context: Open context menu for the notification. + # * context_all: Open context menu for all notifications. + # These values can be strung together for each mouse event, and + # will be executed in sequence. + mouse_left_click = close_current + mouse_middle_click = do_action, close_current + mouse_right_click = close_all + +# Experimental features that may or may not work correctly. Do not expect them +# to have a consistent behaviour across releases. +[experimental] + # Calculate the dpi to use on a per-monitor basis. + # If this setting is enabled the Xft.dpi value will be ignored and instead + # dunst will attempt to calculate an appropriate dpi value for each monitor + # using the resolution and physical size. This might be useful in setups + # where there are multiple screens with very different dpi values. + per_monitor_dpi = false + + +[urgency_low] + # IMPORTANT: colors have to be defined in quotation marks. + # Otherwise the "#" and following would be interpreted as a comment. + background = "#222222" + foreground = "#888888" + timeout = 10 + # Icon for notifications with low urgency, uncomment to enable + #default_icon = /path/to/icon + +[urgency_normal] + background = "#285577" + foreground = "#ffffff" + timeout = 10 + # Icon for notifications with normal urgency, uncomment to enable + #default_icon = /path/to/icon + +[urgency_critical] + background = "#900000" + foreground = "#ffffff" + frame_color = "#ff0000" + timeout = 0 + # Icon for notifications with critical urgency, uncomment to enable + #default_icon = /path/to/icon + +# Every section that isn't one of the above is interpreted as a rules to +# override settings for certain messages. +# +# Messages can be matched by +# appname (discouraged, see desktop_entry) +# body +# category +# desktop_entry +# icon +# match_transient +# msg_urgency +# stack_tag +# summary +# +# and you can override the +# background +# foreground +# format +# frame_color +# fullscreen +# new_icon +# set_stack_tag +# set_transient +# set_category +# timeout +# urgency +# skip_display +# history_ignore +# action_name +# word_wrap +# ellipsize +# alignment +# +# Shell-like globbing will get expanded. +# +# Instead of the appname filter, it's recommended to use the desktop_entry filter. +# GLib based applications export their desktop-entry name. In comparison to the appname, +# the desktop-entry won't get localized. +# +# SCRIPTING +# You can specify a script that gets run when the rule matches by +# setting the "script" option. +# The script will be called as follows: +# script appname summary body icon urgency +# where urgency can be "LOW", "NORMAL" or "CRITICAL". +# +# NOTE: It might be helpful to run dunst -print in a terminal in order +# to find fitting options for rules. + +# Disable the transient hint so that idle_threshold cannot be bypassed from the +# client +#[transient_disable] +# match_transient = yes +# set_transient = no +# +# Make the handling of transient notifications more strict by making them not +# be placed in history. +#[transient_history_ignore] +# match_transient = yes +# history_ignore = yes + +# fullscreen values +# show: show the notifications, regardless if there is a fullscreen window opened +# delay: displays the new notification, if there is no fullscreen window active +# If the notification is already drawn, it won't get undrawn. +# pushback: same as delay, but when switching into fullscreen, the notification will get +# withdrawn from screen again and will get delayed like a new notification +#[fullscreen_delay_everything] +# fullscreen = delay +#[fullscreen_show_critical] +# msg_urgency = critical +# fullscreen = show + +#[espeak] +# summary = "*" +# script = dunst_espeak.sh + +#[script-test] +# summary = "*script*" +# script = dunst_test.sh + +#[ignore] +# # This notification will not be displayed +# summary = "foobar" +# skip_display = true + +#[history-ignore] +# # This notification will not be saved in history +# summary = "foobar" +# history_ignore = yes + +#[skip-display] +# # This notification will not be displayed, but will be included in the history +# summary = "foobar" +# skip_display = yes + +#[signed_on] +# appname = Pidgin +# summary = "*signed on*" +# urgency = low +# +#[signed_off] +# appname = Pidgin +# summary = *signed off* +# urgency = low +# +#[says] +# appname = Pidgin +# summary = *says* +# urgency = critical +# +#[twitter] +# appname = Pidgin +# summary = *twitter.com* +# urgency = normal +# +#[stack-volumes] +# appname = "some_volume_notifiers" +# set_stack_tag = "volume" +# +# vim: ft=cfg +#+end_src + +* XDG User Directories +#+begin_src shell :tangle ~/dotfiles/guix/home/files/user-dirs.dirs +# This file is written by xdg-user-dirs-update +# If you want to change or add directories, just edit the line you're +# interested in. All local changes will be retained on the next run. +# Format is XDG_xxx_DIR="$HOME/yyy", where yyy is a shell-escaped +# homedir-relative path, or XDG_xxx_DIR="/yyy", where /yyy is an +# absolute path. No other format is supported. +# +XDG_DESKTOP_DIR="$HOME" +XDG_DOWNLOAD_DIR="$HOME/downloads" +XDG_TEMPLATES_DIR="$HOME" +XDG_PUBLICSHARE_DIR="$HOME" +XDG_DOCUMENTS_DIR="$HOME/documents" +XDG_MUSIC_DIR="$HOME/music" +XDG_PICTURES_DIR="$HOME/pictures" +XDG_VIDEOS_DIR="$HOME/videos" +#+end_src diff --git a/dotfiles/org/Emacs.org b/dotfiles/org/Emacs.org new file mode 100644 index 0000000..099da67 --- /dev/null +++ b/dotfiles/org/Emacs.org @@ -0,0 +1,899 @@ + +#+TITLE: Emacs Configuration +#+PROPERTY: header-args:emacs-lisp :tangle ~/dotfiles/guix/home/files/emacs/init.el :mkdirp yes :lexical yes + +* Configuration +:PROPERTIES: +:TOC: :include all :depth 3 :force (depth) :ignore (this) :local (depth) +:END: +:CONTENTS: +- [[#configuration][Configuration]] + - [[#package-management][Package Management]] + - [[#general][General]] + - [[#theme][Theme]] + - [[#fonts][Fonts]] + - [[#keybinding][Keybinding]] + - [[#completion-frameworks][Completion Frameworks]] + - [[#buffer--workspaces][Buffer & Workspaces]] + - [[#file-browser][File Browser]] + - [[#org][Org]] + - [[#programmingeditor][Programming/Editor]] +- [[#tools][Tools]] + - [[#magit][Magit]] + - [[#eshell][Eshell]] + - [[#vterm][Vterm]] + - [[#pdf][PDF]] + - [[#e-mail][E-Mail]] + - [[#irc][IRC]] +:END: +** Package Management +I use [[https://github.com/raxod502/straight.el][straight.el]] for managing packages as it's fairly simple and robust. At some point I'd like to move to primarily using Guix for Emacs package management. +#+begin_src emacs-lisp +(setq package-enable-at-startup nil) + +;; * Package Management with straight.el +(unless (featurep 'straight) + ;; Bootstrap straight.el + (defvar bootstrap-version) + (let ((bootstrap-file + (expand-file-name "straight/repos/straight.el/bootstrap.el" user-emacs-directory)) + (bootstrap-version 5)) + (unless (file-exists-p bootstrap-file) + (with-current-buffer + (url-retrieve-synchronously + "https://raw.githubusercontent.com/raxod502/straight.el/develop/install.el" + 'silent 'inhibit-cookies) + (goto-char (point-max)) + (eval-print-last-sexp))) + (load bootstrap-file nil 'nomessage))) + +;; Use straight.el for use-package expressions +(straight-use-package 'use-package) + +(setq package-archives '(("melpa" . "https://melpa.org/packages/") + ("org" . "https://orgmode.org/elpa/") + ("elpa" . "https://elpa.gnu.org/packages/"))) +#+end_src + +** General +*** User Interface +#+begin_src emacs-lisp +(scroll-bar-mode -1) ;; Disable scroll bar +(tool-bar-mode -1) ;; Disable tool bar menu +(tooltip-mode -1) ;; Disable tooltips +(set-fringe-mode 10) ;; Disable fringe mode +(menu-bar-mode -1) ;; Disable menu bar +(global-display-line-numbers-mode t) ;; Display line numbers +(set-default 'truncate-lines nil) ;; Wrap lines at end of screen +(setq visible-bell t) ;; Visible flash to represent a bell +(setq x-select-enable-clipboard t) ;; Enable clipboard +(global-tab-line-mode -1) ;; Disable tab mode +(setq inhibit-startup-message t) ;; What it says +(setq global-auto-revert-non-file-buffers t) +(global-auto-revert-mode 1) ;; Revert all buffers on change +(setq custom-safe-themes t) ;; Treat themes as safe + +;; Disable line mode for specific major/minor modes. +(dolist (mode '(org-mode-hook + vterm-mode-hook + term-mode-hook + eshell-mode-hook)) + (add-hook mode (lambda () (display-line-numbers-mode 0)))) +#+end_src +*** Transparency +#+begin_src emacs-lisp +(set-frame-parameter (selected-frame) 'alpha '(90 . 90)) +(add-to-list 'default-frame-alist '(alpha . (90 . 90))) +(set-frame-parameter (selected-frame) 'fullscreen 'maximized) +(add-to-list 'default-frame-alist '(fullscreen . maximized)) +#+end_src + +*** Modeline +Doom's modeline is excellent, and much less cluttered than the default Emacs modeline. +#+begin_src emacs-lisp +(use-package doom-modeline + :straight t + :init (doom-modeline-mode 1) + :custom ((doom-modeline-height 15))) + +;; install all-the-icons when first loading the emacs conf +;; remember to run M-x all-the-icons-install-fonts +(use-package all-the-icons + :straight t + :if (display-graphic-p)) +#+end_src + +*** Keybinding display +Which-key is a package that displays the available commands granted that it's incomplete. For instance, if I type "SPC", I will see all of the commands available to the leader key. + +#+begin_src emacs-lisp +(use-package which-key + :straight t + :defer 0 + :diminish which-key-mode + :config + (which-key-mode) + (setq which-key-idle-delay 0.3)) +#+end_src + +*** Notifications +**** Alerts +Minimal alerts so I can see notifications from various programs in Emacs. + +#+begin_src emacs-lisp +(use-package alert + :straight t + :config + (setq alert-default-style 'notification)) +#+end_src +**** Disable Warnings +#+begin_src emacs-lisp +(setq large-file-warning-threshold nil) ;; Disables warnings for large files +(setq vc-follow-symlinks t) ;; Disables warnings for symlinks +#+end_src +*** Helpful Describe Functionality +Helpful.el is a package that reformats the describe-X functions to be much more informative. + +#+begin_src emacs-lisp +(use-package helpful + :straight t + :commands (helpful-callable helpful-variable helpful-command helpful-key)) +#+end_src +*** Autosaves +#+begin_src emacs-lisp +(use-package super-save + :straight t + :config + (super-save-mode +1)) + +;; Auto reverting Changed Files +(setq global-auto-revert-non-file-buffers nil) +(global-auto-revert-mode -1) +#+end_src +*** Pinentry +#+begin_src emacs-lisp +(use-package pinentry :straight t) +(setq epa-pinentry-mode 'loopback) +(pinentry-start) +#+end_src +*** Tramp +#+begin_src emacs-lisp +(setq tramp-default-method "ssh") +#+end_src +** Theme + +#+begin_src emacs-lisp +;; (use-package modus-themes +;; :straight t +;; :init +;; (setq modus-themes-italic-constructs t +;; modus-themes-bold-constructs nil +;; modus-themes-region '(accented bg-only no-extend) +;; modus-themes-org-blocks 'greyscale +;; modus-themes-paren-match 'intense +;; modus-themes-mixed-fonts t) +;; (modus-themes-load-themes) +;; :config +;; (modus-themes-load-vivendi) +;; :bind +;; ("" . modus-themes-toggle)) + +;; Doing some doom themes for a while. +(use-package doom-themes + :straight t + :init + (load-theme 'doom-Iosvkem)) +#+end_src + +** Fonts + +#+begin_src emacs-lisp +(set-face-attribute 'default nil :font "Fira Mono" :height 125 :weight 'medium) +(set-face-attribute 'variable-pitch nil :font "Fira Sans" :height 1.0 :weight 'regular) +(set-face-attribute 'fixed-pitch nil :font "Fira Code" :height 1.0 :weight 'medium) + +(use-package mixed-pitch + :straight t + :config + (add-hook 'org-mode-hook #'mixed-pitch-mode)) +(use-package unicode-fonts :straight t) +#+end_src + +** Keybinding +I came from vim, so naturally I use Evil keybindings. I also used to use Doom Emacs before rolling my own configuration so I've borrowed some ideas from my time spent there as well. Between the two paradigms I rarely leave the home row which is ideal for typing for extended periods of time. + +*** General.el (leader-key keybindings) +I really enjoy having a leader key and eschewing the Control and Alt keys entirely. Doom had far too many leader keybindings that I never used so I've boiled them down to the essentials that I used the most. + +#+begin_src emacs-lisp +(global-set-key (kbd "") 'keyboard-escape-quit) ;; Escape exits out of prompts + +;; Define Leader Key +(use-package general + :straight t + :config + (general-evil-setup t) + (general-create-definer opal/leader-keys + :keymaps '(normal insert visual emacs) + :prefix "SPC" + :global-prefix "C-SPC") + ;; Define Keybindings (potentially move into own file) + (opal/leader-keys + ;; Leader-map + ";" #'pp-eval-expression ;; Eval expression + ":" #'execute-extended-command ;; Eq to M-x + "u" #'universal-argument ;; Universal argument + "w" #'evil-window-map ;; Window functions + "." #'find-file ;; Find file (opens in mini-buffer) + "," #'consult-buffer ;; Switch to buffer + "<" #'switch-to-buffer ;; Switch to non-perspective.el minibuffer + "s" #'consult-line + "p" #'projectile-command-map + "l" #'lsp-map + + ;; Magit + "gg" #'magit-status + "gi" #'magit-init + "gc" #'magit-clone + + ;; Workspaces + "bi" #'persp-ibuffer + "bl" #'persp-next + "bh" #'persp-prev + "br" #'persp-rename + "bD" #'persp-remove-buffer + "bd" #'kill-buffer + + ;; Terminal/Shell + "tt" #'vterm + "te" #'eshell + + ;; Org + ;; Babel + "obt" #'org-babel-tangle + ;; Gen + "ol" #'org-insert-link + "or" #'org-reload + ;; Agenda + "oa" #'org-agenda + + ;; Eval + "eb" #'eval-buffer + "er" #'eval-region + "ef" #'eval-defun + "el" #'eval-last-sexp + + ;; Describe + "df" #'describe-function + "dv" #'describe-variable + "ds" #'describe-symbol + "dk" #'describe-key + "dp" #'describe-package)) +#+end_src + +*** Evil +#+begin_src emacs-lisp +(use-package evil + :straight t + :init + (setq evil-want-integration t) + (setq evil-want-keybinding nil) + (setq evil-want-C-u-scroll t) + (setq evil-want-C-i-jump nil) + (setq evil-respect-visual-line-mode t) + :config + (evil-mode 1) + (define-key evil-insert-state-map (kbd "C-g") 'evil-normal-state) + (define-key evil-insert-state-map (kbd "C-h") 'evil-delete-backward-char-and-join) + + ;; Use visual line motions even outside of visual-line-mode buffers + (evil-global-set-key 'motion "j" 'evil-next-visual-line) + (evil-global-set-key 'motion "k" 'evil-previous-visual-line) + + (evil-set-initial-state 'messages-buffer-mode 'normal) + (evil-set-initial-state 'dashboard-mode 'normal)) + +(use-package evil-collection + :straight t + :after evil + :config + (evil-collection-init)) +#+end_src + +** Completion Frameworks +*** Vertico +#+begin_src emacs-lisp +;; Enable vertico +(use-package vertico + :straight t + :bind + (:map vertico-map + ("C-j" . vertico-next) + ("C-k" . vertico-previous)) + :init + (vertico-mode) + (setq vertico-scroll-margin 0) ;; Scroll margin + (setq vertico-count 10) ;; Candidates + (setq vertico-cycle t)) ;; Enable cycling + + ;; (use-package ivy + ;; :straight t + ;; :bind (("C-s" . 'swiper) + ;; :map ivy-minibuffer-map + ;; ("TAB" . ivy-alt-done) + ;; ("C-l" . ivy-alt-done) + ;; ("C-j" . ivy-next-line) + ;; ("C-k" . ivy-previous-line) + ;; :map ivy-switch-buffer-map + ;; ("C-k" . ivy-previous-line) + ;; ("C-l" . ivy-done) + ;; ("C-d" . ivy-reverse-i-search-kill)) + ;; :config + ;; (ivy-mode 1)) + + ;; (use-package ivy-rich + ;; :straight t + ;; :after ivy + ;; :init (ivy-rich-mode 1)) +#+end_src +*** Orderless +Completion style +#+begin_src emacs-lisp +(use-package orderless + :straight t + :init + (setq completion-styles '(orderless) + completion-category-defaults nil + completion-category-overrides '((file (styles partial-completion))))) +#+end_src + +*** History +Persistent history +#+begin_src emacs-lisp +(use-package savehist + :straight t + :init + (savehist-mode)) +#+end_src + +*** Consult +#+begin_src emacs-lisp +(use-package consult + :straight t + :defer t + :config + (setq + consult-narrow-key "<" + consult-line-numbers-widen t + consult-async-min-input 2 + consult-async-refresh-delay 0.15 + consult-async-input-throttle 0.2 + consult-async-input-debounce 0.1)) +;; (use-package counsel +;; :straight t +;; :bind +;; (("C-M-j" . 'counsel-switch-buffer) +;; :map minibuffer-local-map +;; ("C-r" . 'counsel-minibuffer-history)) + +;; :custom +;; (counsel-linux-app-format-function #'counsel-linux-app-format-function-name-only) +;; :config +;; (counsel-mode 1)) +#+end_src + +*** Marginalia +Marginalia provides annotations next to minibuffer items. + +#+begin_src emacs-lisp +(use-package marginalia + :straight t + :bind (("M-A" . marginalia-cycle) + :map minibuffer-local-map + ("M-A" . marginalia-cycle)) + :init + (marginalia-mode)) +#+end_src + +*** Company +#+begin_src emacs-lisp +(use-package company + :straight t + :commands (company-complete-common + company-complete-common-or-cycle + company-manual-begin + company-grab-line) + :init + (setq company-minimum-prefix-length 2 + company-tooltip-limit 14 + company-tooltip-align-annotations t + company-require-match 'never + company-global-modes + '(not erc-mode + message-mode + help-mode + vterm-mode) + company-frontends + '(company-pseudo-tooltip-frontend ; always show candidates in overlay tooltip + company-echo-metadata-frontend) ; show selected candidate docs in echo area + company-backends '(company-capf) + company-auto-commit nil + company-dabbrev-other-buffers nil + company-dabbrev-ignore-case nil + company-dabbrev-downcase nil)) +#+end_src + +** Buffer & Workspaces +*** Perspective +#+begin_src emacs-lisp +(use-package perspective + :straight t + :config + (persp-mode)) +#+end_src +*** Bufler +Helps organize buffers in groups. +#+begin_src emacs-lisp +(use-package bufler :straight t) +#+end_src +*** Winner +Allows window undo +#+begin_src emacs-lisp +(use-package winner + :straight t) +#+end_src +** File Browser +I don't even think I've heard of an alternative to Dired... +#+begin_src emacs-lisp +(use-package dired + :init + (setq dired-auto-revert-buffer t + dired-dwim-target t + dired-hide-details-hide-symlink-targets nil + dired-recursive-copies 'always + dired-recursive-deletes 'top + dired-create-destination-dirs 'ask)) + +(use-package dired-rsync + :straight t + :general (dired-mode-map "C-c C-r" #'dired-rsync)) +(use-package all-the-icons-dired :straight t) +(use-package dired-single :straight t) +(use-package dired-collapse :straight t) + +;; Make pretty colors! +(use-package dired-rainbow + :straight t + :after dired + :config + (dired-rainbow-define-chmod directory "#6cb2eb" "d.*") + (dired-rainbow-define html "#eb5286" ("css" "less" "sass" "scss" "htm" "html" "jhtm" "mht" "eml" "mustache" "xhtml")) + (dired-rainbow-define xml "#f2d024" ("xml" "xsd" "xsl" "xslt" "wsdl" "bib" "json" "msg" "pgn" "rss" "yaml" "yml" "rdata")) + (dired-rainbow-define document "#9561e2" ("docm" "doc" "docx" "odb" "odt" "pdb" "pdf" "ps" "rtf" "djvu" "epub" "odp" "ppt" "pptx")) + (dired-rainbow-define markdown "#ffed4a" ("org" "etx" "info" "markdown" "md" "mkd" "nfo" "pod" "rst" "tex" "textfile" "txt")) + (dired-rainbow-define database "#6574cd" ("xlsx" "xls" "csv" "accdb" "db" "mdb" "sqlite" "nc")) + (dired-rainbow-define media "#de751f" ("mp3" "mp4" "mkv" "MP3" "MP4" "avi" "mpeg" "mpg" "flv" "ogg" "mov" "mid" "midi" "wav" "aiff" "flac")) + (dired-rainbow-define image "#f66d9b" ("tiff" "tif" "cdr" "gif" "ico" "jpeg" "jpg" "png" "psd" "eps" "svg")) + (dired-rainbow-define log "#c17d11" ("log")) + (dired-rainbow-define shell "#f6993f" ("awk" "bash" "bat" "sed" "sh" "zsh" "vim")) + (dired-rainbow-define interpreted "#38c172" ("py" "ipynb" "rb" "pl" "t" "msql" "mysql" "pgsql" "sql" "r" "clj" "cljs" "scala" "js")) + (dired-rainbow-define compiled "#4dc0b5" ("asm" "cl" "lisp" "el" "c" "h" "c++" "h++" "hpp" "hxx" "m" "cc" "cs" "cp" "cpp" "go" "f" "for" "ftn" "f90" "f95" "f03" "f08" "s" "rs" "hi" "hs" "pyc" ".java")) + (dired-rainbow-define executable "#8cc4ff" ("exe" "msi")) + (dired-rainbow-define compressed "#51d88a" ("7z" "zip" "bz2" "tgz" "txz" "gz" "xz" "z" "Z" "jar" "war" "ear" "rar" "sar" "xpi" "apk" "xz" "tar")) + (dired-rainbow-define packaged "#faad63" ("deb" "rpm" "apk" "jad" "jar" "cab" "pak" "pk3" "vdf" "vpk" "bsp")) + (dired-rainbow-define encrypted "#ffed4a" ("gpg" "pgp" "asc" "bfe" "enc" "signature" "sig" "p12" "pem")) + (dired-rainbow-define fonts "#6cb2eb" ("afm" "fon" "fnt" "pfb" "pfm" "ttf" "otf")) + (dired-rainbow-define partition "#e3342f" ("dmg" "iso" "bin" "nrg" "qcow" "toast" "vcd" "vmdk" "bak")) + (dired-rainbow-define vc "#0074d9" ("git" "gitignore" "gitattributes" "gitmodules")) + (dired-rainbow-define-chmod executable-unix "#38c172" "-.*x.*")) +#+end_src +** Org +*** General Configuration +#+begin_src emacs-lisp +(defun opal/org-font-setup () + ;; Replace list hyphen with dot + (font-lock-add-keywords 'org-mode + '(("^ *\\([-]\\) " + (0 (prog1 () (compose-region (match-beginning 1) (match-end 1) + "•")))))) + + ;; Set faces for heading levels + (dolist (face '((org-level-1 . 1.2) + (org-level-2 . 1.1) + (org-level-3 . 1.05) + (org-level-4 . 1.0) + (org-level-5 . 1.1) + (org-level-6 . 1.1) + (org-level-7 . 1.1) + (org-level-8 . 1.1))) + (set-face-attribute (car face) nil :font "Cantarell" :weight 'regular :height (cdr face))) + + ;; Ensure that anything that should be fixed-pitch in Org files appears that way + (set-face-attribute 'org-block nil :foreground nil :inherit 'fixed-pitch) + (set-face-attribute 'org-table nil :inherit 'fixed-pitch) + (set-face-attribute 'org-formula nil :inherit 'fixed-pitch) + (set-face-attribute 'org-code nil :inherit '(shadow fixed-pitch)) + (set-face-attribute 'org-table nil :inherit '(shadow fixed-pitch)) + (set-face-attribute 'org-verbatim nil :inherit '(shadow fixed-pitch)) + (set-face-attribute 'org-special-keyword nil :inherit '(font-lock-comment-face fixed-pitch)) + (set-face-attribute 'org-meta-line nil :inherit '(font-lock-comment-face fixed-pitch)) + (set-face-attribute 'org-checkbox nil :inherit 'fixed-pitch) + (set-face-attribute 'line-number nil :inherit 'fixed-pitch) + (set-face-attribute 'line-number-current-line nil :inherit 'fixed-pitch)) + + +(defun opal/org-mode-setup () + (org-indent-mode) + (variable-pitch-mode 1) + (visual-line-mode 1) + (setq org-startup-folded t)) + +(use-package org + :straight t + :commands (org-capture org-agenda) + :hook (org-mode . opal/org-mode-setup) + :config + (setq org-ellipsis " ▾") + (setq org-agenda-start-with-log-mode t) + (setq org-log-done 'time) + (setq org-log-into-drawer t) + + (setq org-agenda-files + '("~/Org/projects/" + "~/Org/tasks/")) + + + (require 'org-habit) + (add-to-list 'org-modules 'org-habit) + (setq org-habit-graph-column 60) + + (setq org-todo-keywords + '((sequence "TODO(t)" "NEXT(n)" "|" "DONE(d!)") + (sequence "BACKLOG(b)" "PLAN(p)" "READY(r)" "ACTIVE(a)" "REVIEW(v)" "WAIT(w@/!)" "HOLD(h)" "|" "COMPLETED(c)" "CANC(k@)"))) + + (setq org-refile-targets + '(("archive.org" :maxlevel . 1) + ("planner.org" :maxlevel . 1))) + + ;; Save Org buffers after refiling! + (advice-add 'org-refile :after 'org-save-all-org-buffers) + + (setq org-tag-alist + '((:startgroup) + ; Put mutually exclusive tags here + (:endgroup) + ("@errand" . ?E) + ("@home" . ?H) + ("@work" . ?W) + ("agenda" . ?a) + ("planning" . ?p) + ("publish" . ?P) + ("batch" . ?b) + ("note" . ?n) + ("idea" . ?i))) + + ;; Configure custom agenda views + (setq org-agenda-custom-commands + '(("d" "Dashboard" + ((agenda "" ((org-deadline-warning-days 7))) + (todo "NEXT" + ((org-agenda-overriding-header "Next Tasks"))) + (tags-todo "agenda/ACTIVE" ((org-agenda-overriding-header "Active Projects"))))) + + ("n" "Next Tasks" + ((todo "NEXT" + ((org-agenda-overriding-header "Next Tasks"))))) + + ;; Low-effort next actions + ("e" tags-todo "+TODO=\"NEXT\"+Effort<15&+Effort>0" + ((org-agenda-overriding-header "Low Effort Tasks") + (org-agenda-max-todos 20) + (org-agenda-files org-agenda-files))))) + + ;; Create capture templates + (setq org-capture-templates + `(("t" "Tasks") + ("tt" "Task" entry (file+olp "~/org/planner/tasks.org" "Inbox") + "* TODO %?\n %U\n %a\n %i" :empty-lines 1) + + ("p" "Projects") + ("pp" "Project File" entry (file+olp "~/org/projects/auto-infra-overview.org" "Inbox") + "* TODO %?\n %U\n %a\n %i" :empty-lines 1))) + + ;; Tell Org to stop indenting inside of org source blocks. + (setq org-edit-src-content-indentation 0) + + ;; Set org agenda dir + (setq org-directory "~/Org/") + + ;; Open links in browser + (setq browse-url-browser-function 'browse-url-generic + browse-url-generic-program "firefox") + + ;; Init org font setup + (opal/org-font-setup)) +#+end_src + +*** Pretty Bullets +Creates nicer (-) bullets. +#+begin_src emacs-lisp +(use-package org-bullets + :straight t + :after org + :hook (org-mode . org-bullets-mode) + :custom + (org-bullets-bullet-list '("◉" "○" "●" "○" "●" "○" "●"))) +#+end_src + +*** Org Table of Contents +#+begin_src emacs-lisp +(use-package org-make-toc :straight t) +#+end_src + +*** Visual Fill Mode +Creates margins in Org mode to make it more pleasant to look at. +#+begin_src emacs-lisp + +(defun opal/org-mode-visual-fill () + (setq visual-fill-column-width 100 + visual-fill-column-center-text t) + (visual-fill-column-mode 1)) + +(use-package visual-fill-column + :straight t + :hook (org-mode . opal/org-mode-visual-fill)) + +#+end_src + +*** Org Babel +#+begin_src emacs-lisp +;; Load languages for babel code blocks. +(with-eval-after-load 'org + (org-babel-do-load-languages + 'org-babel-load-languages + '((emacs-lisp . t) + (lisp . t))) + + (push '("conf-unix" . conf-unix) org-src-lang-modes)) + +;; Set geiser default language +(setq geiser-default-implementation '(guile)) + +(with-eval-after-load 'org + (require 'org-tempo) + + (add-to-list 'org-structure-template-alist '("sh" . "src shell")) + (add-to-list 'org-structure-template-alist '("el" . "src emacs-lisp")) + (add-to-list 'org-structure-template-alist '("scm" . "src scheme")) + (add-to-list 'org-structure-template-alist '("cl" . "src lisp"))) +#+end_src +** Development/Editing +*** General +**** Syntax (Flycheck) +#+begin_src emacs-lisp +(use-package flycheck :straight t) +#+end_src +**** Tabs/Spaces +#+begin_src emacs-lisp +(setq-default tab-width 2) ;; Set tab indent to 2 +(setq-default evil-shift-width tab-width) ;; Ensure evil matches tab-width +(setq-default indent-tabs-mode nil) ;; Use spaces instead of tabs + +;; Clean up whitespace +(use-package ws-butler :straight t) +#+end_src +**** Rainbow Delimiters +#+begin_src emacs-lisp +(use-package rainbow-delimiters + :straight t + :init + (add-hook 'prog-mode-hook #'rainbow-delimiters-mode) + (add-hook 'org-mode-hook #'rainbow-delimiters-mode)) +#+end_src +**** Rainbow Mode +Sets HTML strings to have the background of the color they represent. +#+begin_src emacs-lisp +(use-package rainbow-mode :straight t) +#+end_src +*** Magit +#+begin_src emacs-lisp +(use-package magit + :straight t) +#+end_src +*** Projectile +#+begin_src emacs-lisp +(use-package projectile + :straight t + :config + (projectile-mode) + :init + (when (file-directory-p "~/Projects/Code") + (setq projectile-project-search-path '("~/Projects/Code"))) + (setq projectile-switch-project-action #'projectile-dired)) +#+end_src +*** LSP +#+begin_src emacs-lisp +(use-package lsp-mode + :straight t + :commands (lsp lsp-deferred) + :config + (lsp-enable-which-key-integration t)) + +(use-package lsp-ui + :straight t + :hook (lsp-mode . lsp-ui-mode) + :custom + (lsp-ui-doc-position 'bottom)) + +#+end_src + +*** Python +#+begin_src emacs-lisp +(use-package python-mode + :ensure t + :hook (python-mode . lsp-deferred)) +#+end_src + +*** Ruby +<<<<<<< HEAD +**** Code Completion +#+begin_src emacs-lisp +(use-package robe + :straight t) +#+end_src +**** Bundler +#+begin_src emacs-lisp +(use-package bundler + :straight t) +======= +#+begin_src emacs-lisp + +>>>>>>> origin/master +#+end_src + +*** Lisp +#+begin_src emacs-lisp +(use-package parinfer + :straight t + :init + (progn + (setq parinfer-extensions + '(defaults + pretty-parens + evil)) + (add-hook 'prog-mode-hook #'parinfer-mode))) +#+end_src +*** Common Lisp +#+begin_src emacs-lisp +(defvar inferior-lisp-program "sbcl") +(use-package sly :straight t) +#+end_src +*** Scheme +#+begin_src emacs-lisp +(use-package geiser + :straight t + :ensure t) + +(use-package geiser-guile + :straight t) + +#+end_src +*** Snippets +Snippets allow certain files to be filled with a template depending on its filename extension. +#+begin_src emacs-lisp +(use-package yasnippet + :straight t + :hook (prog-mode . yas-minor-mode) + :config + (yas-reload-all)) +#+end_src +** Eshell +#+begin_src emacs-lisp +(use-package eshell + :straight t + :config + ;; Save command history when commands are entered + (add-hook 'eshell-pre-command-hook 'eshell-save-some-history) + ;; Truncate buffer for performance + (add-to-list 'eshell-output-filter-functions 'eshell-truncate-buffer) + (evil-normalize-keymaps) + + (setq eshell-banner-message + '(format "%s %s\n" + (propertize (format " %s " (string-trim (buffer-name))) + 'face 'mode-line-highlight) + (propertize (current-time-string) + 'face 'font-lock-keyword-face))) + + (setq eshell-scroll-to-bottom-on-input 'all + eshell-scroll-to-bottom-on-output 'all + eshell-kill-processes-on-exit t + eshell-hist-ignoredups t + eshell-prompt-regexp "^.* λ " + ;; em-glob + eshell-history-size 10000 + eshell-buffer-maximum-lines 10000 + eshell-scroll-to-bottom-on-input t) + + (with-eval-after-load 'esh-opt + (setq eshell-destroy-buffer-when-process-dies t) + (setq eshell-visual-commands '("htop" "zsh" "vim")))) + +#+end_src + +** Vterm +#+begin_src emacs-lisp +(use-package vterm + :straight t + :commands vterm + :config + (setq term-prompt-regexp "^[^#$%>\n]*[#$%>] *") ;; Terminal prompt + (setq vterm-shell "zsh") + (setq vterm-max-scrollback 10000)) +#+end_src + +** PDF +#+begin_src emacs-lisp +(use-package pdf-tools + :straight t + :init + (pdf-tools-install)) +#+end_src + +** E-Mail +I've been using IceDove/Thunderbird for e-mail until I get around to making this a comparable solutions. + +#+begin_src emacs-lisp +;; (use-package mu4e +;; :straight t +;; :config +;; ;; This is set to 't' to avoid mail syncing issues when using mbsync +;; (setq mu4e-change-filenames-when-moving t) + +;; ;; Refresh mail using isync every 5 minutes +;; (setq mu4e-update-interval (* 5 60)) +;; (setq mu4e-get-mail-command "mbsync -a -c ~/Dotfiles/.config/mbsync/mbsyncrc") +;; (setq mu4e-maildir "~/Mail") + +;; (setq mu4e-contexts +;; (list +;; ;; Opal.sh +;; (make-mu4e-context +;; :name "Ry P." +;; :match-func +;; (lambda (msg) +;; (when msg +;; (string-prefix-p "/opal.sh" (mu4e-message-field msg :maildir)))) + +;; :vars '((user-mail-address . "ry@opal.sh") +;; (user-full-name . "Ry P.") +;; (mu4e-drafts-folder . "/opal.sh/Drafts") +;; (mu4e-sent-folder . "/opal.sh/Sent") +;; (mu4e-trash-folder . "/opal.sh/Trash"))))) + +;; (setq mu4e-maildir-shortcuts +;; '(("/opal.sh/Inbox" . ?i) +;; ("/opal.sh/Sent" . ?s) +;; ("/opal.sh/Trash" . ?t) +;; ("/opal.sh/Drafts" . ?d)))) +#+end_src +** IRC +Right now I'm pretty happy with Matrix bridging into IRC rooms so this will stay commented out for now. I might try out the Emacs Matrix client at some point soon. + +#+begin_src emacs-lisp +;; (use-package erc +;; :straight t +;; (setq erc-server "irc.libera.chat" ;sets default server +;; erc-nick "opalvaults" ; Sets nick +;; erc-user-full-name "opalvaults" +;; erc-track-shorten-start 8 +;; erc-kill-buffer-on-part t +;; erc-auto-query 'bury +;; erc-fill-column 90 +;; erc-fill-function 'erc-fill-static +;; erc-fill-static-center 20 +;; erc-track-visibility nil +;; erc-interpret-mirc-color t +;; erc-rename-buffers t +;; erc-track-exclude-server-buffer t)) +#+end_src diff --git a/dotfiles/org/Guix.org b/dotfiles/org/Guix.org new file mode 100644 index 0000000..bfab1ee --- /dev/null +++ b/dotfiles/org/Guix.org @@ -0,0 +1,452 @@ +#+TITLE: Guix Configuration + +I use GNU Guix as my operating system. I'm able to declare the state of the operating system in a series of configuration files in a similar way to Puppet. + +* Channels +#+begin_src scheme :tangle ~/dotfiles/guix/system/channels.scm +(list (channel + (name 'guix) + (url "https://git.savannah.gnu.org/git/guix.git") + (introduction + (make-channel-introduction + "9edb3f66fd807b096b48283debdcddccfea34bad" + (openpgp-fingerprint + "BBB0 2DDF 2CEA F6A8 0D1D E643 A2A0 6DF2 A33A 54FA")))) + + (channel + (name 'nonguix) + (url "https://gitlab.com/nonguix/nonguix") + (introduction + (make-channel-introduction + "897c1a470da759236cc11798f4e0a5f7d4d59fbc" + (openpgp-fingerprint + "2A39 3FFF 68F4 EF7A 3D29 12AF 6F51 20A0 22FB B2D5"))))) +#+end_src + +* System +** Home Desktop +#+begin_src scheme :tangle ~/dotfiles/guix/system/home-desktop.scm +(use-modules (gnu) + (gnu services desktop) + (gnu packages wm) + (gnu system setuid) + (gnu packages admin) + (nongnu packages linux)) + +(use-service-modules + cups + desktop + networking + ssh + sddm + xorg) + +(operating-system + (kernel linux) + (firmware (list linux-firmware)) + (locale "en_US.utf8") + (timezone "America/Los_Angeles") + (keyboard-layout (keyboard-layout "us")) + (host-name "borges") + (setuid-programs + (cons (setuid-program + (program (file-append swaylock "/bin/swaylock"))) + %setuid-programs)) + (users (cons* (user-account + (name "opal") + (comment "opal") + (group "users") + (home-directory "/home/opal") + (supplementary-groups + '("wheel" + "netdev" + "audio" + "video"))) + %base-user-accounts)) + + (packages (append (list git + wl-clipboard + icecat + vim + nss-certs + stow + exfat-utils + emacs + sway + swaybg + swaylock + swayidle + dmenu + bluez + bluez-alsa + pulseaudio)) + %base-packages) + + (services + (append (modify-services %desktop-services + (delete gdm-service-type)) + (list (service sddm-service-type + (sddm-configuration + (display-server "wayland")))))) + (bootloader + (bootloader-configuration + (bootloader grub-efi-bootloader) + (targets (list "/boot/efi")) + (keyboard-layout keyboard-layout))) + (mapped-devices + (list (mapped-device + (source + (uuid "40aa6387-e935-4f70-8e7d-1975678a5a32")) + (target "cryptroot") + (type luks-device-mapping)))) + (file-systems + (cons* (file-system + (mount-point "/") + (device "/dev/mapper/cryptroot") + (type "btrfs") + (dependencies mapped-devices)) + (file-system + (mount-point "/boot/efi") + (device (uuid "1C3B-10F5" 'fat32)) + (type "vfat")) + %base-file-systems))) + +;; (setuid-programs +;; (let ((from (lambda (package file) +;; (setuid-program (program (file-append package file)))))) +;; (cons* (from light "/bin/light") +;; (from mtr "/sbin/mtr") +;; (from network-manager "/bin/nmtui") +;; (from nfs-utils "/sbin/mount.nfs") +;; (from swaylock "/bin/swaylock") +;; %setuid-programs))) + +;; (services (cons* ... +;; (modify-services %desktop-services +;; (gdm-service-type config +;; =;;putabrackethere (gdm-configuration +;; (inherit config) +;; (wayland? #t) +;; (debug? #t)))))) + + +#+end_src + +** Work Laptop +#+begin_src scheme :tangle ~/dotfiles/guix/system/work-laptop.scm +(use-modules (gnu) + (gnu services desktop) + (gnu packages wm) + (gnu system setuid) + (gnu packages admin) + (nongnu packages linux)) + +(use-service-modules + cups + desktop + networking + ssh + sddm + xorg) + +(operating-system + (kernel linux) + (firmware (list linux-firmware)) + (locale "en_US.utf8") + (timezone "America/Los_Angeles") + (keyboard-layout (keyboard-layout "us")) + (host-name "borges") + (setuid-programs + (cons (setuid-program + (program (file-append swaylock "/bin/swaylock"))) + %setuid-programs)) + (users (cons* (user-account + (name "opal") + (comment "opal") + (group "users") + (home-directory "/home/opal") + (supplementary-groups + '("wheel" + "netdev" + "audio" + "video"))) + %base-user-accounts)) + + (packages (append (list git + wl-clipboard + vim + nss-certs + stow + exfat-utils + emacs + emacs-exwm + sway + swaybg + swaylock + swayidle + polybar + nyxt + dmenu + bluez + bluez-alsa + pulseaudio + keepassxc + font-fira-mono + font-fira-sans + font-fira-code + gcc-toolchain)) + %base-packages) + + (services + (append (modify-services %desktop-services + (delete gdm-service-type)) + (list (service sddm-service-type + (sddm-configuration + (display-server "wayland")))))) + + (bootloader + (bootloader-configuration + (bootloader grub-efi-bootloader) + (targets (list "/boot/efi")) + (keyboard-layout keyboard-layout))) + (mapped-devices + (list (mapped-device + (source + (uuid "abe760e2-4ba5-4f43-81a2-1c3f16eb62a8")) + (target "cryptroot") + (type luks-device-mapping)))) + (file-systems + (cons* (file-system + (mount-point "/") + (device "/dev/mapper/cryptroot") + (type "btrfs") + (dependencies mapped-devices)) + (file-system + (mount-point "/boot/efi") + (device (uuid "15B3-5DE5" 'fat32)) + (type "vfat")) + %base-file-systems))) + +;; (setuid-programs +;; (let ((from (lambda (package file) +;; (setuid-program (program (file-append package file)))))) +;; (cons* (from light "/bin/light") +;; (from mtr "/sbin/mtr") +;; (from network-manager "/bin/nmtui") +;; (from nfs-utils "/sbin/mount.nfs") +;; (from swaylock "/bin/swaylock") +;; %setuid-programs))) + +;; (services (cons* ... +;; (modify-services %desktop-services +;; (gdm-service-type config +;; =;;putabrackethere (gdm-configuration +;; (inherit config) +;; (wayland? #t) +;; (debug? #t)))))) +#+end_src + +* Home +#+begin_src emacs-lisp :tangle ~/dotfiles/guix/home/guix-home.scm +(use-modules + (gnu) + (gnu home) + (gnu home services) + (gnu home services shells) + (gnu home services shepard) + (gnu packages libreoffice) + (gnu packages mail) + (gnu packages pdf)) + +(home-environment + (packages + (append + ;; Tools/Libraries + (list + gcc-toolchain + wget + curl + cmake + make + zip + unzip + libtool + openssl + openssh + gst-plugins-bad + gst-plugins-base + gst-plugins-good + gst-plugins-ugly + gst-libav + wl-clipboard + zsh + gnupg) + ;; Applications + (list + alacritty + nyxt + zathura-pdf-mupdf + thunar + firefox + wl-randr + libreoffice + calibre + mpv + youtube-dl + icedove + keepassxc + nautilus) + ;; Emacs + (list + emacs-vterm + emacs-geiser + emacs-geiser-guile + emacs-doom-modeline + emacs-all-the-icons + emacs-all-the-icons-dired + emacs-general + emacs-which-key + emacs-alert + emacs-helpful + emacs-pinentry + emacs-doom-themes + emacs-evil + emacs-evil-collection + emacs-vertico + emacs-orderless + emacs-consult + emacs-company + emacs-marginalia + emacs-perspective + emacs-dired-rsync + emacs-dired-hacks + emacs-org-bullets + emacs-org-make-toc + emacs-visual-fill-column + emacs-flycheck + emacs-rainbow-mode + emacs-rainbow-delimiters + emacs-magit + emacs-projectile + emacs-lsp-mode + emacs-lsp-ui + emacs-treemacs + emacs-lsp-treemacs + emacs-parinfer + emacs-yasnippet + emacs-pdf-tools) + ;; Languages + (list + ruby + python + guile + sbcl + perl + python-lsp-server + ruby-solargraph) + ;; Aesthetics/Fonts + (list + gnome-tweaks + papirus-icon-theme + arc-theme + font-fira-mono + font-fira-code + font-fira-sans + font-abattis-cantarell + font-google-noto + font-awesome))) + (services + (append + ;; Shell + (list + (service home-zsh-service-type + (home-zsh-configuration + ;; Place all configs to $XDG_CONFIG_HOME/zsh. Makes + ;; ~/.zshenv set ZDOTDIR to $XDG_CONFIG_HOME/zsh + ;; and shell process starts with ~/.config/zsh/.zshenv + (xdg-flavor? #t) + ;; .zshenv + (zshenv + (list + (local-file + (string-append (getenv "HOME") + "/dotfiles/guix/home/files/zsh/zshenv") + "/.config/zsh/.zshenv"))) + ;; .zprofile + (zprofile + (list + (local-file + (string-append (getenv "HOME") + "/dotfiles/guix/home/files/zsh/zprofile") + "/.config/zsh/.zprofile"))) + ;; .zshrc + (zshrc + (list + (local-file + (string-append (getenv "HOME") + "/dotfiles/guix/home/files/zsh/zshrc") + "/.config/zsh/.zshrc")))))) + ;; Files + (list + (simple-service 'sway + home-files-service-type + (list + `(".config/sway/config" + ,(local-file + (string-append (getenv "HOME") + "/dotfiles/guix/home/files/sway/config"))))) + (simple-service 'emacs-config + home-files-service-type + (list + `(".config/emacs/init.el" + ,(local-file + (string-append (getenv "HOME") + "/dotfiles/guix/home/files/emacs/init.el"))))) + + (simple-service 'nyxt-config + home-files-service-type + (list + `(".config/nyxt/init.lisp" + ,(local-file + (string-append (getenv "HOME") + "/dotfiles/guix/home/files/nyxt/init.lisp"))))) + + (simple-service 'dunst-config + home-files-service-type + (list + `(".config/dunst/dunstrc" + ,(local-file + (string-append (getenv "HOME") + "/dotfiles/guix/home/files/dunst/dunstrc"))))) + + (simple-service 'mbsync-config + home-files-service-type + (list + `(".config/mbsync/mbsyncrc" + ,(local-file + (string-append (getenv "HOME") + "/dotfiles/guix/home/files/mbsync/mbsyncrc"))))) + + (simple-service 'alacritty-config + home-files-service-type + (list + `(".config/alacritty/alacritty.yml" + ,(local-file + (string-append (getenv "HOME") + "/dotfiles/guix/home/files/alacritty/alacritty.yml")))))) + + ;; Daemons + (list + (service home-shepard-service-type + (home-shepherd-configuration + (services + (list + (shepard-service + (provision '(emacs)) + (start #~(make-system-constructor "emacs --daemon")) + (stop #~(make-system-constructor "emacsclient -e '(kill-emacs)'"))) + (shepard-service + (provision '(gnome-keyring-daemon)) + (start #~(make-system-contructor "gnome-keyring-daemon --daemonize ")) + (stop #~(make-system-contructor "pkill gnome-keyring-daemon"))))))))))) +#+end_src diff --git a/dotfiles/org/Guix.org~ b/dotfiles/org/Guix.org~ new file mode 100644 index 0000000..c87f803 --- /dev/null +++ b/dotfiles/org/Guix.org~ @@ -0,0 +1,454 @@ +#+TITLE: Guix Configuration + +I use GNU Guix as my operating system. I'm able to declare the state of the operating system in a series of configuration files in a similar way to Puppet. Eventually I would like to integrate Guix Home into this configuration. + +* Channels +Disclaimer: I use the nonguix channel only for the use of building Firefox from source easily. + +#+begin_src scheme :tangle ~/dotfiles/guix/system/channels.scm +(list (channel + (name 'guix) + (url "https://git.savannah.gnu.org/git/guix.git") + (introduction + (make-channel-introduction + "9edb3f66fd807b096b48283debdcddccfea34bad" + (openpgp-fingerprint + "BBB0 2DDF 2CEA F6A8 0D1D E643 A2A0 6DF2 A33A 54FA")))) + + (channel + (name 'nonguix) + (url "https://gitlab.com/nonguix/nonguix") + (introduction + (make-channel-introduction + "897c1a470da759236cc11798f4e0a5f7d4d59fbc" + (openpgp-fingerprint + "2A39 3FFF 68F4 EF7A 3D29 12AF 6F51 20A0 22FB B2D5"))))) +#+end_src + +* System +** Home Desktop +#+begin_src scheme :tangle ~/dotfiles/guix/system/home-desktop.scm +(use-modules (gnu) + (gnu services desktop) + (gnu packages wm) + (gnu system setuid) + (gnu packages admin) + (nongnu packages linux)) + +(use-service-modules + cups + desktop + networking + ssh + sddm + xorg) + +(operating-system + (kernel linux) + (firmware (list linux-firmware)) + (locale "en_US.utf8") + (timezone "America/Los_Angeles") + (keyboard-layout (keyboard-layout "us")) + (host-name "borges") + (setuid-programs + (cons (setuid-program + (program (file-append swaylock "/bin/swaylock"))) + %setuid-programs)) + (users (cons* (user-account + (name "opal") + (comment "opal") + (group "users") + (home-directory "/home/opal") + (supplementary-groups + '("wheel" + "netdev" + "audio" + "video"))) + %base-user-accounts)) + + (packages (append (list git + wl-clipboard + icecat + vim + nss-certs + stow + exfat-utils + emacs + sway + swaybg + swaylock + swayidle + dmenu + bluez + bluez-alsa + pulseaudio)) + %base-packages) + + (services + (append (modify-services %desktop-services + (delete gdm-service-type)) + (list (service sddm-service-type + (sddm-configuration + (display-server "wayland")))))) + (bootloader + (bootloader-configuration + (bootloader grub-efi-bootloader) + (targets (list "/boot/efi")) + (keyboard-layout keyboard-layout))) + (mapped-devices + (list (mapped-device + (source + (uuid "40aa6387-e935-4f70-8e7d-1975678a5a32")) + (target "cryptroot") + (type luks-device-mapping)))) + (file-systems + (cons* (file-system + (mount-point "/") + (device "/dev/mapper/cryptroot") + (type "btrfs") + (dependencies mapped-devices)) + (file-system + (mount-point "/boot/efi") + (device (uuid "1C3B-10F5" 'fat32)) + (type "vfat")) + %base-file-systems))) + +;; (setuid-programs +;; (let ((from (lambda (package file) +;; (setuid-program (program (file-append package file)))))) +;; (cons* (from light "/bin/light") +;; (from mtr "/sbin/mtr") +;; (from network-manager "/bin/nmtui") +;; (from nfs-utils "/sbin/mount.nfs") +;; (from swaylock "/bin/swaylock") +;; %setuid-programs))) + +;; (services (cons* ... +;; (modify-services %desktop-services +;; (gdm-service-type config +;; =;;putabrackethere (gdm-configuration +;; (inherit config) +;; (wayland? #t) +;; (debug? #t)))))) + + +#+end_src + +** Work Laptop +#+begin_src scheme :tangle ~/dotfiles/guix/system/work-laptop.scm +(use-modules (gnu) + (gnu services desktop) + (gnu packages wm) + (gnu system setuid) + (gnu packages admin) + (nongnu packages linux)) + +(use-service-modules + cups + desktop + networking + ssh + sddm + xorg) + +(operating-system + (kernel linux) + (firmware (list linux-firmware)) + (locale "en_US.utf8") + (timezone "America/Los_Angeles") + (keyboard-layout (keyboard-layout "us")) + (host-name "borges") + (setuid-programs + (cons (setuid-program + (program (file-append swaylock "/bin/swaylock"))) + %setuid-programs)) + (users (cons* (user-account + (name "opal") + (comment "opal") + (group "users") + (home-directory "/home/opal") + (supplementary-groups + '("wheel" + "netdev" + "audio" + "video"))) + %base-user-accounts)) + + (packages (append (list git + wl-clipboard + vim + nss-certs + stow + exfat-utils + emacs + emacs-exwm + sway + swaybg + swaylock + swayidle + polybar + nyxt + dmenu + bluez + bluez-alsa + pulseaudio + keepassxc + font-fira-mono + font-fira-sans + font-fira-code + gcc-toolchain)) + %base-packages) + + (services + (append (modify-services %desktop-services + (delete gdm-service-type)) + (list (service sddm-service-type + (sddm-configuration + (display-server "wayland")))))) + + (bootloader + (bootloader-configuration + (bootloader grub-efi-bootloader) + (targets (list "/boot/efi")) + (keyboard-layout keyboard-layout))) + (mapped-devices + (list (mapped-device + (source + (uuid "abe760e2-4ba5-4f43-81a2-1c3f16eb62a8")) + (target "cryptroot") + (type luks-device-mapping)))) + (file-systems + (cons* (file-system + (mount-point "/") + (device "/dev/mapper/cryptroot") + (type "btrfs") + (dependencies mapped-devices)) + (file-system + (mount-point "/boot/efi") + (device (uuid "15B3-5DE5" 'fat32)) + (type "vfat")) + %base-file-systems))) + +;; (setuid-programs +;; (let ((from (lambda (package file) +;; (setuid-program (program (file-append package file)))))) +;; (cons* (from light "/bin/light") +;; (from mtr "/sbin/mtr") +;; (from network-manager "/bin/nmtui") +;; (from nfs-utils "/sbin/mount.nfs") +;; (from swaylock "/bin/swaylock") +;; %setuid-programs))) + +;; (services (cons* ... +;; (modify-services %desktop-services +;; (gdm-service-type config +;; =;;putabrackethere (gdm-configuration +;; (inherit config) +;; (wayland? #t) +;; (debug? #t)))))) +#+end_src + +* Home +#+begin_src emacs-lisp :tangle ~/dotfiles/guix/home/guix-home.scm +(use-modules + (gnu) + (gnu home) + (gnu home services) + (gnu home services shells) + (gnu home services shepard) + (gnu packages libreoffice) + (gnu packages mail) + (gnu packages pdf)) + +(home-environment + (packages + (append + ;; Tools/Libraries + (list + gcc-toolchain + wget + curl + cmake + make + zip + unzip + libtool + openssl + openssh + gst-plugins-bad + gst-plugins-base + gst-plugins-good + gst-plugins-ugly + gst-libav + wl-clipboard + zsh + gnupg) + ;; Applications + (list + alacritty + nyxt + zathura-pdf-mupdf + thunar + firefox + wl-randr + libreoffice + calibre + mpv + youtube-dl + icedove + keepassxc + nautilus) + ;; Emacs + (list + emacs-vterm + emacs-geiser + emacs-geiser-guile + emacs-doom-modeline + emacs-all-the-icons + emacs-all-the-icons-dired + emacs-general + emacs-which-key + emacs-alert + emacs-helpful + emacs-pinentry + emacs-doom-themes + emacs-evil + emacs-evil-collection + emacs-vertico + emacs-orderless + emacs-consult + emacs-company + emacs-marginalia + emacs-perspective + emacs-dired-rsync + emacs-dired-hacks + emacs-org-bullets + emacs-org-make-toc + emacs-visual-fill-column + emacs-flycheck + emacs-rainbow-mode + emacs-rainbow-delimiters + emacs-magit + emacs-projectile + emacs-lsp-mode + emacs-lsp-ui + emacs-treemacs + emacs-lsp-treemacs + emacs-parinfer + emacs-yasnippet + emacs-pdf-tools) + ;; Languages + (list + ruby + python + guile + sbcl + perl + python-lsp-server + ruby-solargraph) + ;; Aesthetics/Fonts + (list + gnome-tweaks + papirus-icon-theme + arc-theme + font-fira-mono + font-fira-code + font-fira-sans + font-abattis-cantarell + font-google-noto + font-awesome))) + (services + (append + ;; Shell + (list + (service home-zsh-service-type + (home-zsh-configuration + ;; Place all configs to $XDG_CONFIG_HOME/zsh. Makes + ;; ~/.zshenv set ZDOTDIR to $XDG_CONFIG_HOME/zsh + ;; and shell process starts with ~/.config/zsh/.zshenv + (xdg-flavor? #t) + ;; .zshenv + (zshenv + (list + (local-file + (string-append (getenv "HOME") + "/dotfiles/guix/home/files/zsh/zshenv") + "/.config/zsh/.zshenv"))) + ;; .zprofile + (zprofile + (list + (local-file + (string-append (getenv "HOME") + "/dotfiles/guix/home/files/zsh/zprofile") + "/.config/zsh/.zprofile"))) + ;; .zshrc + (zshrc + (list + (local-file + (string-append (getenv "HOME") + "/dotfiles/guix/home/files/zsh/zshrc") + "/.config/zsh/.zshrc")))))) + ;; Files + (list + (simple-service 'sway + home-files-service-type + (list + `(".config/sway/config" + ,(local-file + (string-append (getenv "HOME") + "/dotfiles/guix/home/files/sway/config"))))) + (simple-service 'emacs-config + home-files-service-type + (list + `(".config/emacs/init.el" + ,(local-file + (string-append (getenv "HOME") + "/dotfiles/guix/home/files/emacs/init.el"))))) + + (simple-service 'nyxt-config + home-files-service-type + (list + `(".config/nyxt/init.lisp" + ,(local-file + (string-append (getenv "HOME") + "/dotfiles/guix/home/files/nyxt/init.lisp"))))) + + (simple-service 'dunst-config + home-files-service-type + (list + `(".config/dunst/dunstrc" + ,(local-file + (string-append (getenv "HOME") + "/dotfiles/guix/home/files/dunst/dunstrc"))))) + + (simple-service 'mbsync-config + home-files-service-type + (list + `(".config/mbsync/mbsyncrc" + ,(local-file + (string-append (getenv "HOME") + "/dotfiles/guix/home/files/mbsync/mbsyncrc"))))) + + (simple-service 'alacritty-config + home-files-service-type + (list + `(".config/alacritty/alacritty.yml" + ,(local-file + (string-append (getenv "HOME") + "/dotfiles/guix/home/files/alacritty/alacritty.yml")))))) + + ;; Daemons + (list + (service home-shepard-service-type + (home-shepherd-configuration + (services + (list + (shepard-service + (provision '(emacs)) + (start #~(make-system-constructor "emacs --daemon")) + (stop #~(make-system-constructor "emacsclient -e '(kill-emacs)'"))) + (shepard-service + (provision '(gnome-keyring-daemon)) + (start #~(make-system-contructor "gnome-keyring-daemon --daemonize ")) + (stop #~(make-system-contructor "pkill gnome-keyring-daemon"))))))))))) +#+end_src diff --git a/dotfiles/org/Nyxt.org b/dotfiles/org/Nyxt.org new file mode 100644 index 0000000..b7566aa --- /dev/null +++ b/dotfiles/org/Nyxt.org @@ -0,0 +1,238 @@ +#+TITLE: Nyxt Configuration +#+PROPERTY: header-args:lisp :tangle ~/dotfiles/guix/home/files/nyxt/init.lisp :mkdirp yes + +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 or w3m. + +* Load Quicklisp & Slynk +#+begin_src lisp +(in-package :nyxt) +(load "~/quicklisp/setup.lisp") +(ql:quickload 'slynk) +;; (push #p"~/common-lisp/sly/" asdf:*central-registry*) +;; (asdf:load-system :slynk) +;; (slynk:create-server :port 4008) +#+end_src +* Import Functions +#+begin_src lisp +(load-after-system :slynk (nyxt-init-file "my-slink.lisp")) +;; (load-after-system :slynk "~/.config/nyxt/my-slynk.lisp") +#+end_src + +* Keybindings +#+begin_src lisp +;; Vim-normal mode by default +(define-configuration buffer + ((default-modes (append '(vi-normal-mode) '(blocker-mode) %slot-default%)))) + +;; Vim-insert for prompt-buffer (minibuffer) +(define-configuration prompt-buffer + ((default-modes (append '(vi-insert-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 u" 'copy-username + "C-x p" 'copy-password)))) +#+end_src + +* Theme +#+begin_src lisp +;;Message buffer color configuration +(define-configuration window + ((message-buffer-style + (str:concat + %slot-default% + (cl-css:css + '((body + :background-color "black" + :color "white"))))))) + +;; Mini-buffer style +(define-configuration prompt-buffer + ((style (str:concat + %slot-default% + (cl-css:css + '((body + :background-color "black" + :color "white") + ("#prompt-area" + :background-color "black") + ;; The area you input text in. + ("#input" + :background-color "#EDDDAA") + (".source-name" + :color "black" + :background-color "#125458") + (".source-content" + :background-color "black") + (".source-content th" + :border "1px solid #125458" + :background-color "black") + ;; The currently highlighted option. + ("#selection" + :background-color "#125458" + :color "black") + (.marked :background-color "#8B3A3A" + :font-weight "bold" + :color "white") + (.selected :background-color "black" + :color "white"))))))) + +;; Internal buffer (help, bookmarks, buffers panel) +(define-configuration (internal-buffer panel-buffer) + ((style + (str:concat + %slot-default% + (cl-css:css + '((title + :color "#CD5C5C") + (body + :background-color "black" + :color "lightgray") + (hr + :color "lightgray") + (a + :color "#125458") + (.button + :color "white" + :background-color "#125458"))))))) + +;; Link hints in web mode +(define-configuration nyxt/web-mode:web-mode + ((nyxt/web-mode:highlighted-box-style + (cl-css:css + '((".nyxt-hint.nyxt-highlight-hint" + :background "#125458")))))) + +;; Modeline +(define-configuration status-buffer + ((style (str:concat + %slot-default% + (cl-css:css + ;; Arrows on the left. + '(("#controls" + :border-top "1px solid white" + :background-color "#125458") + ;; To the right of the arrows. + ("#url" + :background-color "black" + :color "white" + :border-top "1px solid white") + ;; Far to the right. + ("#modes" + :background-color "black" + :border-top "1px solid white") + ;; The center segment. + ("#tabs" + :background-color "#125458" + :color "black" + :border-top "1px solid white"))))))) + +;; Overriding dark theme colors +(define-configuration nyxt/style-mode:dark-mode + ((style #.(cl-css:css + '((* + :background-color "black !important" + :background-image "none !important" + :color "white") + (a + :background-color "black !important" + :background-image "none !important" + :color "#556B2F !important")))))) +#+end_src + +* Password Management +Password managers are an essential feature and thankfully Nyxt allows me to integrate KeepassXC which I use regularly. +#+begin_src lisp +(define-configuration password:keepassxc-interface + ((password:password-file "/home/opal/.config/keepassxc/.kdbx-store/opal.kdbx"))) + +(define-configuration buffer + ((password-interface (make-instance 'password:user-keepassxc-interface)))) +#+end_src +* Functions +** Show bookmarks first +I've ripped these functions out of the source code and swapped the sources in order to have bookmarks show up first upon executing set-url or set-url-new-buffer. +#+begin_src lisp +(define-command set-url (&key (prefill-current-url-p t)) + "Set the URL for the current buffer, completing with history." + (let ((history (set-url-history *browser*)) + (actions (list (make-command buffer-load* (suggestion-values) + "Load first selected URL in current buffer and the rest in new buffer(s)." + (mapc (lambda (suggestion) (make-buffer :url (url suggestion))) (rest suggestion-values)) + (buffer-load (url (first suggestion-values)))) + (make-command new-buffer-load (suggestion-values) + "Load URL(s) in new buffer(s)." + (mapc (lambda (suggestion) (make-buffer :url (url suggestion))) (rest suggestion-values)) + (make-buffer-focus :url (url (first suggestion-values))))))) + (pushnew-url-history history (url (current-buffer))) + (prompt + :prompt "Open URL" + :input (if prefill-current-url-p + (render-url (url (current-buffer))) "") + :history history + :sources (list (make-instance 'user-new-url-or-search-source :actions actions) + (make-instance 'bookmark-source :actions actions) + (make-instance 'user-global-history-source :actions actions) + (make-instance 'search-engine-url-source :actions actions))))) + +(define-command set-url-new-buffer (&key (prefill-current-url-p t)) + "Prompt for a URL and set it in a new focused buffer." + (let ((history (set-url-history *browser*)) + (actions (list (make-command new-buffer-load (suggestion-values) + "Load URL(s) in new buffer(s)" + (mapc (lambda (suggestion) (make-buffer :url (url suggestion))) + (rest suggestion-values)) + (make-buffer-focus :url (url (first suggestion-values))))))) + (pushnew-url-history history (url (current-buffer))) + (prompt + :prompt "Open URL in new buffer" + :input (if prefill-current-url-p + (render-url (url (current-buffer))) "") + :history history + :sources (list (make-instance 'user-new-url-or-search-source :actions actions) + (make-instance 'bookmark-source :actions actions) + (make-instance 'user-global-history-source :actions actions) + (make-instance 'search-engine-url-source :actions actions))))) + +#+end_src +* Misc +** Redirection +I would like to keep expanding on these redirection functions so I can have native redirection away from sites that don't respect user privacy. +#+begin_src lisp + +;; I would like to implement redirection, or some extension to handle it for me. +;; 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 +* Testing +#+begin_src lisp +(defun nyxt-init-file (&optional subpath) + "Return SUBPATH relative to `*init-file-path*'. +Return nil if `*init-file-path*' is nil. + +Example: +If we want to load a define-command procedure that lives in ~/path/to/nyxt/config/dir/my-slink.lisp +(load-after-system :slynk (nyxt-init-file \"my-slink.lisp\"))" + (if subpath + (uiop:subpathname* (uiop:pathname-directory-pathname + (expand-path *init-file-path*)) + subpath) + (expand-path *init-file-path*))) +#+end_src diff --git a/dotfiles/org/StumpWM.org b/dotfiles/org/StumpWM.org new file mode 100644 index 0000000..ab951e9 --- /dev/null +++ b/dotfiles/org/StumpWM.org @@ -0,0 +1,181 @@ +#+TITLE: StumpWM Configuration +#+PROPERTY: :tangle ~/Dotfiles/.config/stumpwm/config :mkdirp yes + +In my quest to make my computer a Lisp machine in its own right, I am using StumpWM as my window manager. + +* Init +#+begin_src lisp +;;; -*- mode: lisp; -*- +(in-package :stumpwm) +;; (defvar *sbcl-path* "~/.guix-home/profile/share/common-lisp/sbcl/") + +;; StumpWM Modules +(stumpwm:add-to-load-path "~/.guix-home/profile/share/common-lisp/sbcl/stumpwm-swm-gaps") +(stumpwm:add-to-load-path "~/.guix-home/profile/share/common-lisp/sbcl/stumpwm-ttf-fonts") +(stumpwm:add-to-load-path "~/.guix-home/profile/share/common-lisp/sbcl/stumpwm-stumptray") +(stumpwm:add-to-load-path "~/.guix-home/profile/share/common-lisp/sbcl/stumpwm-kbd-layouts") +#+end_src + +* Environment +** Workspaces +#+begin_src lisp +(run-commands + "gnewbg I" + "gnew II" + "gnewbg III" + "gnewbg IV" + "gnewbg V" + "gnewbg-float F") +#+end_src + +** Set Prefix +#+begin_src lisp +(set-prefix-key (kbd "s-ESC")) +#+end_src + +** Focus window with mouse +#+begin_src lisp +(setf *mouse-focus-policy* :click) +#+end_src + +** Messages +#+begin_src lisp +(setf *message-window-gravity* :center + *input-window-gravity* :center + *window-border-style* :thin + *message-window-padding* 3 + *maxsize-border-width* 2 + *normal-border-width* 2 + *transient-border-width* 2 + stumpwm::*float-window-border* 1 + stumpwm::*float-window-title-height* 1) +#+end_src + +** Command Window +#+begin_src lisp +(setq *input-window-gravity* :center) +#+end_src +* Keyboard +** Load Keyboard Layout Module +#+begin_src lisp +(load-module "kbd-layouts") +#+end_src +** Remap Caps Lock +#+begin_src lisp :tangle yes +(setf kbd-layouts:*caps-lock-behavior* :esc) +#+end_src +** Xmodmap +#+begin_src lisp +(run-shell-command "xmodmap ~/Dotfiles/.config/Xmodmap") +#+end_src + +** Keybinds +#+begin_src lisp +;; Set some super key bindings +(define-key *top-map* (kbd "s-h") "move-focus left") +(define-key *top-map* (kbd "s-l") "move-focus right") +(define-key *top-map* (kbd "s-j") "move-focus down") +(define-key *top-map* (kbd "s-k") "move-focus up") + +(define-key *top-map* (kbd "s-H") "move-window left") +(define-key *top-map* (kbd "s-L") "move-window right") +(define-key *top-map* (kbd "s-J") "move-window down") +(define-key *top-map* (kbd "s-K") "move-window up") + +(define-key *top-map* (kbd "s-f") "fullscreen") +(define-key *top-map* (kbd "s-r") "iresize") +(define-key *top-map* (kbd "s-Q") "delete") +(define-key *top-map* (kbd "s-SPC") "run-shell-command emacsclient -e \"(call-interactively #'app-launcher-run-app)\"") +(define-key *top-map* (kbd "s-L") "run-shell-command slock") +(define-key *top-map* (kbd "s-E") "run-shell-command emacs") +(define-key *top-map* (kbd "s-W") "run-shell-command firefox") + +(define-key *top-map* (kbd "s-TAB") "next-in-frame") +(define-key *top-map* (kbd "s-S-TAB") "prev-in-frame") + +(define-key *top-map* (kbd "s-1") "gselect I") +(define-key *top-map* (kbd "s-2") "gselect II") +(define-key *top-map* (kbd "s-3") "gselect III") +(define-key *top-map* (kbd "s-4") "gselect IV") +(define-key *top-map* (kbd "s-5") "gselect V") + +(define-key *top-map* (kbd "s-!") "gmove I") +(define-key *top-map* (kbd "s-@") "gmove II") +(define-key *top-map* (kbd "s-#") "gmove III") +(define-key *top-map* (kbd "s-$") "gmove IV") +(define-key *top-map* (kbd "s-%") "gmove V") + +;; Brightness and volume +(define-key *top-map* (kbd "XF86MonBrightnessDown") "run-shell-command brightnessctl set 5%-") +(define-key *top-map* (kbd "XF86MonBrightnessUp") "run-shell-command brightnessctl set +5%") +(define-key *top-map* (kbd "XF86AudioLowerVolume") "run-shell-command amixer set Master 3%- unmute") +(define-key *top-map* (kbd "XF86AudioRaiseVolume") "run-shell-command amixer set Master 3%+ unmute") +(define-key *top-map* (kbd "XF86AudioMute") "run-shell-command amixer set Master toggle") +#+end_src + +* UI +** Colors +#+begin_src lisp +;; Set UI colors +(setf *colors* + '("#000000" ;black + "#BF6262" ;red + "#a1bf78" ;green + "#dbb774" ;yellow + "#7D8FA3" ;blue + "#ff99ff" ;magenta + "#53cdbd" ;cyan + "#b7bec9")) ;white + +(setf *default-bg-color* "#e699cc") + +(update-color-map (current-screen)) + +(setf *window-format* "%m%s%50t") +#+end_src +** Gaps +#+begin_src lisp +(load-module "swm-gaps") +(setf swm-gaps:*inner-gaps-size* 3) +(run-commands "toggle-gaps-on") +#+end_src +** Fonts +#+begin_src lisp +Enable TTF fonts +(load-module "ttf-fonts") +(setf xft:*font-dirs* '("/home/opal/.guix-home/profile/share/fonts/")) +(xft:cache-fonts) +(set-font (make-instance 'xft:font :family "Fira Mono" :subfamily "Regular" :size 16)) +#+end_src +** Mode-Line +#+begin_src lisp +(setf *mode-line-background-color* (car *colors*) + *mode-line-foreground-color* (car (last *colors*)) + *mode-line-timeout* 1) +#+end_src + +** System tray +#+begin_src lisp +;; Add the system tray module +(load-module "stumptray") + +(stumptray:stumptray) +#+end_src + +* Applications +#+begin_src lisp +(run-shell-command "emacs") +#+end_src + +* Repl Start +#+begin_src lisp +(require :slynk) +(slynk:create-server :dont-close t) +#+end_src + +* Reference +- https://github.com/daviwil/dotfiles/blob/guix-home/Stump.org +- https://github.com/alezost/stumpwm-config +- https://github.com/herbertjones/my-stumpwm-config +- https://github.com/Phundrak/dotfiles/blob/master/org/config/stumpwm.org + diff --git a/testing/dotfiles b/testing/dotfiles deleted file mode 160000 index 58f30d6..0000000 --- a/testing/dotfiles +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 58f30d679011fb1701c35cc25d04ddff7dceb974