Improve various components

This commit is contained in:
Alex Palaistras 2022-05-23 10:07:38 +01:00
parent 86ab0ac348
commit 6c839aac1a
8 changed files with 34 additions and 42 deletions

View File

@ -1,4 +1,9 @@
# Command-line flags used for all instances of Chromium.
#
# Enable Wayland support.
--enable-features=UseOzonePlatform
--ozone-platform-hint=auto
# Enable GPU acceleration.
--ignore-gpu-blocklist
--enable-gpu-rasterization
--enable-zero-copy

View File

@ -22,8 +22,8 @@
;; Font definitions.
doom-font (font-spec :family "Iosevka" :size 24 :weight 'light)
doom-big-font (font-spec :family "Iosevka" :size 28 :weight 'light)
doom-variable-pitch-font (font-spec :family "IBM Plex Sans" :size 20 :weight 'light)
doom-serif-font (font-spec :family "IBM Plex Serif" :size 20 :weight 'light)
doom-variable-pitch-font (font-spec :family "IBM Plex Sans" :size 24 :weight 'light)
doom-serif-font (font-spec :family "IBM Plex Serif" :size 22 :weight 'light)
doom-unicode-font (font-spec :family "Iosevka" :size 24 :weight 'light)
;; Column used as limit for various modes.
@ -49,14 +49,22 @@
left-margin-width 1
right-margin-width 1)
;; Set colors consistent with Base16-Eighties theme.
(custom-set-faces!
;; Set colors consistent with Base16-Eighties theme.
'(default :background "#2d2d2d")
'(hl-line :background "#323232")
'(mode-line :background "#282828")
'(vertical-border :background "#282828" :foreground "#282828")
'(solaire-default-face :background "#282828")
'(solaire-hl-line-face :background "#323232"))
'(solaire-hl-line-face :background "#323232")
;; Set heading sizes for HTML documents.
'(shr-h1 :height 1.9 :weight bold)
'(shr-h2 :height 1.6 :weight bold)
'(shr-h3 :height 1.4 :weight bold)
'(shr-h4 :height 1.2 :weight bold)
'(shr-h5 :height 1.1 :weight bold)
'(shr-h6 :height 1.1 :weight normal))
;;;
;;; Package-specific configuration.
@ -64,12 +72,12 @@
(setq-default shell-file-name "/usr/bin/fish")
(after! counsel
(setq counsel-rg-base-command "rg -M 240 --with-filename --no-heading --line-number --color never %s || true"))
(after! browse-url
(setq browse-url-browser-function 'eww-browse-url))
(after! dash-docs
(setq-default +lookup-open-url-fn #'eww)
(setq dash-docs-docsets-path "~/.local/share/docsets"))
(setq dash-docs-docsets-path "~/.local/share/docsets"
dash-docs-browser-func #'browse-url))
(after! docker-tramp
(setq docker-tramp-use-names t))
@ -84,15 +92,9 @@
(set-popup-rule! "^\\*eshell\\*" :vslot -5 :size 0.35 :select t :modeline nil :quit nil :ttl nil))
(after! eww
(set-popup-rule! "^\\*eww\\*" :side 'right :select t :quit 'current :slot 0 :width 0.5))
(after! helm
(setq helm-ff-lynx-style-map t
helm-imenu-lynx-style-map t
helm-semantic-lynx-style-map t
helm-occur-use-ioccur-style-keys t)
(define-key helm-map (kbd "<left>") 'helm-previous-source)
(define-key helm-map (kbd "<right>") 'helm-next-source))
(setq shr-use-fonts nil
shr-discard-aria-hidden t)
(set-popup-rule! "^\\*eww\\*" :side 'right :select t :quit 'nil :slot 0 :width 0.5))
(after! (json-mode evil)
(evil-define-key 'normal json-mode-map (kbd "<tab>") 'evil-toggle-fold))
@ -162,6 +164,10 @@
ranger-return-to-ranger t
ranger-hide-cursor t))
(after! shr
(require 'shr-tag-pre-highlight)
(add-to-list 'shr-external-rendering-functions '(pre . shr-tag-pre-highlight)))
(after! sh-script
(setq sh-basic-offset 4))

View File

@ -9,4 +9,5 @@
(package! systemd :pin "b6ae63a236605b1c5e1069f7d3afe06ae32a7bae")
(package! kubernetes :pin "d52ad7dacf17b659060e52d5e3318cafd7946616")
(package! kubernetes-evil :pin "d52ad7dacf17b659060e52d5e3318cafd7946616")
(package! shr-tag-pre-highlight :pin "931c447bc0d6c134ddc9657c664eeee33afbc54d")
(package! eshell-did-you-mean :disable t)

View File

@ -9,3 +9,4 @@ MOZ_ENABLE_WAYLAND=1
# Application themeing.
GTK_THEME=Materia:dark
QT_QPA_PLATFORMTHEME=gnome
QT_FONT_DPI=140

View File

@ -2,7 +2,7 @@
config.load_autoconfig(False)
c.auto_save.session = True
c.completion.open_categories = ["quickmarks", "bookmarks", "history"]
c.content.blocking.method = "adblock"
c.content.blocking.method = "both"
c.content.blocking.adblock.lists = [
"https://raw.githubusercontent.com/uBlockOrigin/uAssets/master/filters/filters.txt",
"https://raw.githubusercontent.com/uBlockOrigin/uAssets/master/filters/badware.txt",

View File

@ -1,6 +1,6 @@
configuration {
dpi: 1;
font: "Iosevka 12";
dpi: 0;
font: "Iosevka 20";
matching: "prefix";
modi: "run,calc";
sidebar-mode: false;

View File

@ -11,7 +11,6 @@
"critical": 15
},
"format": "<span color='#585858' size='smaller'>bat</span> {capacity}%",
"format-icons": ["", "", "", "", ""],
"max-length": 25
},
"clock": {
@ -63,10 +62,6 @@
"format-bluetooth": "<span color='#585858' size='smaller'>btvol</span> {volume}%",
"format-muted": "<span color='#585858' size='smaller'>vol</span> <span color='#ab4642'>{volume}%</span>",
"tooltip-format": "{desc}",
"format-icons": {
"default": ["", "", "", ""],
"headphone": ""
},
"scroll-step": 1,
"on-click": "alacritty -e pulsemixer"
},

View File

@ -1,16 +0,0 @@
#!/usr/bin/env bash
set -euo pipefail
if [[ ! "$(ykman info)" ]]
then
echo "Yubikey not detected."
exit 1
fi
DMENU="dmenu -i -p TOTP"
OPTION="$(ykman oath accounts list | $DMENU)"
CODE=$(ykman oath accounts code -s "$OPTION")
printf "%s" "$CODE" | wl-copy --paste-once
printf "%s" "$CODE" | xclip -selection primary