Compare commits
11
Commits
f99ad75730
...
ab1bbc6577
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ab1bbc6577 | ||
|
|
64130434ef | ||
|
|
fadfdd1963 | ||
|
|
b87e49711d | ||
|
|
72cd4b94f6 | ||
|
|
a2ffd2f870 | ||
|
|
7cc8839152 | ||
|
|
e1d1609968 | ||
|
|
cfd0c06fbf | ||
|
|
91e22af9d6 | ||
|
|
385c19a3cb |
@@ -35,7 +35,7 @@ bspc config pointer_modifier mod4
|
|||||||
bspc config external_rules_command "$HOME/.config/bspwm/rules"
|
bspc config external_rules_command "$HOME/.config/bspwm/rules"
|
||||||
|
|
||||||
# Reset all rules
|
# Reset all rules
|
||||||
bspc rule -r *
|
bspc rule -r \*
|
||||||
|
|
||||||
# Open program on specific desktop
|
# Open program on specific desktop
|
||||||
bspc rule -a firefox desktop="$WS1" locked=on
|
bspc rule -a firefox desktop="$WS1" locked=on
|
||||||
@@ -48,6 +48,7 @@ bspc rule -a krita desktop="$WS5" follow=on
|
|||||||
bspc rule -a Arandr state=floating
|
bspc rule -a Arandr state=floating
|
||||||
bspc rule -a Emacs state=tiled
|
bspc rule -a Emacs state=tiled
|
||||||
bspc rule -a feh state=floating
|
bspc rule -a feh state=floating
|
||||||
|
bspc rule -a firefox:Browser state=floating
|
||||||
bspc rule -a firefox:Places state=floating
|
bspc rule -a firefox:Places state=floating
|
||||||
bspc rule -a Inferno state=floating
|
bspc rule -a Inferno state=floating
|
||||||
bspc rule -a Lxappearance state=floating
|
bspc rule -a Lxappearance state=floating
|
||||||
|
|||||||
+167
-4
@@ -37,6 +37,7 @@
|
|||||||
- [[#programming-integration][Programming Integration]]
|
- [[#programming-integration][Programming Integration]]
|
||||||
- [[#lsp][LSP]]
|
- [[#lsp][LSP]]
|
||||||
- [[#dap][DAP]]
|
- [[#dap][DAP]]
|
||||||
|
- [[#web-mode][Web Mode]]
|
||||||
- [[#programming-languages][Programming Languages]]
|
- [[#programming-languages][Programming Languages]]
|
||||||
- [[#cc][C/C++]]
|
- [[#cc][C/C++]]
|
||||||
- [[#lua][Lua]]
|
- [[#lua][Lua]]
|
||||||
@@ -44,8 +45,10 @@
|
|||||||
- [[#cmake][CMake]]
|
- [[#cmake][CMake]]
|
||||||
- [[#glsl][GLSL]]
|
- [[#glsl][GLSL]]
|
||||||
- [[#yaml][YAML]]
|
- [[#yaml][YAML]]
|
||||||
|
- [[#kotlin][Kotlin]]
|
||||||
- [[#rss][RSS]]
|
- [[#rss][RSS]]
|
||||||
- [[#git][Git]]
|
- [[#git][Git]]
|
||||||
|
- [[#mail][Mail]]
|
||||||
- [[#prettify][Prettify]]
|
- [[#prettify][Prettify]]
|
||||||
- [[#general][General]]
|
- [[#general][General]]
|
||||||
- [[#buffers][Buffers]]
|
- [[#buffers][Buffers]]
|
||||||
@@ -363,6 +366,7 @@ Places buffers as tabs in a bar at the top.
|
|||||||
((eshell-mode
|
((eshell-mode
|
||||||
help-mode
|
help-mode
|
||||||
helpful-mode
|
helpful-mode
|
||||||
|
mu4e-view-mode
|
||||||
neotree-mode
|
neotree-mode
|
||||||
org-roam-backlinks-mode
|
org-roam-backlinks-mode
|
||||||
shell-mode)
|
shell-mode)
|
||||||
@@ -623,7 +627,9 @@ Language Server Protocol.
|
|||||||
c++-mode ; clangd
|
c++-mode ; clangd
|
||||||
lua-mode ; lua-language-server
|
lua-mode ; lua-language-server
|
||||||
php-mode ; nodejs-intelephense
|
php-mode ; nodejs-intelephense
|
||||||
latex-mode) ; texlab
|
latex-mode ; texlab
|
||||||
|
kotlin-mode ; kotlin-language-server
|
||||||
|
web-mode)
|
||||||
. lsp-deferred)
|
. lsp-deferred)
|
||||||
:config
|
:config
|
||||||
(setq lsp-auto-guess-root t)
|
(setq lsp-auto-guess-root t)
|
||||||
@@ -692,10 +698,24 @@ Debug Adapter Protocol.
|
|||||||
(make-directory dap-utils-extension-path t)))
|
(make-directory dap-utils-extension-path t)))
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
|
**** Web Mode
|
||||||
|
|
||||||
|
#+BEGIN_SRC emacs-lisp
|
||||||
|
(use-package web-mode
|
||||||
|
:defer t)
|
||||||
|
#+END_SRC
|
||||||
|
|
||||||
*** Programming Languages
|
*** Programming Languages
|
||||||
**** C/C++
|
**** C/C++
|
||||||
|
|
||||||
#+BEGIN_SRC emacs-lisp
|
#+BEGIN_SRC emacs-lisp
|
||||||
|
(use-package c++-mode
|
||||||
|
:ensure nil
|
||||||
|
:defer t
|
||||||
|
:hook
|
||||||
|
(c++-mode . (lambda ()
|
||||||
|
(setq lsp-ui-doc-enable t))))
|
||||||
|
|
||||||
(use-package company-c-headers
|
(use-package company-c-headers
|
||||||
:after company
|
:after company
|
||||||
:config (push 'company-c-headers company-backends))
|
:config (push 'company-c-headers company-backends))
|
||||||
@@ -751,6 +771,13 @@ Debug Adapter Protocol.
|
|||||||
:defer t)
|
:defer t)
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
|
**** Kotlin
|
||||||
|
|
||||||
|
#+BEGIN_SRC emacs-lisp
|
||||||
|
(use-package kotlin-mode
|
||||||
|
:defer t)
|
||||||
|
#+END_SRC
|
||||||
|
|
||||||
*** RSS
|
*** RSS
|
||||||
|
|
||||||
#+BEGIN_SRC emacs-lisp
|
#+BEGIN_SRC emacs-lisp
|
||||||
@@ -799,6 +826,117 @@ Debug Adapter Protocol.
|
|||||||
(put 'magit-log-select-quit :advertised-binding [?\M-k]))
|
(put 'magit-log-select-quit :advertised-binding [?\M-k]))
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
|
*** Mail
|
||||||
|
|
||||||
|
#+BEGIN_SRC emacs-lisp
|
||||||
|
(use-package mu4e
|
||||||
|
:ensure nil
|
||||||
|
:load-path "/usr/share/emacs/site-lisp/mu4e"
|
||||||
|
:defer 5
|
||||||
|
:config
|
||||||
|
(setq auth-sources `(,(concat dot-etc-dir "/authinfo.gpg")))
|
||||||
|
(setq user-full-name (dot/mail-auth-get-field "fullname" :user))
|
||||||
|
(setq user-mail-address (dot/mail-auth-get-field "info" :user))
|
||||||
|
(setq mail-user-agent 'mu4e-user-agent)
|
||||||
|
|
||||||
|
;; Headers
|
||||||
|
(setq mu4e-headers-date-format "%d-%m-%Y")
|
||||||
|
(setq mu4e-headers-time-format "%I:%M %p")
|
||||||
|
(setq mu4e-headers-long-date-format "%d-%m-%Y %I:%M:%S %p")
|
||||||
|
|
||||||
|
;; Syncing
|
||||||
|
(setq mu4e-get-mail-command (concat "mbsync -a -c " (getenv "XDG_CONFIG_HOME") "/isync/mbsyncrc"))
|
||||||
|
(setq mu4e-update-interval (* 15 60)) ; 15 minutes
|
||||||
|
(setq mu4e-maildir "~/mail")
|
||||||
|
(setq mu4e-attachment-dir "~/downloads")
|
||||||
|
|
||||||
|
;; Avoid mail syncing issues when using mbsync
|
||||||
|
(setq mu4e-change-filenames-when-moving t)
|
||||||
|
|
||||||
|
;; Misc
|
||||||
|
(setq mu4e-completing-read-function 'completing-read)
|
||||||
|
(setq mu4e-confirm-quit nil)
|
||||||
|
(setq mu4e-display-update-status-in-modeline t)
|
||||||
|
(setq mu4e-hide-index-messages t)
|
||||||
|
(setq mu4e-sent-messages-behavior 'sent)
|
||||||
|
(setq mu4e-view-show-addresses t)
|
||||||
|
(setq mu4e-view-show-images nil)
|
||||||
|
|
||||||
|
;; Compose
|
||||||
|
(setq mu4e-compose-context-policy 'ask)
|
||||||
|
(setq mu4e-compose-dont-reply-to-self t)
|
||||||
|
(setq mu4e-compose-signature (concat (dot/mail-auth-get-field "fullname" :user) "\nriyyi.com\n"))
|
||||||
|
(setq mu4e-compose-signature-auto-include t)
|
||||||
|
|
||||||
|
;; Contexts
|
||||||
|
(setq mu4e-context-policy 'pick-first)
|
||||||
|
(setq mu4e-contexts
|
||||||
|
`(,(make-mu4e-context
|
||||||
|
:name "info"
|
||||||
|
:match-func (lambda (msg)
|
||||||
|
(when msg
|
||||||
|
(string= (mu4e-message-field msg :maildir) "/info")))
|
||||||
|
:vars `((user-mail-address . ,(dot/mail-auth-get-field "info" :user))
|
||||||
|
(mu4e-drafts-folder . "/info/Drafts")
|
||||||
|
(mu4e-refile-folder . "/info/Archive")
|
||||||
|
(mu4e-sent-folder . "/info/Sent")
|
||||||
|
(mu4e-trash-folder . "/info/Trash")))
|
||||||
|
,(make-mu4e-context
|
||||||
|
:name "private"
|
||||||
|
:match-func (lambda (msg)
|
||||||
|
(when msg
|
||||||
|
(string= (mu4e-message-field msg :maildir) "/private")))
|
||||||
|
:vars `((user-mail-address . ,(dot/mail-auth-get-field "private" :user))
|
||||||
|
(mu4e-drafts-folder . "/private/Drafts")
|
||||||
|
(mu4e-refile-folder . "/private/Archive")
|
||||||
|
(mu4e-sent-folder . "/private/Sent")
|
||||||
|
(mu4e-trash-folder . "/private/Trash")))
|
||||||
|
))
|
||||||
|
|
||||||
|
;; Do not mark messages as IMAP-deleted, just move them to the Trash directory!
|
||||||
|
;; https://github.com/djcb/mu/issues/1136#issuecomment-486177435
|
||||||
|
(setf (alist-get 'trash mu4e-marks)
|
||||||
|
(list :char '("d" . "▼")
|
||||||
|
:prompt "dtrash"
|
||||||
|
:dyn-target (lambda (target msg)
|
||||||
|
(mu4e-get-trash-folder msg))
|
||||||
|
:action (lambda (docid msg target)
|
||||||
|
(mu4e~proc-move docid (mu4e~mark-check-target target) "-N"))))
|
||||||
|
|
||||||
|
;; Start mu4e in the background for mail syncing
|
||||||
|
(mu4e t))
|
||||||
|
|
||||||
|
(use-package mu4e-alert
|
||||||
|
:after mu4e
|
||||||
|
:config
|
||||||
|
(mu4e-alert-set-default-style 'libnotify)
|
||||||
|
(mu4e-alert-enable-notifications))
|
||||||
|
|
||||||
|
(use-package smtpmail ; built-in
|
||||||
|
:init (setq smtpmail-default-smtp-server "mail.riyyi.com")
|
||||||
|
:config
|
||||||
|
(setq smtpmail-smtp-server "mail.riyyi.com")
|
||||||
|
(setq smtpmail-local-domain "riyyi.com")
|
||||||
|
(setq smtpmail-smtp-service 587)
|
||||||
|
(setq smtpmail-stream-type 'starttls)
|
||||||
|
(setq smtpmail-queue-mail nil))
|
||||||
|
|
||||||
|
(use-package sendmail ; built-in
|
||||||
|
:config (setq send-mail-function 'smtpmail-send-it))
|
||||||
|
|
||||||
|
(use-package message ; built-in
|
||||||
|
:config
|
||||||
|
(setq message-kill-buffer-on-exit t)
|
||||||
|
(setq message-send-mail-function 'smtpmail-send-it))
|
||||||
|
#+END_SRC
|
||||||
|
|
||||||
|
Sources:
|
||||||
|
- https://rakhim.org/fastmail-setup-with-emacs-mu4e-and-mbsync-on-macos/
|
||||||
|
- https://wiki.archlinux.org/title/Isync
|
||||||
|
- https://gitlab.com/protesilaos/dotfiles/-/blob/master/mbsync/.mbsyncrc
|
||||||
|
- https://gitlab.com/protesilaos/dotfiles/-/blob/master/emacs/.emacs.d/prot-lisp/prot-mail.el
|
||||||
|
- https://gitlab.com/protesilaos/dotfiles/-/blob/master/emacs/.emacs.d/prot-lisp/prot-mu4e-deprecated-conf.el
|
||||||
|
|
||||||
*** Prettify
|
*** Prettify
|
||||||
|
|
||||||
#+BEGIN_SRC emacs-lisp
|
#+BEGIN_SRC emacs-lisp
|
||||||
@@ -1215,6 +1353,13 @@ Functions that only use built-in Emacs functionality.
|
|||||||
(save-excursion (insert (make-string diff ?\ )))
|
(save-excursion (insert (make-string diff ?\ )))
|
||||||
(user-error "Column should be higher than point")))))
|
(user-error "Column should be higher than point")))))
|
||||||
|
|
||||||
|
(defun dot/mail-auth-get-field (host prop)
|
||||||
|
"Find PROP in `auth-sources' for HOST entry."
|
||||||
|
(when-let ((source (auth-source-search :max 1 :host host)))
|
||||||
|
(if (eq prop :secret)
|
||||||
|
(funcall (plist-get (car source) prop))
|
||||||
|
(plist-get (flatten-list source) prop))))
|
||||||
|
|
||||||
(defun dot/reload-theme ()
|
(defun dot/reload-theme ()
|
||||||
"Reload custom theme."
|
"Reload custom theme."
|
||||||
(interactive)
|
(interactive)
|
||||||
@@ -1629,7 +1774,18 @@ Evil command aliases.
|
|||||||
(add-hook 'c-mode-hook (lambda () (c-toggle-comment-style 0)))
|
(add-hook 'c-mode-hook (lambda () (c-toggle-comment-style 0)))
|
||||||
|
|
||||||
;; LaTeX, set correct tab mode
|
;; LaTeX, set correct tab mode
|
||||||
(add-hook 'latex-mode-hook (lambda () (setq indent-tabs-mode t)))
|
(add-hook 'latex-mode-hook (lambda ()
|
||||||
|
(setq indent-tabs-mode t)
|
||||||
|
(setq tab-width 4)))
|
||||||
|
(add-hook 'LaTeX-mode-hook (lambda ()
|
||||||
|
(setq indent-tabs-mode t)
|
||||||
|
(setq tab-width 4)))
|
||||||
|
|
||||||
|
;; Python
|
||||||
|
(add-hook 'python-mode-hook (lambda ()
|
||||||
|
(setq indent-tabs-mode t)
|
||||||
|
(setq python-indent-offset 4)
|
||||||
|
(setq tab-width 4)))
|
||||||
|
|
||||||
;; Disable line numbers
|
;; Disable line numbers
|
||||||
(add-hook 'Custom-mode-hook 'dot/hook-disable-line-numbers)
|
(add-hook 'Custom-mode-hook 'dot/hook-disable-line-numbers)
|
||||||
@@ -1885,6 +2041,13 @@ Set keybinds to functionality of installed packages.
|
|||||||
"<down>" #'selectrum-next-candidate
|
"<down>" #'selectrum-next-candidate
|
||||||
)
|
)
|
||||||
|
|
||||||
|
;; Mu4e
|
||||||
|
(general-def 'normal mu4e-compose-mode-map
|
||||||
|
"q" #'mu4e-message-kill-buffer
|
||||||
|
"M-c" #'message-send-and-exit
|
||||||
|
"M-k" #'mu4e-message-kill-buffer
|
||||||
|
)
|
||||||
|
|
||||||
;; Neotree
|
;; Neotree
|
||||||
(general-def 'normal neotree-mode-map
|
(general-def 'normal neotree-mode-map
|
||||||
"RET" 'neotree-enter
|
"RET" 'neotree-enter
|
||||||
@@ -2156,8 +2319,8 @@ https://github.com/suyashbire1/emacs.d/blob/master/init.el
|
|||||||
|
|
||||||
"s" '(:ignore t :which-key "tree/subtree")
|
"s" '(:ignore t :which-key "tree/subtree")
|
||||||
"s h" '(org-promote-subtree :which-key "Org promote subtree")
|
"s h" '(org-promote-subtree :which-key "Org promote subtree")
|
||||||
"s j" '(org-move-subree-down :which-key "Org move subtree down")
|
"s j" '(org-metadown :which-key "Org move subtree down")
|
||||||
"s k" '(org-move-subtree-up :which-key "Org move subtree up")
|
"s k" '(org-metaup :which-key "Org move subtree up")
|
||||||
"s l" '(org-demote-subtree :which-key "Org demote subtree")
|
"s l" '(org-demote-subtree :which-key "Org demote subtree")
|
||||||
"s <left>" '(org-promote-subtree :which-key "Org promote subtree")
|
"s <left>" '(org-promote-subtree :which-key "Org promote subtree")
|
||||||
"s <right>" '(org-demote-subtree :which-key "Org demote subtree")
|
"s <right>" '(org-demote-subtree :which-key "Org demote subtree")
|
||||||
|
|||||||
@@ -7,6 +7,8 @@
|
|||||||
|
|
||||||
;;; Code:
|
;;; Code:
|
||||||
|
|
||||||
|
;; (setq debug-on-error t)
|
||||||
|
|
||||||
;; Defer the garbage collection during startup
|
;; Defer the garbage collection during startup
|
||||||
(setq gc-cons-threshold most-positive-fixnum)
|
(setq gc-cons-threshold most-positive-fixnum)
|
||||||
(add-hook 'emacs-startup-hook (lambda () (setq gc-cons-threshold 8000000)))
|
(add-hook 'emacs-startup-hook (lambda () (setq gc-cons-threshold 8000000)))
|
||||||
|
|||||||
@@ -16,6 +16,12 @@
|
|||||||
(package-refresh-contents)
|
(package-refresh-contents)
|
||||||
(package-install 'use-package))
|
(package-install 'use-package))
|
||||||
|
|
||||||
|
(use-package benchmark-init
|
||||||
|
:ensure t
|
||||||
|
:config
|
||||||
|
;; To disable collection of benchmark data after init is complete
|
||||||
|
(add-hook 'after-init-hook 'benchmark-init/deactivate))
|
||||||
|
|
||||||
;; -------------------------------------
|
;; -------------------------------------
|
||||||
|
|
||||||
;; Tangle and load configuration file
|
;; Tangle and load configuration file
|
||||||
|
|||||||
@@ -4,6 +4,6 @@
|
|||||||
# --
|
# --
|
||||||
class ${1:Name} {
|
class ${1:Name} {
|
||||||
public:
|
public:
|
||||||
${1:$(yas-c++-class-name yas-text)}();
|
${1:$(yas-c++-class-name yas-text)}();
|
||||||
${2:virtual ~${1:$(yas-c++-class-name yas-text)}();}$0
|
${2:virtual ~${1:$(yas-c++-class-name yas-text)}();}$0
|
||||||
};
|
};
|
||||||
@@ -6,4 +6,4 @@ namespace ${1:Namespace} {
|
|||||||
|
|
||||||
$0
|
$0
|
||||||
|
|
||||||
}
|
} // namespace $1
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
# DO NOT EDIT! This file will be overwritten by LXAppearance.
|
||||||
|
# Any customization should be done in ~/.gtkrc-2.0.mine instead.
|
||||||
|
|
||||||
gtk-theme-name="Arc-Dark"
|
gtk-theme-name="Arc-Dark"
|
||||||
gtk-icon-theme-name="Arc"
|
gtk-icon-theme-name="Arc"
|
||||||
gtk-font-name="DejaVu Sans 10"
|
gtk-font-name="DejaVu Sans 10"
|
||||||
|
|||||||
+2
-2
@@ -13,8 +13,8 @@ set $mod2 Mod1
|
|||||||
floating_modifier $mod
|
floating_modifier $mod
|
||||||
|
|
||||||
# Application startup
|
# Application startup
|
||||||
exec_always --no-startup-id $HOME/.scripts/wm/wallpaper.sh &
|
exec_always --no-startup-id $HOME/.local/bin/wm/wallpaper.sh &
|
||||||
exec_always --no-startup-id $HOME/.scripts/panel/polybar.sh &
|
exec_always --no-startup-id $HOME/.local/bin/panel/polybar.sh &
|
||||||
exec --no-startup-id firefox &
|
exec --no-startup-id firefox &
|
||||||
exec --no-startup-id urxvt &
|
exec --no-startup-id urxvt &
|
||||||
exec --no-startup-id thunar &
|
exec --no-startup-id thunar &
|
||||||
|
|||||||
@@ -0,0 +1,110 @@
|
|||||||
|
# -*- conf -*-
|
||||||
|
|
||||||
|
#--- Account ---#
|
||||||
|
IMAPAccount info
|
||||||
|
Host mail.riyyi.com
|
||||||
|
Port 993
|
||||||
|
UserCmd "gpg2 -q --for-your-eyes-only --no-tty -d ~/.config/emacs/etc/authinfo.gpg | awk -F ' ' '/info/ { print $(NF-2); exit; }'"
|
||||||
|
PassCmd "gpg2 -q --for-your-eyes-only --no-tty -d ~/.config/emacs/etc/authinfo.gpg | awk -F ' ' '/info/ { print $NF; exit; }'"
|
||||||
|
# SSL
|
||||||
|
SSLType IMAPS
|
||||||
|
SSLVersions TLSv1.3
|
||||||
|
CertificateFile /etc/ssl/certs/ca-certificates.crt
|
||||||
|
|
||||||
|
#--- Remote ---#
|
||||||
|
IMAPStore info-remote
|
||||||
|
Account info
|
||||||
|
|
||||||
|
#--- Local ---#
|
||||||
|
MaildirStore info-local
|
||||||
|
# IMAP subfolders represent local subfolders
|
||||||
|
SubFolders Verbatim
|
||||||
|
# The trailing "/" is important
|
||||||
|
Path ~/mail/info/
|
||||||
|
Inbox ~/mail/info/Inbox
|
||||||
|
|
||||||
|
#--- Sync ---#
|
||||||
|
Channel info
|
||||||
|
Far :info-remote:
|
||||||
|
Near :info-local:
|
||||||
|
# Automatically create missing mailboxes, only locally
|
||||||
|
Create Near
|
||||||
|
# Do not permanently remove all messages marked for deletion
|
||||||
|
Expunge None
|
||||||
|
# Include everything
|
||||||
|
Patterns *
|
||||||
|
# Save the synchronization state files in the relevant directory
|
||||||
|
SyncState *
|
||||||
|
# Make sure the date of the arrival stays the same when you move messages around
|
||||||
|
CopyArrivalDate yes
|
||||||
|
|
||||||
|
# ------------------------------------------
|
||||||
|
|
||||||
|
#--- Account ---#
|
||||||
|
IMAPAccount private
|
||||||
|
Host mail.riyyi.com
|
||||||
|
Port 993
|
||||||
|
UserCmd "gpg2 -q --for-your-eyes-only --no-tty -d ~/.config/emacs/etc/authinfo.gpg | awk -F ' ' '/private/ { print $(NF-2); exit; }'"
|
||||||
|
PassCmd "gpg2 -q --for-your-eyes-only --no-tty -d ~/.config/emacs/etc/authinfo.gpg | awk -F ' ' '/private/ { print $NF; exit; }'"
|
||||||
|
# SSL
|
||||||
|
SSLType IMAPS
|
||||||
|
SSLVersions TLSv1.3
|
||||||
|
CertificateFile /etc/ssl/certs/ca-certificates.crt
|
||||||
|
|
||||||
|
#--- Remote ---#
|
||||||
|
IMAPStore private-remote
|
||||||
|
Account private
|
||||||
|
|
||||||
|
#--- Local ---#
|
||||||
|
MaildirStore private-local
|
||||||
|
# IMAP subfolders represent local subfolders
|
||||||
|
SubFolders Verbatim
|
||||||
|
# The trailing "/" is important
|
||||||
|
Path ~/mail/private/
|
||||||
|
Inbox ~/mail/private/Inbox
|
||||||
|
|
||||||
|
#--- Sync ---#
|
||||||
|
Channel private
|
||||||
|
Far :private-remote:
|
||||||
|
Near :private-local:
|
||||||
|
# Automatically create missing mailboxes, only locally
|
||||||
|
Create Near
|
||||||
|
# Do not permanently remove all messages marked for deletion
|
||||||
|
Expunge None
|
||||||
|
# Include everything
|
||||||
|
Patterns *
|
||||||
|
# Save the synchronization state files in the relevant directory
|
||||||
|
SyncState *
|
||||||
|
# Make sure the date of the arrival stays the same when you move messages around
|
||||||
|
CopyArrivalDate yes
|
||||||
|
|
||||||
|
# ------------------------------------------
|
||||||
|
|
||||||
|
# https://www.gnu.org/software/emacs/manual/html_node/smtpmail/Authentication.html
|
||||||
|
|
||||||
|
# Example config:
|
||||||
|
|
||||||
|
# machine fullname login "<FULL_NAME>"
|
||||||
|
|
||||||
|
# machine info port 993 login <MAIL> password <SECRET>
|
||||||
|
# machine private port 993 login <MAIL> password <SECRET>
|
||||||
|
|
||||||
|
# machine mail.riyyi.com port 587 login <MAIL> password <SECRET>
|
||||||
|
# machine mail.riyyi.com port 587 login <MAIL> password <SECRET>
|
||||||
|
|
||||||
|
# Create password file:
|
||||||
|
|
||||||
|
# $ touch ~/.config/emacs/etc/authinfo.gpg
|
||||||
|
# $ echo "<CONFIG>" > ~/.config/emacs/etc/authinfo.gpg
|
||||||
|
# $ gpg -e -r <MAIL_USED_FOR_GPG> ~/.config/emacs/etc/authinfo.gpg
|
||||||
|
|
||||||
|
# Run to sync mail:
|
||||||
|
# $ mbsync -a -c ~/.config/isync/mbsyncrc
|
||||||
|
|
||||||
|
# Initialize mu:
|
||||||
|
# mu init --maildir=~/mail --my-address=<MAIL> --my-address=<MAIL2>
|
||||||
|
# mu index
|
||||||
|
|
||||||
|
# Packages:
|
||||||
|
# isync
|
||||||
|
# mu (AUR)
|
||||||
@@ -6,7 +6,7 @@ pinentry = /usr/bin/pinentry
|
|||||||
database_1 = ~/documents/password.kdbx
|
database_1 = ~/documents/password.kdbx
|
||||||
pw_cache_period_min = 60
|
pw_cache_period_min = 60
|
||||||
|
|
||||||
gui_editor=emacsclient
|
gui_editor = emacsclient
|
||||||
editor = vim
|
editor = vim
|
||||||
terminal = urxvt
|
terminal = urxvt
|
||||||
type_library = xdotool
|
type_library = xdotool
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ text/css=emacsclient.desktop
|
|||||||
text/html=firefox.desktop
|
text/html=firefox.desktop
|
||||||
text/markdown=emacsclient.desktop
|
text/markdown=emacsclient.desktop
|
||||||
text/plain=emacsclient.desktop
|
text/plain=emacsclient.desktop
|
||||||
text/plain=org.gnome.gedit.desktop
|
text/plain=emacsclient.desktop
|
||||||
text/x-c++src=emacsclient.desktop
|
text/x-c++src=emacsclient.desktop
|
||||||
text/x-cmake=emacsclient.desktop
|
text/x-cmake=emacsclient.desktop
|
||||||
text/x-csrc=emacsclient.desktop
|
text/x-csrc=emacsclient.desktop
|
||||||
|
|||||||
@@ -16,10 +16,10 @@ Alt+Shift+LEFT add video-rotate -90
|
|||||||
Alt+- add video-zoom -0.25
|
Alt+- add video-zoom -0.25
|
||||||
Alt+= add video-zoom 0.25
|
Alt+= add video-zoom 0.25
|
||||||
# Video pan
|
# Video pan
|
||||||
Alt+LEFT add video-pan-x 0.05
|
Alt+LEFT add video-pan-x -0.05
|
||||||
Alt+RIGHT add video-pan-x -0.05
|
Alt+RIGHT add video-pan-x 0.05
|
||||||
Alt+DOWN add video-pan-y -0.05
|
Alt+DOWN add video-pan-y 0.05
|
||||||
Alt+UP add video-pan-y 0.05
|
Alt+UP add video-pan-y -0.05
|
||||||
Alt+h add video-pan-x -0.05
|
Alt+h add video-pan-x -0.05
|
||||||
Alt+l add video-pan-x 0.05
|
Alt+l add video-pan-x 0.05
|
||||||
Alt+j add video-pan-y 0.05
|
Alt+j add video-pan-y 0.05
|
||||||
|
|||||||
@@ -11,11 +11,11 @@ listview {
|
|||||||
}
|
}
|
||||||
|
|
||||||
element-icon {
|
element-icon {
|
||||||
margin: 0.05em 0 0.05em 0.2em;
|
padding: 0.05em 0 0.05em 0.2em;
|
||||||
size: 1em;
|
size: 1em;
|
||||||
}
|
}
|
||||||
|
|
||||||
element-text {
|
element-text {
|
||||||
background-color: default;
|
background-color: default;
|
||||||
margin: 0.05em 0 0.05em 0.3em;
|
padding: 0.05em 0 0.05em 0.3em;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -144,6 +144,10 @@ endfunction
|
|||||||
|
|
||||||
"" Keybindings
|
"" Keybindings
|
||||||
|
|
||||||
|
" Change default behavior
|
||||||
|
nnoremap Y y$
|
||||||
|
vnoremap p pgvy
|
||||||
|
|
||||||
" Tab/Shift+Tab functionality
|
" Tab/Shift+Tab functionality
|
||||||
nnoremap <Tab> >>_
|
nnoremap <Tab> >>_
|
||||||
nnoremap <S-Tab> <<_
|
nnoremap <S-Tab> <<_
|
||||||
|
|||||||
+20
-1
@@ -3,6 +3,9 @@
|
|||||||
# Disable Ctrl+S and Ctrl+Q
|
# Disable Ctrl+S and Ctrl+Q
|
||||||
stty -ixon
|
stty -ixon
|
||||||
|
|
||||||
|
# Use hard tabs
|
||||||
|
stty tab0
|
||||||
|
|
||||||
# Set tab width
|
# Set tab width
|
||||||
tabs -4
|
tabs -4
|
||||||
|
|
||||||
@@ -45,10 +48,26 @@ zstyle ':vcs_info:*' formats '%F{cyan}(%F{red}%b%F{cyan})%f %c%u'
|
|||||||
compinit -d "$XDG_CACHE_HOME/zsh/zcompdump"
|
compinit -d "$XDG_CACHE_HOME/zsh/zcompdump"
|
||||||
zstyle ':completion::complete:*' use-cache 1
|
zstyle ':completion::complete:*' use-cache 1
|
||||||
zstyle ':completion::complete:*' cache-path "$XDG_CACHE_HOME/zsh/zcompcache"
|
zstyle ':completion::complete:*' cache-path "$XDG_CACHE_HOME/zsh/zcompcache"
|
||||||
|
zstyle ':completion:*:options' auto-description '%d'
|
||||||
|
zstyle ':completion:*:default' list-colors ''
|
||||||
|
zstyle ':completion:*:default' list-prompt ''
|
||||||
zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}' 'r:|[._-]=* r:|=*' 'l:|=* r:|=*'
|
zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}' 'r:|[._-]=* r:|=*' 'l:|=* r:|=*'
|
||||||
zstyle ':completion:*' list-colors ''
|
|
||||||
zstyle ':completion:*' menu select
|
zstyle ':completion:*' menu select
|
||||||
|
|
||||||
|
zstyle ':completion:*' group-name ''
|
||||||
|
zstyle ':completion:*' list-dirs-first true
|
||||||
|
zstyle ':completion:*' verbose yes
|
||||||
|
zstyle ':completion:*:default' list-prompt '%S%M matches%s'
|
||||||
|
zstyle ':completion:*:matches' group 'yes'
|
||||||
|
zstyle ':completion:*:options' description 'yes'
|
||||||
|
|
||||||
|
# Completion formatting
|
||||||
|
zstyle ':completion:*' format ' %F{yellow}-- %d --%f'
|
||||||
|
zstyle ':completion:*:corrections' format ' %F{green}-- %d (errors: %e) --%f'
|
||||||
|
zstyle ':completion:*:descriptions' format ' %F{yellow}-- %d --%f'
|
||||||
|
zstyle ':completion:*:messages' format ' %F{purple} -- %d --%f'
|
||||||
|
zstyle ':completion:*:warnings' format ' %F{red}-- no matches found --%f'
|
||||||
|
|
||||||
# Bind keys
|
# Bind keys
|
||||||
zle -N history-beginning-search-backward-end history-search-end
|
zle -N history-beginning-search-backward-end history-search-end
|
||||||
zle -N history-beginning-search-forward-end history-search-end
|
zle -N history-beginning-search-forward-end history-search-end
|
||||||
|
|||||||
+2
-2
@@ -42,13 +42,13 @@ play() {
|
|||||||
if [ -z "$1" ]; then
|
if [ -z "$1" ]; then
|
||||||
MPV="$MPV $CLIP"
|
MPV="$MPV $CLIP"
|
||||||
# Cut off everything after space
|
# Cut off everything after space
|
||||||
LINK=" $(echo "$CLIP" | sed -nE 's/^(\S+).*/\1/p')"
|
LINK="$(echo "$CLIP" | sed -nE 's/^(\S+).*/\1/p')"
|
||||||
else
|
else
|
||||||
MPV="$MPV $*"
|
MPV="$MPV $*"
|
||||||
# Determain which argument holds the urls
|
# Determain which argument holds the urls
|
||||||
[ "$1" = "${1#-}" ] && DISPLAY="$1" || DISPLAY="$2"
|
[ "$1" = "${1#-}" ] && DISPLAY="$1" || DISPLAY="$2"
|
||||||
# Cut off everything after space
|
# Cut off everything after space
|
||||||
LINK=" $(echo "$DISPLAY" | sed -nE 's/^(\S+).*/\1/p')"
|
LINK="$(echo "$DISPLAY" | sed -nE 's/^(\S+).*/\1/p')"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
notify-send -t 2500 "Loading video: $LINK"
|
notify-send -t 2500 "Loading video: $LINK"
|
||||||
|
|||||||
@@ -7,9 +7,11 @@
|
|||||||
#
|
#
|
||||||
# Entries in this file show the compile time defaults. Local configuration
|
# Entries in this file show the compile time defaults. Local configuration
|
||||||
# should be created by either modifying this file, or by creating "drop-ins" in
|
# should be created by either modifying this file, or by creating "drop-ins" in
|
||||||
# the system.conf.d/ subdirectory. The latter is generally recommended.
|
# the login.conf.d/ subdirectory. The latter is generally recommended.
|
||||||
# Defaults can be restored by simply deleting this file and all drop-ins.
|
# Defaults can be restored by simply deleting this file and all drop-ins.
|
||||||
#
|
#
|
||||||
|
# Use 'systemd-analyze cat-config systemd/logind.conf' to display the full config.
|
||||||
|
#
|
||||||
# See logind.conf(5) for details.
|
# See logind.conf(5) for details.
|
||||||
|
|
||||||
[Login]
|
[Login]
|
||||||
@@ -27,6 +29,7 @@ HandlePowerKey=ignore
|
|||||||
#HandleLidSwitchExternalPower=suspend
|
#HandleLidSwitchExternalPower=suspend
|
||||||
#HandleLidSwitchDocked=ignore
|
#HandleLidSwitchDocked=ignore
|
||||||
#HandleRebootKey=reboot
|
#HandleRebootKey=reboot
|
||||||
|
#HandleRebootKeyLongPress=poweroff
|
||||||
#PowerKeyIgnoreInhibited=no
|
#PowerKeyIgnoreInhibited=no
|
||||||
#SuspendKeyIgnoreInhibited=no
|
#SuspendKeyIgnoreInhibited=no
|
||||||
#HibernateKeyIgnoreInhibited=no
|
#HibernateKeyIgnoreInhibited=no
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
acpi
|
acpi
|
||||||
adobe-source-han-sans-jp-fonts
|
adobe-source-han-sans-jp-fonts
|
||||||
alsa-utils
|
alsa-utils
|
||||||
|
android-studio
|
||||||
|
android-tools
|
||||||
arandr
|
arandr
|
||||||
arc-gtk-theme
|
arc-gtk-theme
|
||||||
arc-icon-theme
|
arc-icon-theme
|
||||||
@@ -8,7 +10,6 @@ aria2
|
|||||||
aspell-en
|
aspell-en
|
||||||
aspell-nl
|
aspell-nl
|
||||||
base
|
base
|
||||||
breeze-icons
|
|
||||||
brightnessctl
|
brightnessctl
|
||||||
bspwm
|
bspwm
|
||||||
capitaine-cursors
|
capitaine-cursors
|
||||||
@@ -23,8 +24,10 @@ domoticz-git
|
|||||||
dos2unix
|
dos2unix
|
||||||
downgrade
|
downgrade
|
||||||
doxygen
|
doxygen
|
||||||
|
duf
|
||||||
dunst
|
dunst
|
||||||
ebtables
|
ebtables
|
||||||
|
edk2-ovmf
|
||||||
efibootmgr
|
efibootmgr
|
||||||
emacs
|
emacs
|
||||||
evtest
|
evtest
|
||||||
@@ -34,7 +37,6 @@ ffmpegthumbnailer
|
|||||||
firefox
|
firefox
|
||||||
frei0r-plugins
|
frei0r-plugins
|
||||||
fritzing
|
fritzing
|
||||||
galculator-gtk2
|
|
||||||
gdb
|
gdb
|
||||||
gedit
|
gedit
|
||||||
ghc
|
ghc
|
||||||
@@ -42,6 +44,7 @@ git
|
|||||||
gnome-calculator
|
gnome-calculator
|
||||||
gnome-keyring
|
gnome-keyring
|
||||||
gnome-themes-extra
|
gnome-themes-extra
|
||||||
|
gparted
|
||||||
graphviz
|
graphviz
|
||||||
gst-plugins-good
|
gst-plugins-good
|
||||||
gucharmap
|
gucharmap
|
||||||
@@ -55,19 +58,25 @@ imagemagick
|
|||||||
inetutils
|
inetutils
|
||||||
inkscape
|
inkscape
|
||||||
intel-media-driver
|
intel-media-driver
|
||||||
|
intel-media-sdk
|
||||||
intel-ucode
|
intel-ucode
|
||||||
|
isync
|
||||||
iw
|
iw
|
||||||
jdk11-openjdk
|
jdk11-openjdk
|
||||||
jdownloader2
|
jdownloader2
|
||||||
jq
|
jq
|
||||||
|
kcachegrind
|
||||||
kdenlive
|
kdenlive
|
||||||
|
keepmenu-git
|
||||||
kolourpaint
|
kolourpaint
|
||||||
|
kotlin-language-server-git
|
||||||
krita
|
krita
|
||||||
lib32-alsa-lib
|
lib32-alsa-lib
|
||||||
lib32-alsa-plugins
|
lib32-alsa-plugins
|
||||||
lib32-glibc
|
lib32-glibc
|
||||||
lib32-libpulse
|
lib32-libpulse
|
||||||
lib32-openal
|
lib32-openal
|
||||||
|
lib32-vulkan-intel
|
||||||
libmtp
|
libmtp
|
||||||
libnotify-id
|
libnotify-id
|
||||||
libvirt
|
libvirt
|
||||||
@@ -85,11 +94,14 @@ man-db
|
|||||||
man-pages
|
man-pages
|
||||||
mariadb
|
mariadb
|
||||||
mdadm
|
mdadm
|
||||||
|
mesa-demos
|
||||||
minted
|
minted
|
||||||
mkvtoolnix-cli
|
mkvtoolnix-cli
|
||||||
moka-icon-theme-git
|
moka-icon-theme-git
|
||||||
mpv
|
mpv
|
||||||
|
mu
|
||||||
mysql-workbench
|
mysql-workbench
|
||||||
|
namcap
|
||||||
ncdu
|
ncdu
|
||||||
neofetch
|
neofetch
|
||||||
nerd-fonts-dejavu-complete
|
nerd-fonts-dejavu-complete
|
||||||
@@ -99,7 +111,6 @@ ntfs-3g
|
|||||||
openssh
|
openssh
|
||||||
otf-font-awesome
|
otf-font-awesome
|
||||||
p7zip
|
p7zip
|
||||||
packettracer
|
|
||||||
pacman-contrib
|
pacman-contrib
|
||||||
pamixer
|
pamixer
|
||||||
pavucontrol
|
pavucontrol
|
||||||
@@ -110,16 +121,21 @@ polybar
|
|||||||
poppler-glib
|
poppler-glib
|
||||||
pulseaudio
|
pulseaudio
|
||||||
pulseaudio-alsa
|
pulseaudio-alsa
|
||||||
python2-setuptools
|
python-adblock
|
||||||
python-beautifulsoup4
|
python-beautifulsoup4
|
||||||
|
python-certifi
|
||||||
|
python-filelock
|
||||||
|
python-flask
|
||||||
python-google-api-python-client
|
python-google-api-python-client
|
||||||
python-google-auth-oauthlib
|
python-google-auth-oauthlib
|
||||||
python-image
|
python-image
|
||||||
python-keepmenu-git
|
python-matplotlib
|
||||||
python-opengl
|
python-opengl
|
||||||
|
python-pycurl
|
||||||
python-pyqt5
|
python-pyqt5
|
||||||
python-pyusb
|
python-pyusb
|
||||||
python-tqdm
|
python-tqdm
|
||||||
|
python-watchdog
|
||||||
python-zstandard
|
python-zstandard
|
||||||
qbittorrent
|
qbittorrent
|
||||||
qemu
|
qemu
|
||||||
@@ -131,15 +147,19 @@ qt5-tools
|
|||||||
r
|
r
|
||||||
redshift
|
redshift
|
||||||
reflector
|
reflector
|
||||||
|
renderdoc-bin
|
||||||
rofi
|
rofi
|
||||||
rsync
|
rsync
|
||||||
rtmpdump
|
rtmpdump
|
||||||
rxvt-unicode
|
rxvt-unicode
|
||||||
signal-desktop
|
signal-desktop
|
||||||
smartmontools
|
smartmontools
|
||||||
|
sqlitebrowser
|
||||||
|
sshfs
|
||||||
stalonetray
|
stalonetray
|
||||||
streamlink
|
streamlink
|
||||||
sxhkd
|
sxhkd
|
||||||
|
syncthing
|
||||||
synergy2-bin
|
synergy2-bin
|
||||||
sysfsutils
|
sysfsutils
|
||||||
texlab
|
texlab
|
||||||
@@ -158,19 +178,24 @@ texlive-science
|
|||||||
thunar
|
thunar
|
||||||
thunar-volman
|
thunar-volman
|
||||||
thunderbird
|
thunderbird
|
||||||
|
tibia
|
||||||
tlp
|
tlp
|
||||||
tokei
|
tokei
|
||||||
|
tree
|
||||||
trizen
|
trizen
|
||||||
ttf-dejavu
|
ttf-dejavu
|
||||||
ttf-joypixels
|
ttf-joypixels
|
||||||
ttf-ms-win10
|
ttf-ms-win10
|
||||||
|
tumbler
|
||||||
tumbler-extra-thumbnailers
|
tumbler-extra-thumbnailers
|
||||||
tumbler-git
|
|
||||||
unrar
|
unrar
|
||||||
unzip
|
unzip
|
||||||
usbutils
|
usbutils
|
||||||
|
valgrind
|
||||||
|
ventoy-bin
|
||||||
vim-spell-nl
|
vim-spell-nl
|
||||||
virt-manager
|
virt-manager
|
||||||
|
vulkan-intel
|
||||||
wget
|
wget
|
||||||
wine-staging
|
wine-staging
|
||||||
wpa_supplicant
|
wpa_supplicant
|
||||||
@@ -190,7 +215,8 @@ xorg-xprop
|
|||||||
xorg-xrandr
|
xorg-xrandr
|
||||||
xorg-xsetroot
|
xorg-xsetroot
|
||||||
xss-lock
|
xss-lock
|
||||||
youtube-dl
|
yt-dlp
|
||||||
|
yt-dlp-drop-in
|
||||||
zathura
|
zathura
|
||||||
zathura-pdf-mupdf
|
zathura-pdf-mupdf
|
||||||
zip
|
zip
|
||||||
|
|||||||
Reference in New Issue
Block a user