From 19ca8a0e8a2c4bf3a37822ea4fccf014de6d1e0a Mon Sep 17 00:00:00 2001 From: minhtrannhat Date: Sun, 28 Nov 2021 15:40:48 -0500 Subject: [PATCH] November 2021 changes --- bash/.bashrc | 4 +- doom-emacs/.doom.d/config.el | 6 +- doom-emacs/.doom.d/init.el | 3 +- fish/.config/fish/config.fish | 10 +- lvim/.config/lvim/config.lua | 24 +- lvim/.config/lvim/ignore | 0 lvim/.config/lvim/plugin/packer_compiled.lua | 329 +++++++++++++++++++ newsboat/.newsboat/cache.db | Bin 0 -> 1413120 bytes sway/.config/sway/config | 6 +- waybar/.config/waybar/config | 5 +- wlogout/.config/wlogout/layout | 10 +- 11 files changed, 365 insertions(+), 32 deletions(-) create mode 100644 lvim/.config/lvim/ignore create mode 100644 lvim/.config/lvim/plugin/packer_compiled.lua create mode 100644 newsboat/.newsboat/cache.db diff --git a/bash/.bashrc b/bash/.bashrc index 26dc93a..40a7cf7 100644 --- a/bash/.bashrc +++ b/bash/.bashrc @@ -25,8 +25,8 @@ export GTK_IM_MODULE=ibus export XMODIFIERS=@im=ibus export QT_IM_MODULE=ibus +alias mpv="mpv --hwdec=vaapi" + export GPG_TYY=$(tty) -alias dotfiles='/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME' -source "$HOME/.cargo/env" eval "$(starship init bash)" diff --git a/doom-emacs/.doom.d/config.el b/doom-emacs/.doom.d/config.el index 27ccdb9..0a460ce 100644 --- a/doom-emacs/.doom.d/config.el +++ b/doom-emacs/.doom.d/config.el @@ -28,7 +28,7 @@ (let* ((light-theme 'doom-nord-light) (dark-theme 'doom-nord) (start-time-light-theme 6) - (end-time-light-theme 18) + (end-time-light-theme 16) (hour (string-to-number (substring (current-time-string) 11 13))) (next-theme (if (member hour (number-sequence start-time-light-theme end-time-light-theme)) light-theme dark-theme))) @@ -43,6 +43,7 @@ (setq doom-themes-treemacs-theme "doom-colors") (setq org-directory "~/org/") +(add-hook! 'elfeed-search-mode-hook 'elfeed-update) (setq display-line-numbers-type 'relative) @@ -104,9 +105,8 @@ (add-hook 'after-change-major-mode-hook #'doom-modeline-conditional-buffer-encoding) (after! company - (setq company-idle-delay 0.5 + (setq company-idle-delay 0 company-minimum-prefix-length 2) - (setq company-show-numbers t) (add-hook 'evil-normal-state-entry-hook #'company-abort)) ;; make aborting less annoying. (setq-default history-length 1000) diff --git a/doom-emacs/.doom.d/init.el b/doom-emacs/.doom.d/init.el index 76af9ed..3ae271d 100644 --- a/doom-emacs/.doom.d/init.el +++ b/doom-emacs/.doom.d/init.el @@ -1,5 +1,4 @@ ;;; 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 @@ -34,7 +33,7 @@ hl-todo ; highlight TODO/FIXME/NOTE/DEPRECATED/HACK/REVIEW ;;hydra indent-guides ; highlighted indent columns - (ligatures +extra) ; ligatures and symbols to make your code pretty again + 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 diff --git a/fish/.config/fish/config.fish b/fish/.config/fish/config.fish index ef669ae..d24eb69 100644 --- a/fish/.config/fish/config.fish +++ b/fish/.config/fish/config.fish @@ -7,6 +7,7 @@ alias nnn 'nnn -e' alias mpv 'mpv --hwdec=vaapi' alias icat 'kitty +kitten icat' alias magit 'emacs -nw --eval "(magit-status)"' +alias qutebrowser 'qutebrowser --qt-flag ignore-gpu-blocklist --qt-flag enable-gpu-rasterization --qt-flag enable-native-gpu-memory-buffers --qt-flag num-raster-threads=4' export GPG_TTY=(tty) @@ -14,8 +15,13 @@ set -gx MOZ_WEBRENDER 1 set -gx XDG_SESSION_TYPE wayland set -gx XDG_CURRENT_DESKTOP sway set -gx MOZ_ENABLE_WAYLAND 1 +set -gx QT_AUTO_SCREEN_SCALE_FACTOR 1 -set -gx EDITOR nvim +set -Ux GTK_IM_MODULE ibus +set -Ux QT_IM_MODULE ibus +set -Ux XMODIFIERS @im=ibus + +set -gx EDITOR lvim set -gx NVIM_LISTEN_ADDRESS /tmp/nvimsocket set -gx LC_ALL en_US.UTF-8 @@ -23,5 +29,3 @@ set -gx LC_ALL en_US.UTF-8 set -x PATH /usr/libexec /usr/local/bin /home/minhradz/.cargo/bin /home/minhradz/.local/bin $PATH starship init fish | source - -eval (direnv hook fish) diff --git a/lvim/.config/lvim/config.lua b/lvim/.config/lvim/config.lua index 92c501b..ab073dd 100644 --- a/lvim/.config/lvim/config.lua +++ b/lvim/.config/lvim/config.lua @@ -70,11 +70,6 @@ lvim.plugins = { { "tpope/vim-fugitive" }, } --- Autocommands (https://neovim.io/doc/user/autocmd.html) --- lvim.autocommands.custom_groups = { --- { "BufWinEnter", "*.lua", "setlocal ts=8 sw=8" }, --- } - -- The setup config table shows all available config options with their default values: require("presence"):setup({ -- General options @@ -89,11 +84,16 @@ require("presence"):setup({ buttons = true, -- Configure Rich Presence button(s), either a boolean to enable/disable, a static table (`{{ label = "