diff --git a/.config/mimeapps.list b/.config/mimeapps.list index 282bb65..65518fb 100644 --- a/.config/mimeapps.list +++ b/.config/mimeapps.list @@ -9,7 +9,9 @@ x-scheme-handler/tg=userapp-Telegram Desktop-7PVWF1.desktop image/png=feh.desktop image/jpg=feh.desktop image/jpeg=feh.desktop +application/pdf=zathura-wrapper.desktop [Added Associations] x-scheme-handler/tg=userapp-Telegram Desktop-7PVWF1.desktop; +application/pdf=zathura-wrapper.desktop # MIME:1 ends here diff --git a/.config/zathura/zathurarc b/.config/zathura/zathurarc index 97e2728..f8a2acb 100644 --- a/.config/zathura/zathurarc +++ b/.config/zathura/zathurarc @@ -1,11 +1,27 @@ # [[file:../../Desktop.org::*Zathura][Zathura:1]] set abort-clear-search false -set show-scrollbars true -set show-h-scrollbar true -set show-v-scrollbar true +set guioptions cs set selection-clipboard clipboard -set recolor-lightcolor "#292d3e" set recolor true map set recolor false map set recolor true + +set recolor-lightcolor "#292d3e" + +set completion-bg "#292d3e" +set completion-fg "#d0d0d0" +set completion-group-bg "#434758" +set completion-group-fg "#d0d0d0" +set completion-highlight-bg "#c792ea" +set completion-highlight-fg "#292d3e" + +set inputbar-bg "#292d3e" +set inputbar-fg "#e1acff" +set statusbar-bg "#292d3e" +set statusbar-fg "#e1acff" + +set notification-error-bg "#f07178" +set notification-error-fg "#000000" +set notification-warning-bg "#ffcb6b" +set notification-warning-fg "#000000" # Zathura:1 ends here diff --git a/Desktop.org b/Desktop.org index d0e8aa9..d950b8e 100644 --- a/Desktop.org +++ b/Desktop.org @@ -150,6 +150,7 @@ Most of the colors are from the Palenight theme. Colorcodes are taken from [[htt | light-magenta | color13 | #e1acff | | light-cyan | color14 | #a3f7ff | | light-white | color15 | #ffffff | +| color-fg | | #000000 | The table above is the only source of truth for colors in this config. @@ -181,14 +182,14 @@ However, I'd rather use the =Xresources= file wherever possible. Here is the cod #+NAME: get-xresources #+begin_src emacs-lisp :var table=colors -(apply - #'concat - (mapcar - (lambda (elem) - (concat "*" (nth 1 elem) ": " (nth 2 elem) "\n")) - (seq-filter - (lambda (elem) (nth 1 elem)) - table))) +(mapconcat + (lambda (elem) + (concat "*" (nth 1 elem) ": " (nth 2 elem))) + (seq-filter + (lambda (elem) (and (nth 1 elem) + (not (string-empty-p (nth 1 elem))))) + table) + "\n") #+end_src #+begin_src conf-xdefaults :noweb yes :tangle ~/.Xresources @@ -249,9 +250,11 @@ x-scheme-handler/tg=userapp-Telegram Desktop-7PVWF1.desktop image/png=feh.desktop image/jpg=feh.desktop image/jpeg=feh.desktop +application/pdf=zathura-wrapper.desktop [Added Associations] x-scheme-handler/tg=userapp-Telegram Desktop-7PVWF1.desktop; +application/pdf=zathura-wrapper.desktop #+end_src ** Device-specific settings | Guix dependency | Description | @@ -1543,12 +1546,13 @@ First, let's use xrdb colors in polybar. To avoid code duplication, I generate t #+NAME: get-polybar-colors #+begin_src emacs-lisp :var table=colors :tangle no (mapconcat - (lambda (elem) - (format "%s = ${xrdb:%s}" (nth 0 elem) (nth 1 elem))) - (seq-filter - (lambda (elem) (nth 1 elem)) - table) - "\n") + (lambda (elem) + (format "%s = ${xrdb:%s}" (nth 0 elem) (nth 1 elem))) + (seq-filter + (lambda (elem) (when-let (name (nth 1 elem)) + (not (string-empty-p name)))) + table) + "\n") #+end_src #+begin_src conf-windows :noweb yes @@ -1661,9 +1665,7 @@ Now, we need to generate a set of glyphs. The code below generates all the requi (lambda (elt) (not (or (member (nth 1 elt) exclude) - (not (string-equal (nth 3 elt) "+")))))) - ;; (seq-map (lambda (elt) (nth 1 elt))) - ))) + (not (string-equal (nth 3 elt) "+"))))))))) (seq-uniq))) (color-changes nil)) (dolist (e extra) @@ -2298,6 +2300,7 @@ interval = 100000 *** i3 Show i3wm workspaces + #+begin_src conf-windows [module/i3] type = internal/i3 @@ -3105,14 +3108,30 @@ wintypes: #+begin_src conf-space :noweb yes :tangle .config/zathura/zathurarc set abort-clear-search false -set show-scrollbars true -set show-h-scrollbar true -set show-v-scrollbar true +set guioptions cs set selection-clipboard clipboard -set recolor-lightcolor <> set recolor true map set recolor false map set recolor true + +set recolor-lightcolor <> + +set completion-bg <> +set completion-fg <> +set completion-group-bg <> +set completion-group-fg <> +set completion-highlight-bg <> +set completion-highlight-fg <> + +set inputbar-bg <> +set inputbar-fg <> +set statusbar-bg <> +set statusbar-fg <> + +set notification-error-bg <> +set notification-error-fg <> +set notification-warning-bg <> +set notification-warning-fg <> #+end_src For some reason zathura doesn't pick up the plugin directory, so I make a wrapper that sets the directory up: @@ -3128,7 +3147,7 @@ Name=Zathura Exec=/home/pavel/bin/zathura-wrapper %U #+end_src -Add the following like to the =mimeapps.list= +Add the following line to the =mimeapps.list= #+begin_example application/pdf=zathura-wrapper.desktop #+end_example