From 2f328fc0f592482488c23dbbfcf25446053cf157 Mon Sep 17 00:00:00 2001 From: Derek Taylor Date: Fri, 20 Aug 2021 17:09:21 -0500 Subject: [PATCH] Adding org-publish to Doom Emacs. --- .config/alacritty/alacritty.yml | 164 +++++++++++++++++--------------- .config/doom/config.el | 18 ++++ .config/doom/config.org | 23 +++++ .config/nitrogen/bg-saved.cfg | 6 +- .config/nitrogen/nitrogen.cfg | 2 +- .config/spectrwm/spectrwm.conf | 21 ++-- 6 files changed, 140 insertions(+), 94 deletions(-) diff --git a/.config/alacritty/alacritty.yml b/.config/alacritty/alacritty.yml index 8340b77..5062322 100755 --- a/.config/alacritty/alacritty.yml +++ b/.config/alacritty/alacritty.yml @@ -214,82 +214,96 @@ font: # If `true`, bold text is drawn using the bright color variants. draw_bold_text_with_bright_colors: true -# Colors (Tomorrow Night Bright) -colors: - # Default colors - primary: - background: '0x282c34' - foreground: '0xbbc2cf' +# COLOR SCHEMES +schemes: + # Doom One + doom-one: &doom-one + primary: + background: '#282c34' + foreground: '#bbc2cf' + cursor: + text: CellBackground + cursor: '#528bff' + selection: + text: CellForeground + background: '#3e4451' + normal: + black: '#1c1f24' + red: '#ff6c6b' + green: '#98be65' + yellow: '#da8548' + blue: '#51afef' + magenta: '#c678dd' + cyan: '#5699af' + white: '#202328' + bright: + black: '#5b6268' + red: '#da8548' + green: '#4db5bd' + yellow: '#ecbe7b' + blue: '#3071db' # This is 2257a0 in Doom Emacs but I lightened it. + magenta: '#a9a1e1' + cyan: '#46d9ff' + white: '#dfdfdf' - # Bright and dim foreground colors - # - # The dimmed foreground color is calculated automatically if it is not present. - # If the bright foreground color is not set, or `draw_bold_text_with_bright_colors` - # is `false`, the normal foreground color will be used. - #dim_foreground: '0x9a9a9a' - #bright_foreground: '0xffffff' + # Dracula + dracula: &dracula + colors: + primary: + background: '#282a36' + foreground: '#f8f8f2' + cursor: + text: CellBackground + cursor: CellForeground + vi_mode_cursor: + text: CellBackground + cursor: CellForeground + search: + matches: + foreground: '#44475a' + background: '#50fa7b' + focused_match: + foreground: '#44475a' + background: '#ffb86c' + bar: + background: '#282a36' + foreground: '#f8f8f2' + line_indicator: + foreground: None + background: None + selection: + text: CellForeground + background: '#44475a' + normal: + black: '#000000' + red: '#ff5555' + green: '#50fa7b' + yellow: '#f1fa8c' + blue: '#bd93f9' + magenta: '#ff79c6' + cyan: '#8be9fd' + white: '#bfbfbf' + bright: + black: '#4d4d4d' + red: '#ff6e67' + green: '#5af78e' + yellow: '#f4f99d' + blue: '#caa9fa' + magenta: '#ff92d0' + cyan: '#9aedfe' + white: '#e6e6e6' + dim: + black: '#14151b' + red: '#ff2222' + green: '#1ef956' + yellow: '#ebf85b' + blue: '#4d5b86' + magenta: '#ff46b0' + cyan: '#59dffc' + white: '#e6e6d1' - # Cursor colors - # - # Colors which should be used to draw the terminal cursor. If these are unset, - # the cursor color will be the inverse of the cell color. - #cursor: - # text: '0x000000' - # cursor: '0xffffff' - - # Selection colors - # - # Colors which should be used to draw the selection area. If selection - # background is unset, selection color will be the inverse of the cell colors. - # If only text is unset the cell text color will remain the same. - selection: - text: '0xbbc2cf' - - # Normal colors - normal: - black: '0x1c1f24' - red: '0xff6c6b' - green: '0x98be65' - yellow: '0xda8548' - blue: '0x51afef' - magenta: '0xc678dd' - cyan: '0x5699af' - white: '0x202328' - - # Bright colors - bright: - black: '0x5b6268' - red: '0xda8548' - green: '0x4db5bd' - yellow: '0xecbe7b' - blue: '0x3071db' # This is 2257a0 in Doom Emacs but I lightened it. - magenta: '0xa9a1e1' - cyan: '0x46d9ff' - white: '0xdfdfdf' - - # Dim colors - # - # If the dim colors are not set, they will be calculated automatically based - # on the `normal` colors. - #dim: - # black: '0x000000' - # red: '0x8c3336' - # green: '0x7a8530' - # yellow: '0x97822e' - # blue: '0x506d8f' - # magenta: '0x80638e' - # cyan: '0x497e7a' - # white: '0x9a9a9a' - - # Indexed Colors - # - # The indexed colors include all colors from 16 to 256. - # When these are not set, they're filled with sensible defaults. - # - # Example: - # `- { index: 16, color: '0xff00ff' }` - # - #indexed_colors: [] +# Choose ONE color scheme from those available in the above list. +colors: *doom-one # Visual Bell # @@ -315,7 +329,7 @@ colors: #visual_bell: # animation: EaseOutExpo # duration: 0 -# color: '0xffffff' +# color: '#ffffff' # Background opacity # diff --git a/.config/doom/config.el b/.config/doom/config.el index a7ff0bd..38782d0 100644 --- a/.config/doom/config.el +++ b/.config/doom/config.el @@ -433,6 +433,24 @@ (use-package ox-man) (use-package ox-gemini) +(use-package ox-publish) + +(setq org-publish-project-alist + '(("org-notes" + :base-directory "~/Org/website" + :base-extension "org" + :publishing-directory "~/public_html/" + :recursive t + :publishing-function org-html-publish-to-html + :headline-levels 4 ; Just the default for this project. + :auto-preamble t) + ("org-static" + :base-directory "~/Org/website" + :base-extension "css\\|js\\|png\\|jpg\\|gif\\|pdf\\|mp3\\|ogg\\|swf" + :publishing-directory "~/public_html/" + :recursive t + :publishing-function org-publish-attachment) + )) (use-package! password-store) diff --git a/.config/doom/config.org b/.config/doom/config.org index 50f3268..0c5785c 100644 --- a/.config/doom/config.org +++ b/.config/doom/config.org @@ -713,8 +713,31 @@ We need ox-man for "Org eXporting" to manpage format. #+BEGIN_SRC emacs-lisp (use-package ox-man) (use-package ox-gemini) +(use-package ox-publish) #+END_SRC +Org-publish +#+begin_src emacs-lisp + +(setq org-publish-project-alist + '(("org-notes" + :base-directory "~/Org/website" + :base-extension "org" + :publishing-directory "~/public_html/" + :recursive t + :publishing-function org-html-publish-to-html + :headline-levels 4 ; Just the default for this project. + :auto-preamble t) + ("org-static" + :base-directory "~/Org/website" + :base-extension "css\\|js\\|png\\|jpg\\|gif\\|pdf\\|mp3\\|ogg\\|swf" + :publishing-directory "~/public_html/" + :recursive t + :publishing-function org-publish-attachment) + )) + +#+end_src + * PASSWORD STORE Uses the standard Unix password store "pass". diff --git a/.config/nitrogen/bg-saved.cfg b/.config/nitrogen/bg-saved.cfg index c94f977..30408e6 100644 --- a/.config/nitrogen/bg-saved.cfg +++ b/.config/nitrogen/bg-saved.cfg @@ -1,14 +1,14 @@ [xin_1] -file=/home/dt/wallpapers/wp4470198.jpg +file=/home/dt/wallpapers/youtube-header-01.png mode=0 bgcolor=#000000 [xin_0] -file=/home/dt/wallpapers/wp4470198.jpg +file=/home/dt/wallpapers/youtube-header-01.png mode=0 bgcolor=#000000 [xin_2] -file=/home/dt/wallpapers/wp4470198.jpg +file=/home/dt/wallpapers/youtube-header-01.png mode=0 bgcolor=#000000 diff --git a/.config/nitrogen/nitrogen.cfg b/.config/nitrogen/nitrogen.cfg index 119ed4b..8af6a8f 100644 --- a/.config/nitrogen/nitrogen.cfg +++ b/.config/nitrogen/nitrogen.cfg @@ -1,5 +1,5 @@ [geometry] -posx=16 +posx=1936 posy=40 sizex=1884 sizey=1020 diff --git a/.config/spectrwm/spectrwm.conf b/.config/spectrwm/spectrwm.conf index df4025a..b9f5e2d 100644 --- a/.config/spectrwm/spectrwm.conf +++ b/.config/spectrwm/spectrwm.conf @@ -30,9 +30,9 @@ tile_gap = 6 # disable_border = 1 # Bar Settings -bar_action = ~/baraction.sh +bar_action = /home/dt/baraction.sh bar_action_expand = 1 -bar_enabled = 1 +bar_enabled = 0 bar_border_width = 1 bar_border[1] = rgb:28/2a/36 bar_border_unfocus[1] = rgb:28/2a/36 @@ -268,23 +268,14 @@ bind[dmenu_run] = MOD+Shift+Return ### Dmenu scripts launched with ALT + CTRL + KEY ### #################################################### -program[dmenu-edit-configs] = ./.dmenu/dmenu-edit-configs.sh -bind[dmenu-edit-configs] = MOD1+Control+e - -program[dmenu-sysmon] = ./.dmenu/dmenu-sysmon.sh -bind[dmenu-sysmon] = MOD1+Control+m +program[dm-confedit] = dm-confedit +bind[dm-confedit] = MOD1+Control+e program[passmenu] = passmenu bind[passmenu] = MOD1+Control+p -program[dmenu-reddio] = ./.dmenu/dmenu-reddio.sh -bind[dmenu-reddio] = MOD1+Control+r - -program[dmenu-surfraw] = ./.dmenu/dmenu-surfraw.sh -bind[dmenu-surfraw] = MOD1+Control+s - -program[dmenu-scrot] = ./.dmenu/dmenu-scrot.sh -bind[dmenu-scrot] = MOD1+Control+i +program[dm-maim] = dm-maim +bind[dm-maim] = MOD1+Control+i #################################################### ### TUI programs launched with SUPER + ALT + KEY ###