mirror of
https://github.com/SqrtMinusOne/dotfiles.git
synced 2025-12-11 03:33:03 +03:00
upd
This commit is contained in:
parent
bfd415a0dd
commit
e39bc85628
13 changed files with 647 additions and 192 deletions
|
|
@ -1,5 +1,6 @@
|
|||
#!/bin/sh
|
||||
COMMAND="buku -o %"
|
||||
# COMMAND="qutebrowser $(buku -f 10 -p %)"
|
||||
if [[ $1 == '-e' ]]; then
|
||||
COMMAND="buku -w %"
|
||||
fi
|
||||
|
|
@ -13,4 +14,9 @@ buku -f 5 -p | awk -F'\t' -v OFS='\t' '{
|
|||
if ($1 != "waiting for input") {
|
||||
printf "%-5s %-40s %s\n", $1, $2, joined
|
||||
}
|
||||
}' | dmenu -l 20 | cut -d ' ' -f 1 | xargs -I % $COMMAND
|
||||
}' | dmenu -l 20 | cut -d ' ' -f 1 | {
|
||||
read index;
|
||||
url=$(buku -f 10 p $index)
|
||||
echo $url
|
||||
# echo ${$()#"waiting for input"} | cut -d ' ' -f 1 | xargs -I % qutebrowser %
|
||||
}
|
||||
|
|
|
|||
28
bin/scripts/rofi-buku-mine
Executable file
28
bin/scripts/rofi-buku-mine
Executable file
|
|
@ -0,0 +1,28 @@
|
|||
#!/bin/sh
|
||||
COMMAND="buku -o %"
|
||||
# COMMAND="qutebrowser $(buku -f 10 -p %)"
|
||||
if [[ $1 == '-e' ]]; then
|
||||
COMMAND="buku -w %"
|
||||
fi
|
||||
buku -f 4 -p | awk -F'\t' -v OFS='\t' '{
|
||||
split($4, tags, ",")
|
||||
joined = sep = ""
|
||||
for (i = 1; i in tags; i++) {
|
||||
joined = joined sep "[" tags[i] "]"
|
||||
sep = " "
|
||||
}
|
||||
url = substr($2, 1, 40)
|
||||
if (length($2) > 40) {
|
||||
url = url "..."
|
||||
}
|
||||
if ($1 != "waiting for input") {
|
||||
printf "%-5s %-60s %-45s %s\n", $1, $3, url, joined
|
||||
}
|
||||
}' | sort -k 2 | rofi -dmenu -matching fuzzy -sort -sorting-method fzf -width 80 -l 20 | cut -d ' ' -f 1 | {
|
||||
read index;
|
||||
if [[ -z "$index" ]]; then
|
||||
exit 0
|
||||
fi
|
||||
url=$(buku -f 10 -p $index)
|
||||
echo ${url#"waiting for input"} | cut -d ' ' -f 1 | xargs -I % firefox %
|
||||
}
|
||||
5
bin/scripts/rofi-man
Executable file
5
bin/scripts/rofi-man
Executable file
|
|
@ -0,0 +1,5 @@
|
|||
#!/bin/bash
|
||||
SELECTED=$(man -k . | rofi -dmenu -l 20 | awk '{print $1}')
|
||||
if [[ ! -z $SELECTED ]]; then
|
||||
man -Tpdf $SELECTED | zathura -
|
||||
fi
|
||||
|
|
@ -36,6 +36,10 @@
|
|||
(load-file (expand-file-name file user-init-dir)))
|
||||
#+end_src
|
||||
** Misc
|
||||
*** Environment variable
|
||||
#+begin_src emacs-lisp
|
||||
(setenv "IS_EMACS" "true")
|
||||
#+end_src
|
||||
*** Add rust stuff to =exec-path=
|
||||
#+begin_src emacs-lisp
|
||||
(add-to-list 'exec-path (expand-file-name "~/.cargo/bin"))
|
||||
|
|
@ -92,22 +96,87 @@
|
|||
|
||||
(general-define-key "C-c c" 'my-edit-configuration)
|
||||
#+end_src
|
||||
*** Intercept map for evil
|
||||
*** Editing
|
||||
#+begin_src emacs-lisp
|
||||
(defvar my-intercept-mode-map (make-sparse-keymap)
|
||||
"High precedence keymap.")
|
||||
|
||||
(define-minor-mode my-intercept-mode
|
||||
"Global minor mode for higher precedence evil keybindings."
|
||||
:global t)
|
||||
|
||||
(my-intercept-mode)
|
||||
(general-def :states '(normal insert visual)
|
||||
"<home>" 'beginning-of-line
|
||||
"<end>" 'end-of-line)
|
||||
#+end_src
|
||||
*** Escape
|
||||
#+begin_src emacs-lisp
|
||||
(defun minibuffer-keyboard-quit ()
|
||||
"Abort recursive edit.
|
||||
In Delete Selection mode, if the mark is active, just deactivate it;
|
||||
then it takes a second \\[keyboard-quit] to abort the minibuffer."
|
||||
(interactive)
|
||||
(if (and delete-selection-mode transient-mark-mode mark-active)
|
||||
(setq deactivate-mark t)
|
||||
(when (get-buffer "*Completions*") (delete-windows-on "*Completions*"))
|
||||
(abort-recursive-edit)))
|
||||
|
||||
(general-define-key
|
||||
:keymaps '(normal visual global)
|
||||
[escape] 'keyboard-quit)
|
||||
|
||||
(general-define-key
|
||||
:keymaps '(minibuffer-local-map
|
||||
minibuffer-local-ns-map
|
||||
minibuffer-local-completion-map
|
||||
minibuffer-local-must-match-map
|
||||
minibuffer-local-isearch-map)
|
||||
[escape] 'minibuffer-keyboard-quit)
|
||||
|
||||
#+end_src
|
||||
* General editing & setup
|
||||
** Evil-mode
|
||||
#+begin_src emacs-lisp
|
||||
(use-package evil
|
||||
:straight t
|
||||
:init
|
||||
(setq evil-want-integration t)
|
||||
(setq evil-want-keybinding nil)
|
||||
:config
|
||||
(evil-mode 1)
|
||||
(setq evil-search-module 'evil-search)
|
||||
(setq evil-split-window-below t)
|
||||
(setq evil-vsplit-window-right t)
|
||||
;; (setq evil-respect-visual-line-mode t)
|
||||
(evil-set-undo-system 'undo-tree)
|
||||
;; (add-to-list 'evil-emacs-state-modes 'dired-mode)
|
||||
)
|
||||
|
||||
(use-package evil-numbers
|
||||
:straight t)
|
||||
|
||||
(use-package evil-surround
|
||||
:straight t
|
||||
:config
|
||||
(global-evil-surround-mode 1))
|
||||
|
||||
(use-package evil-commentary
|
||||
:straight t
|
||||
:config
|
||||
(evil-commentary-mode))
|
||||
|
||||
(use-package evil-collection
|
||||
:straight t
|
||||
:config
|
||||
(evil-collection-init '(eww dired dasboard company vterm flycheck ebuku)))
|
||||
|
||||
(use-package evil-quickscope
|
||||
:straight t
|
||||
:config
|
||||
:hook (
|
||||
(prog-mode . turn-on-evil-quickscope-mode)
|
||||
(LaTeX-mode . turn-on-evil-quickscope-mode)
|
||||
))
|
||||
#+end_src
|
||||
** Keybindgs to override evil
|
||||
*** My leader
|
||||
#+begin_src emacs-lisp
|
||||
(general-create-definer my-leader-def
|
||||
:prefix "SPC"
|
||||
:keymaps 'my-intercept-mode-map
|
||||
:keymaps 'override
|
||||
:states '(normal motion emacs))
|
||||
|
||||
(general-def :states '(normal motion emacs) "SPC" nil)
|
||||
|
|
@ -115,12 +184,6 @@
|
|||
(my-leader-def "?" 'which-key-show-top-level)
|
||||
(my-leader-def "E" 'eval-expression)
|
||||
#+end_src
|
||||
*** Editing
|
||||
#+begin_src emacs-lisp
|
||||
(general-def :states '(normal insert visual)
|
||||
"<home>" 'beginning-of-line
|
||||
"<end>" 'end-of-line)
|
||||
#+end_src
|
||||
*** Help
|
||||
#+begin_src emacs-lisp
|
||||
(my-leader-def
|
||||
|
|
@ -172,35 +235,10 @@
|
|||
"C-w" 'describe-no-warranty
|
||||
)
|
||||
#+end_src
|
||||
*** Escape
|
||||
#+begin_src emacs-lisp
|
||||
(defun minibuffer-keyboard-quit ()
|
||||
"Abort recursive edit.
|
||||
In Delete Selection mode, if the mark is active, just deactivate it;
|
||||
then it takes a second \\[keyboard-quit] to abort the minibuffer."
|
||||
(interactive)
|
||||
(if (and delete-selection-mode transient-mark-mode mark-active)
|
||||
(setq deactivate-mark t)
|
||||
(when (get-buffer "*Completions*") (delete-windows-on "*Completions*"))
|
||||
(abort-recursive-edit)))
|
||||
|
||||
(general-define-key
|
||||
:keymaps '(normal visual global)
|
||||
[escape] 'keyboard-quit)
|
||||
|
||||
(general-define-key
|
||||
:keymaps '(minibuffer-local-map
|
||||
minibuffer-local-ns-map
|
||||
minibuffer-local-completion-map
|
||||
minibuffer-local-must-match-map
|
||||
minibuffer-local-isearch-map)
|
||||
[escape] 'minibuffer-keyboard-quit)
|
||||
|
||||
#+end_src
|
||||
*** Buffer switch
|
||||
#+begin_src emacs-lisp
|
||||
(general-define-key
|
||||
:keymaps 'my-intercept-mode-map
|
||||
:keymaps 'override
|
||||
"C-<right>" 'evil-window-right
|
||||
"C-<left>" 'evil-window-left
|
||||
"C-<up>" 'evil-window-up
|
||||
|
|
@ -208,56 +246,10 @@ then it takes a second \\[keyboard-quit] to abort the minibuffer."
|
|||
"C-h" 'evil-window-left
|
||||
"C-l" 'evil-window-right
|
||||
"C-k" 'evil-window-up
|
||||
"C-j" 'evil-window-down)
|
||||
#+end_src
|
||||
* General editing & setup
|
||||
** Evil-mode
|
||||
#+begin_src emacs-lisp
|
||||
(use-package evil
|
||||
:straight t
|
||||
:init
|
||||
(setq evil-want-integration t)
|
||||
(setq evil-want-keybinding nil)
|
||||
:config
|
||||
(evil-mode 1)
|
||||
(setq evil-search-module 'evil-search)
|
||||
(setq evil-split-window-below t)
|
||||
(setq evil-vsplit-window-right t)
|
||||
;; (setq evil-respect-visual-line-mode t)
|
||||
(evil-set-undo-system 'undo-tree)
|
||||
;; (add-to-list 'evil-emacs-state-modes 'dired-mode)
|
||||
"C-j" 'evil-window-down
|
||||
"C-x h" 'previous-buffer
|
||||
"C-x l" 'next-buffer
|
||||
)
|
||||
|
||||
(dolist (state '(normal visual insert))
|
||||
(evil-make-intercept-map
|
||||
(evil-get-auxiliary-keymap my-intercept-mode-map state t t)
|
||||
state))
|
||||
|
||||
(use-package evil-numbers
|
||||
:straight t)
|
||||
|
||||
(use-package evil-surround
|
||||
:straight t
|
||||
:config
|
||||
(global-evil-surround-mode 1))
|
||||
|
||||
(use-package evil-commentary
|
||||
:straight t
|
||||
:config
|
||||
(evil-commentary-mode))
|
||||
|
||||
(use-package evil-collection
|
||||
:straight t
|
||||
:config
|
||||
(evil-collection-init '(eww dired dasboard company vterm flycheck)))
|
||||
|
||||
(use-package evil-quickscope
|
||||
:straight t
|
||||
:config
|
||||
:hook (
|
||||
(prog-mode . turn-on-evil-quickscope-mode)
|
||||
(LaTeX-mode . turn-on-evil-quickscope-mode)
|
||||
))
|
||||
#+end_src
|
||||
** Multiple cursors
|
||||
#+begin_src emacs-lisp
|
||||
|
|
@ -735,7 +727,6 @@ then it takes a second \\[keyboard-quit] to abort the minibuffer."
|
|||
(toggle-truncate-lines 1)
|
||||
(display-line-numbers-mode 0)))
|
||||
(evil-org-agenda-set-keys))
|
||||
|
||||
#+end_src
|
||||
** Programming languages
|
||||
*** Python
|
||||
|
|
@ -763,6 +754,10 @@ then it takes a second \\[keyboard-quit] to abort the minibuffer."
|
|||
(jupyter . t)))
|
||||
|
||||
(org-babel-jupyter-override-src-block "python")
|
||||
|
||||
(use-package ob-async
|
||||
:straight t
|
||||
)
|
||||
#+end_src
|
||||
** Export
|
||||
#+begin_src emacs-lisp
|
||||
|
|
@ -885,7 +880,7 @@ then it takes a second \\[keyboard-quit] to abort the minibuffer."
|
|||
** Tab bar
|
||||
#+begin_src emacs-lisp
|
||||
(general-define-key
|
||||
:keymaps 'my-intercept-mode-map
|
||||
:keymaps 'override
|
||||
:states '(normal emacs)
|
||||
"gt" 'tab-bar-switch-to-next-tab
|
||||
"gT" 'tab-bar-switch-to-prev-tab
|
||||
|
|
@ -1121,6 +1116,8 @@ then it takes a second \\[keyboard-quit] to abort the minibuffer."
|
|||
(require 'dap-chrome)
|
||||
(dap-chrome-setup)
|
||||
|
||||
(require 'dap-python)
|
||||
|
||||
(dap-mode 1)
|
||||
(dap-ui-mode 1)
|
||||
(dap-tooltip-mode 1)
|
||||
|
|
@ -1302,11 +1299,21 @@ then it takes a second \\[keyboard-quit] to abort the minibuffer."
|
|||
:keymaps 'plantuml-mode-map
|
||||
"RET" 'plantuml-preview)
|
||||
#+end_src
|
||||
** fish
|
||||
#+begin_src emacs-lisp
|
||||
(use-package fish-mode
|
||||
:straight t)
|
||||
#+end_src
|
||||
** CLIPS
|
||||
#+begin_src emacs-lisp
|
||||
(use-package clips-mode
|
||||
:straight t)
|
||||
#+end_src
|
||||
** Docker
|
||||
#+begin_src emacs-lisp
|
||||
(use-package dockerfile-mode
|
||||
:straight t)
|
||||
#+end_src
|
||||
** Image view
|
||||
#+begin_src emacs-lisp
|
||||
(general-define-key
|
||||
|
|
@ -1334,6 +1341,13 @@ then it takes a second \\[keyboard-quit] to abort the minibuffer."
|
|||
"+" 'text-scale-increase
|
||||
"-" 'text-scale-decrease)
|
||||
#+end_src
|
||||
** Buku
|
||||
#+begin_src emacs-lisp
|
||||
(use-package ebuku
|
||||
:straight t)
|
||||
|
||||
(my-leader-def "ae" 'ebuku)
|
||||
#+end_src
|
||||
** mpd.el
|
||||
#+begin_src emacs-lisp
|
||||
;; (use-package mpdel
|
||||
|
|
|
|||
|
|
@ -26,6 +26,8 @@
|
|||
(interactive "f")
|
||||
(load-file (expand-file-name file user-init-dir)))
|
||||
|
||||
(setenv "IS_EMACS" "true")
|
||||
|
||||
(add-to-list 'exec-path (expand-file-name "~/.cargo/bin"))
|
||||
|
||||
(setq custom-file (concat user-emacs-directory "custom.el"))
|
||||
|
|
@ -66,18 +68,76 @@
|
|||
|
||||
(general-define-key "C-c c" 'my-edit-configuration)
|
||||
|
||||
(defvar my-intercept-mode-map (make-sparse-keymap)
|
||||
"High precedence keymap.")
|
||||
(general-def :states '(normal insert visual)
|
||||
"<home>" 'beginning-of-line
|
||||
"<end>" 'end-of-line)
|
||||
|
||||
(define-minor-mode my-intercept-mode
|
||||
"Global minor mode for higher precedence evil keybindings."
|
||||
:global t)
|
||||
(defun minibuffer-keyboard-quit ()
|
||||
"Abort recursive edit.
|
||||
In Delete Selection mode, if the mark is active, just deactivate it;
|
||||
then it takes a second \\[keyboard-quit] to abort the minibuffer."
|
||||
(interactive)
|
||||
(if (and delete-selection-mode transient-mark-mode mark-active)
|
||||
(setq deactivate-mark t)
|
||||
(when (get-buffer "*Completions*") (delete-windows-on "*Completions*"))
|
||||
(abort-recursive-edit)))
|
||||
|
||||
(my-intercept-mode)
|
||||
(general-define-key
|
||||
:keymaps '(normal visual global)
|
||||
[escape] 'keyboard-quit)
|
||||
|
||||
(general-define-key
|
||||
:keymaps '(minibuffer-local-map
|
||||
minibuffer-local-ns-map
|
||||
minibuffer-local-completion-map
|
||||
minibuffer-local-must-match-map
|
||||
minibuffer-local-isearch-map)
|
||||
[escape] 'minibuffer-keyboard-quit)
|
||||
|
||||
(use-package evil
|
||||
:straight t
|
||||
:init
|
||||
(setq evil-want-integration t)
|
||||
(setq evil-want-keybinding nil)
|
||||
:config
|
||||
(evil-mode 1)
|
||||
(setq evil-search-module 'evil-search)
|
||||
(setq evil-split-window-below t)
|
||||
(setq evil-vsplit-window-right t)
|
||||
;; (setq evil-respect-visual-line-mode t)
|
||||
(evil-set-undo-system 'undo-tree)
|
||||
;; (add-to-list 'evil-emacs-state-modes 'dired-mode)
|
||||
)
|
||||
|
||||
(use-package evil-numbers
|
||||
:straight t)
|
||||
|
||||
(use-package evil-surround
|
||||
:straight t
|
||||
:config
|
||||
(global-evil-surround-mode 1))
|
||||
|
||||
(use-package evil-commentary
|
||||
:straight t
|
||||
:config
|
||||
(evil-commentary-mode))
|
||||
|
||||
(use-package evil-collection
|
||||
:straight t
|
||||
:config
|
||||
(evil-collection-init '(eww dired dasboard company vterm flycheck ebuku)))
|
||||
|
||||
(use-package evil-quickscope
|
||||
:straight t
|
||||
:config
|
||||
:hook (
|
||||
(prog-mode . turn-on-evil-quickscope-mode)
|
||||
(LaTeX-mode . turn-on-evil-quickscope-mode)
|
||||
))
|
||||
|
||||
(general-create-definer my-leader-def
|
||||
:prefix "SPC"
|
||||
:keymaps 'my-intercept-mode-map
|
||||
:keymaps 'override
|
||||
:states '(normal motion emacs))
|
||||
|
||||
(general-def :states '(normal motion emacs) "SPC" nil)
|
||||
|
|
@ -85,10 +145,6 @@
|
|||
(my-leader-def "?" 'which-key-show-top-level)
|
||||
(my-leader-def "E" 'eval-expression)
|
||||
|
||||
(general-def :states '(normal insert visual)
|
||||
"<home>" 'beginning-of-line
|
||||
"<end>" 'end-of-line)
|
||||
|
||||
(my-leader-def
|
||||
:infix "h"
|
||||
"RET" 'view-order-manuals
|
||||
|
|
@ -138,30 +194,8 @@
|
|||
"C-w" 'describe-no-warranty
|
||||
)
|
||||
|
||||
(defun minibuffer-keyboard-quit ()
|
||||
"Abort recursive edit.
|
||||
In Delete Selection mode, if the mark is active, just deactivate it;
|
||||
then it takes a second \\[keyboard-quit] to abort the minibuffer."
|
||||
(interactive)
|
||||
(if (and delete-selection-mode transient-mark-mode mark-active)
|
||||
(setq deactivate-mark t)
|
||||
(when (get-buffer "*Completions*") (delete-windows-on "*Completions*"))
|
||||
(abort-recursive-edit)))
|
||||
|
||||
(general-define-key
|
||||
:keymaps '(normal visual global)
|
||||
[escape] 'keyboard-quit)
|
||||
|
||||
(general-define-key
|
||||
:keymaps '(minibuffer-local-map
|
||||
minibuffer-local-ns-map
|
||||
minibuffer-local-completion-map
|
||||
minibuffer-local-must-match-map
|
||||
minibuffer-local-isearch-map)
|
||||
[escape] 'minibuffer-keyboard-quit)
|
||||
|
||||
(general-define-key
|
||||
:keymaps 'my-intercept-mode-map
|
||||
:keymaps 'override
|
||||
"C-<right>" 'evil-window-right
|
||||
"C-<left>" 'evil-window-left
|
||||
"C-<up>" 'evil-window-up
|
||||
|
|
@ -169,53 +203,10 @@ then it takes a second \\[keyboard-quit] to abort the minibuffer."
|
|||
"C-h" 'evil-window-left
|
||||
"C-l" 'evil-window-right
|
||||
"C-k" 'evil-window-up
|
||||
"C-j" 'evil-window-down)
|
||||
|
||||
(use-package evil
|
||||
:straight t
|
||||
:init
|
||||
(setq evil-want-integration t)
|
||||
(setq evil-want-keybinding nil)
|
||||
:config
|
||||
(evil-mode 1)
|
||||
(setq evil-search-module 'evil-search)
|
||||
(setq evil-split-window-below t)
|
||||
(setq evil-vsplit-window-right t)
|
||||
;; (setq evil-respect-visual-line-mode t)
|
||||
(evil-set-undo-system 'undo-tree)
|
||||
;; (add-to-list 'evil-emacs-state-modes 'dired-mode)
|
||||
"C-j" 'evil-window-down
|
||||
"C-x h" 'previous-buffer
|
||||
"C-x l" 'next-buffer
|
||||
)
|
||||
|
||||
(dolist (state '(normal visual insert))
|
||||
(evil-make-intercept-map
|
||||
(evil-get-auxiliary-keymap my-intercept-mode-map state t t)
|
||||
state))
|
||||
|
||||
(use-package evil-numbers
|
||||
:straight t)
|
||||
|
||||
(use-package evil-surround
|
||||
:straight t
|
||||
:config
|
||||
(global-evil-surround-mode 1))
|
||||
|
||||
(use-package evil-commentary
|
||||
:straight t
|
||||
:config
|
||||
(evil-commentary-mode))
|
||||
|
||||
(use-package evil-collection
|
||||
:straight t
|
||||
:config
|
||||
(evil-collection-init '(eww dired dasboard company vterm flycheck)))
|
||||
|
||||
(use-package evil-quickscope
|
||||
:straight t
|
||||
:config
|
||||
:hook (
|
||||
(prog-mode . turn-on-evil-quickscope-mode)
|
||||
(LaTeX-mode . turn-on-evil-quickscope-mode)
|
||||
))
|
||||
|
||||
;; (use-package evil-mc
|
||||
;; :straight t
|
||||
|
|
@ -511,7 +502,7 @@ then it takes a second \\[keyboard-quit] to abort the minibuffer."
|
|||
"h" 'dired-single-up-directory
|
||||
"l" 'dired-single-buffer
|
||||
"=" 'dired-narrow
|
||||
"gc" 'dired-create-empty-file
|
||||
"-" 'dired-create-empty-file
|
||||
(kbd "<left>") 'dired-single-up-directory
|
||||
(kbd "<right>") 'dired-single-buffer))
|
||||
|
||||
|
|
@ -767,7 +758,7 @@ then it takes a second \\[keyboard-quit] to abort the minibuffer."
|
|||
(global-hl-line-mode 1)
|
||||
|
||||
(general-define-key
|
||||
:keymaps 'my-intercept-mode-map
|
||||
:keymaps 'override
|
||||
:states '(normal emacs)
|
||||
"gt" 'tab-bar-switch-to-next-tab
|
||||
"gT" 'tab-bar-switch-to-prev-tab
|
||||
|
|
@ -952,6 +943,8 @@ then it takes a second \\[keyboard-quit] to abort the minibuffer."
|
|||
(require 'dap-chrome)
|
||||
(dap-chrome-setup)
|
||||
|
||||
(require 'dap-python)
|
||||
|
||||
(dap-mode 1)
|
||||
(dap-ui-mode 1)
|
||||
(dap-tooltip-mode 1)
|
||||
|
|
@ -1109,9 +1102,15 @@ then it takes a second \\[keyboard-quit] to abort the minibuffer."
|
|||
:keymaps 'plantuml-mode-map
|
||||
"RET" 'plantuml-preview)
|
||||
|
||||
(use-package fish-mode
|
||||
:straight t)
|
||||
|
||||
(use-package clips-mode
|
||||
:straight t)
|
||||
|
||||
(use-package dockerfile-mode
|
||||
:straight t)
|
||||
|
||||
(general-define-key
|
||||
:keymaps 'image-mode-map
|
||||
"q" 'kill-this-buffer)
|
||||
|
|
@ -1131,6 +1130,11 @@ then it takes a second \\[keyboard-quit] to abort the minibuffer."
|
|||
"+" 'text-scale-increase
|
||||
"-" 'text-scale-decrease)
|
||||
|
||||
(use-package ebuku
|
||||
:straight t)
|
||||
|
||||
(my-leader-def "ae" 'ebuku)
|
||||
|
||||
;; (use-package mpdel
|
||||
;; :straight t
|
||||
;; :init
|
||||
|
|
|
|||
8
config/.emacs.d/snippets/latex-mode/equation*
Normal file
8
config/.emacs.d/snippets/latex-mode/equation*
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: equation*
|
||||
# key: eq*
|
||||
# --
|
||||
\begin{equation*}
|
||||
$1
|
||||
\end{equation*}
|
||||
$0
|
||||
31
config/.tridactylrc
Normal file
31
config/.tridactylrc
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
sanitize tridactyllocal tridactylsync
|
||||
|
||||
bind gn tabnew
|
||||
bind gN tabclose
|
||||
|
||||
bind O fillcmdline tabopen
|
||||
|
||||
bind / fillcmdline find
|
||||
bind ? fillcmdline find -?
|
||||
bind n findnext 1
|
||||
bind N findnext -1
|
||||
|
||||
bind F hint -t
|
||||
|
||||
set smoothscroll false
|
||||
set findcase sensitive
|
||||
colorscheme base16-dracula
|
||||
|
||||
bind j scrollline 3
|
||||
bind k scrollline -3
|
||||
|
||||
guiset_quiet gui full
|
||||
guiset_quiet statuspanel left
|
||||
guiset_quiet navbar none
|
||||
guiset_quiet tabs always
|
||||
|
||||
set searchurls.g https://google.com/search?q=
|
||||
|
||||
command fixamo_quiet jsb tri.excmds.setpref("privacy.resistFingerprinting.block_mozAddonManager", "true").then(tri.excmds.setpref("extensions.webextensions.restrictedDomains", '""'))
|
||||
command fixamo js tri.excmds.setpref("privacy.resistFingerprinting.block_mozAddonManager", "true").then(tri.excmds.setpref("extensions.webextensions.restrictedDomains", '""').then(tri.excmds.fillcmdline_tmp(3000, "Permissions added to user.js. Please restart Firefox to make them take affect.")))
|
||||
fixamo_quiet
|
||||
|
|
@ -13,3 +13,7 @@ alias q="exit"
|
|||
# !! Contents within this block are managed by 'conda init' !!
|
||||
eval /home/pavel/Programs/miniconda3/bin/conda "shell.fish" "hook" $argv | source
|
||||
# <<< conda initialize <<<
|
||||
|
||||
if ! test -n "$TMUX"; and ! test -n "$IS_EMACS";
|
||||
colorscript random
|
||||
end
|
||||
|
|
@ -5,6 +5,8 @@ hide_edge_borders both
|
|||
# Use Mouse+$mod to drag floating windows to their wanted position
|
||||
floating_modifier $mod
|
||||
|
||||
mouse_warping output
|
||||
|
||||
# Apply XFCE Settings
|
||||
# exec "bash /home/pavel/.screenlayout/layout.sh"
|
||||
exec xfsettingsd
|
||||
|
|
@ -108,6 +110,7 @@ bindsym $mod+comma workspace prev
|
|||
bindsym $mod+period workspace next
|
||||
|
||||
assign [class="qutebrowser"] $w2
|
||||
assign [class="firefox"] $w2
|
||||
assign [class="VK"] $w3
|
||||
assign [class="Slack"] $w3
|
||||
assign [class="discord"] $w3
|
||||
|
|
@ -127,6 +130,7 @@ assign [class="Joplin"] $w8
|
|||
|
||||
for_window [title="ncmpcpp.*"] move to workspace $w9
|
||||
for_window [class="cinnamon-settings*"] floating enable
|
||||
for_window [title="Picture-in-Picture"] sticky enable
|
||||
# for_window [class=".*"] border pixel 0
|
||||
# reload the configuration file
|
||||
bindsym $mod+Shift+c reload
|
||||
|
|
@ -145,7 +149,6 @@ for_window [instance="dropdown_*"] move position center
|
|||
bindsym $mod+u exec ~/bin/scripts/dropdown
|
||||
|
||||
# Gaps
|
||||
|
||||
set $default_inner 0
|
||||
set $default_outer 0
|
||||
|
||||
|
|
@ -238,28 +241,44 @@ mode "move" {
|
|||
bindsym Escape mode "default"
|
||||
}
|
||||
|
||||
# dmenu
|
||||
bindsym $mod+d exec i3-dmenu-desktop --dmenu="dmenu -l 10"
|
||||
bindsym $mod+apostrophe mode "dmenu"
|
||||
# # dmenu
|
||||
# bindsym $mod+d exec i3-dmenu-desktop --dmenu="dmenu -l 10"
|
||||
# bindsym $mod+apostrophe mode "dmenu"
|
||||
|
||||
mode "dmenu" {
|
||||
bindsym d exec i3-dmenu-desktop --dmenu="dmenu -l 10"; mode default
|
||||
bindsym p exec dmenu_run -l 10; mode default
|
||||
bindsym m exec dmenu-man; mode default
|
||||
bindsym b exec dmenu-buku; mode default
|
||||
bindsym f exec dmenu-explore; mode default
|
||||
bindsym t exec dmenu-tmuxp; mode default
|
||||
# mode "dmenu" {
|
||||
# bindsym d exec i3-dmenu-desktop --dmenu="dmenu -l 10"; mode default
|
||||
# bindsym p exec dmenu_run -l 10; mode default
|
||||
# bindsym m exec dmenu-man; mode default
|
||||
# bindsym b exec dmenu-buku; mode default
|
||||
# bindsym f exec dmenu-explore; mode default
|
||||
# bindsym t exec dmenu-tmuxp; mode default
|
||||
# bindsym Escape mode "default"
|
||||
# }
|
||||
|
||||
# bindsym $mod+b exec --no-startup-id dmenu-buku
|
||||
|
||||
# rofi
|
||||
bindsym $mod+d exec "rofi -modi 'drun,run' -show drun"
|
||||
bindsym $mod+apostrophe mode "rofi"
|
||||
|
||||
mode "rofi" {
|
||||
bindsym d exec "rofi -modi 'drun,run' -show drun"
|
||||
bindsym m exec rofi-man; mode default
|
||||
bindsym b exec rofi-buku-mine; mode default
|
||||
# bindsym f exec dmenu-explore; mode default
|
||||
bindsym k exec rofi-keepassxc -d ~/MEGAsync/Passwords.kdbx; mode default
|
||||
bindsym Escape mode "default"
|
||||
}
|
||||
|
||||
bindsym $mod+b exec --no-startup-id dmenu-buku
|
||||
bindsym $mod+b exec --no-startup-id rofi-buku-mine
|
||||
|
||||
|
||||
# Launch apps
|
||||
bindsym $mod+semicolon mode "apps"
|
||||
|
||||
mode "apps" {
|
||||
bindsym Escape mode "default"
|
||||
bindsym b exec qutebrowser; mode default
|
||||
bindsym b exec firefox; mode default
|
||||
bindsym v exec vk-messenger; mode default
|
||||
bindsym s exec slack; mode default;
|
||||
bindsym m exec "st -e ncmpcpp"; mode default
|
||||
|
|
@ -274,7 +293,7 @@ bindsym $mod+Shift+x exec "i3lock -f -i /home/pavel/Pictures/lock-wallpaper-2-1.
|
|||
|
||||
# Colors
|
||||
set $bg-color #292d3e
|
||||
set $inactive-bg-color #434758ee
|
||||
set $inactive-bg-color #434758
|
||||
set $text-color #f3f4f5
|
||||
set $inactive-text-color #aaaaaa
|
||||
set $urgent-bg-color #f07178
|
||||
|
|
@ -283,7 +302,7 @@ set $urgent-text-color #000000
|
|||
# window colors
|
||||
# border background text indicator
|
||||
client.focused $bg-color $bg-color $text-color $bg-color
|
||||
client.unfocused $inactive-bg-color $inactive-bg-color $inactive-text-color $bg-color
|
||||
client.unfocused $bg-color $inactive-bg-color $inactive-text-color $bg-color
|
||||
client.focused_inactive $inactive-bg-color $inactive-bg-color $inactive-text-color $bg-color
|
||||
client.urgent $urgent-bg-color $urgent-bg-color $urgent-text-color $bg-color
|
||||
|
||||
|
|
|
|||
|
|
@ -119,7 +119,7 @@ label-mode-background = ${colors.blue}
|
|||
|
||||
; focused = Active workspace on focused monitor
|
||||
label-focused = %name%
|
||||
label-focused-background = ${colors.background-alt}
|
||||
label-focused-background = ${colors.background}
|
||||
label-focused-underline= ${colors.blue}
|
||||
label-focused-padding = 1
|
||||
|
||||
|
|
|
|||
25
config/pulseaudio-ctl/config
Normal file
25
config/pulseaudio-ctl/config
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
#
|
||||
# $HOME/.config/pulseaudio-ctl/config
|
||||
#
|
||||
|
||||
# The default setting is for pulseaudio-ctl to NOT increase to volume level
|
||||
# above 100 % but Some users may wish exceed this level. If this describes
|
||||
# your use case, uncomment the UPPER_THRESHOLD variable below setting it to
|
||||
# the new upper threshold.
|
||||
#
|
||||
UPPER_THRESHOLD=150
|
||||
|
||||
# Push output through libnotify. Set to any value to enable this feature
|
||||
# and note that you must have /usr/bin/notify-send to use this. On Arch
|
||||
# libnotify provides this. Other distros may not name it as such.
|
||||
#
|
||||
#NOTIFY=yes
|
||||
|
||||
# Show a graphical progress-bar type visualization of the volume level in
|
||||
# libnotify. No setting or commented out will show a simply percentage but
|
||||
# a setting will convert the percentage to a progress-bar in libnotify.
|
||||
#
|
||||
#BARCHART=yes
|
||||
|
||||
# Use KDE OSD notification. Set to any value to enable this feature.
|
||||
#KDE_OSD=yes
|
||||
152
config/rofi/config.rasi
Normal file
152
config/rofi/config.rasi
Normal file
|
|
@ -0,0 +1,152 @@
|
|||
* {
|
||||
black: #292d3e;
|
||||
red: #f07178;
|
||||
green: #c3e88d;
|
||||
yellow: #ffcb6b;
|
||||
blue: #82aaff;
|
||||
magenta: #82aaff;
|
||||
cyan: #89ddff;
|
||||
white: #d0d0d0;
|
||||
black-alternate: #393F57;
|
||||
black-lighter: #434758;
|
||||
red-lighter: #ff8b92;
|
||||
green-lighter: #ddffa7;
|
||||
yellow-lighter: #ffe585;
|
||||
blue-lighter: #9cc4ff;
|
||||
magenta-lighter: #e1acff;
|
||||
cyan-lighter: #a3f7ff;
|
||||
white-lighter: #ffffff;
|
||||
|
||||
foreground: @white;
|
||||
background: @black;
|
||||
background-color: @black;
|
||||
separatorcolor: @magenta;
|
||||
border-color: @magenta;
|
||||
selected-normal-foreground: @black;
|
||||
selected-normal-background: @magenta;
|
||||
selected-active-foreground: @black;
|
||||
selected-active-background: @blue;
|
||||
selected-urgent-foreground: @foreground;
|
||||
selected-urgent-background: @red;
|
||||
normal-foreground: @foreground;
|
||||
normal-background: @background;
|
||||
active-foreground: @blue;
|
||||
active-background: @background;
|
||||
urgent-foreground: @red;
|
||||
urgent-background: @background;
|
||||
alternate-normal-foreground: @foreground;
|
||||
alternate-normal-background: @black-alternate;
|
||||
alternate-active-foreground: @blue;
|
||||
alternate-active-background: @black-alternate;
|
||||
alternate-urgent-foreground: @red;
|
||||
alternate-urgent-background: @black-alternate;
|
||||
spacing: 2;
|
||||
}
|
||||
window {
|
||||
background-color: @background;
|
||||
border: 1;
|
||||
padding: 5;
|
||||
}
|
||||
mainbox {
|
||||
border: 0;
|
||||
padding: 0;
|
||||
}
|
||||
message {
|
||||
border: 1px dash 0px 0px ;
|
||||
border-color: @separatorcolor;
|
||||
padding: 1px ;
|
||||
}
|
||||
textbox {
|
||||
text-color: @foreground;
|
||||
}
|
||||
listview {
|
||||
fixed-height: 0;
|
||||
border: 2px dash 0px 0px ;
|
||||
border-color: @separatorcolor;
|
||||
spacing: 2px ;
|
||||
scrollbar: true;
|
||||
padding: 2px 0px 0px ;
|
||||
}
|
||||
element {
|
||||
border: 0;
|
||||
padding: 1px ;
|
||||
}
|
||||
element normal.normal {
|
||||
background-color: @normal-background;
|
||||
text-color: @normal-foreground;
|
||||
}
|
||||
element normal.urgent {
|
||||
background-color: @urgent-background;
|
||||
text-color: @urgent-foreground;
|
||||
}
|
||||
element normal.active {
|
||||
background-color: @active-background;
|
||||
text-color: @active-foreground;
|
||||
}
|
||||
element selected.normal {
|
||||
background-color: @selected-normal-background;
|
||||
text-color: @selected-normal-foreground;
|
||||
}
|
||||
element selected.urgent {
|
||||
background-color: @selected-urgent-background;
|
||||
text-color: @selected-urgent-foreground;
|
||||
}
|
||||
element selected.active {
|
||||
background-color: @selected-active-background;
|
||||
text-color: @selected-active-foreground;
|
||||
}
|
||||
element alternate.normal {
|
||||
background-color: @alternate-normal-background;
|
||||
text-color: @alternate-normal-foreground;
|
||||
}
|
||||
element alternate.urgent {
|
||||
background-color: @alternate-urgent-background;
|
||||
text-color: @alternate-urgent-foreground;
|
||||
}
|
||||
element alternate.active {
|
||||
background-color: @alternate-active-background;
|
||||
text-color: @alternate-active-foreground;
|
||||
}
|
||||
scrollbar {
|
||||
width: 4px ;
|
||||
border: 0;
|
||||
handle-color: @normal-foreground;
|
||||
handle-width: 8px ;
|
||||
padding: 0;
|
||||
}
|
||||
sidebar {
|
||||
border: 2px dash 0px 0px ;
|
||||
border-color: @separatorcolor;
|
||||
}
|
||||
button {
|
||||
spacing: 0;
|
||||
text-color: @normal-foreground;
|
||||
}
|
||||
button selected {
|
||||
background-color: @selected-normal-background;
|
||||
text-color: @selected-normal-foreground;
|
||||
}
|
||||
inputbar {
|
||||
spacing: 0px;
|
||||
text-color: @normal-foreground;
|
||||
padding: 1px ;
|
||||
children: [ prompt,textbox-prompt-colon,entry,case-indicator ];
|
||||
}
|
||||
case-indicator {
|
||||
spacing: 0;
|
||||
text-color: @normal-foreground;
|
||||
}
|
||||
entry {
|
||||
spacing: 0;
|
||||
text-color: @normal-foreground;
|
||||
}
|
||||
prompt {
|
||||
spacing: 0;
|
||||
text-color: @normal-foreground;
|
||||
}
|
||||
textbox-prompt-colon {
|
||||
expand: false;
|
||||
str: ":";
|
||||
margin: 0px 0.3000em 0.0000em 0.0000em ;
|
||||
text-color: inherit;
|
||||
}
|
||||
159
config/themes/base16-dracula.css
Normal file
159
config/themes/base16-dracula.css
Normal file
|
|
@ -0,0 +1,159 @@
|
|||
:root { /* Dracula by Chris Kempson (http://chriskempson.com) */
|
||||
--base00: #292d3e;
|
||||
--base01: #3a3c4e;
|
||||
--base02: #434758;
|
||||
--base03: #626483;
|
||||
--base04: #82aaff;
|
||||
--base05: #e9e9f4;
|
||||
--base06: #f1f2f8;
|
||||
--base07: #f7f7fb;
|
||||
--base08: #f07178;
|
||||
--base09: #c792ea;
|
||||
--base0A: #c3e88d;
|
||||
--base0B: #ffcb6b;
|
||||
--base0C: #89ddff;
|
||||
--base0D: #82aaff;
|
||||
--base0E: #c792ea;
|
||||
--base0F: #c3e88d;
|
||||
|
||||
--tridactyl-fg: var(--base05);
|
||||
--tridactyl-bg: var(--base00);
|
||||
--tridactyl-url-fg: var(--base08);
|
||||
--tridactyl-url-bg: var(--base00);
|
||||
--tridactyl-highlight-box-bg: var(--base0B);
|
||||
--tridactyl-highlight-box-fg: var(--base00);
|
||||
|
||||
/* Hint character tags */
|
||||
--tridactyl-hintspan-fg: var(--base00) !important;
|
||||
--tridactyl-hintspan-bg: var(--base0A) !important;
|
||||
|
||||
/* Element Highlights */
|
||||
--tridactyl-hint-active-fg: none;
|
||||
--tridactyl-hint-active-bg: none;
|
||||
--tridactyl-hint-active-outline: none;
|
||||
/* --tridactyl-hint-activy-outline: var(--base08); */
|
||||
--tridactyl-hint-bg: none;
|
||||
--tridactyl-hint-outline: none;
|
||||
/* --tridactyl-hint-outline: var(--base08); */
|
||||
}
|
||||
|
||||
/* a { */
|
||||
/* color: var(--base04); */
|
||||
/* } */
|
||||
|
||||
#command-line-holder { order: 1;
|
||||
border: 2px solid var(--base0B);
|
||||
color: var(--tridactyl-bg);
|
||||
}
|
||||
|
||||
#tridactyl-input { padding: 1rem;
|
||||
color: var(--tridactyl-fg);
|
||||
width: 90%;
|
||||
font-size: 1.2rem;
|
||||
line-height: 1.5;
|
||||
background: var(--tridactyl-bg);
|
||||
padding-left: unset;
|
||||
padding: 1rem;
|
||||
}
|
||||
|
||||
#completions table { font-size: 0.8rem;
|
||||
font-weight: 200;
|
||||
border-spacing: 0;
|
||||
table-layout: fixed;
|
||||
padding: 1rem;
|
||||
padding-top: 1rem;
|
||||
padding-bottom: 1rem;
|
||||
}
|
||||
|
||||
#completions > div { max-height: calc(20 * var(--option-height));
|
||||
min-height: calc(10 * var(--option-height));
|
||||
}
|
||||
|
||||
/* COMPLETIONS */
|
||||
|
||||
#completions { --option-height: 1.4em;
|
||||
color: var(--tridactyl-fg);
|
||||
background: var(--tridactyl-bg);
|
||||
display: inline-block;
|
||||
font-size: unset;
|
||||
font-weight: 200;
|
||||
overflow: hidden;
|
||||
width: 100%;
|
||||
border-top: unset;
|
||||
order: 2;
|
||||
}
|
||||
|
||||
/* Olie doesn't know how CSS inheritance works */
|
||||
#completions .HistoryCompletionSource { max-height: unset;
|
||||
min-height: unset;
|
||||
}
|
||||
|
||||
#completions .HistoryCompletionSource table { width: 100%;
|
||||
font-size: 11pt;
|
||||
border-spacing: 0;
|
||||
table-layout: fixed;
|
||||
}
|
||||
|
||||
/* redundancy 2: redundancy 2: more redundancy */
|
||||
#completions .BmarkCompletionSource { max-height: unset;
|
||||
min-height: unset;
|
||||
}
|
||||
|
||||
#completions table tr td.prefix,#completions table tr td.privatewindow,#completions table tr td.container,#completions table tr td.icon { display: none;
|
||||
}
|
||||
|
||||
#completions .BufferCompletionSource table { width: unset;
|
||||
font-size: unset;
|
||||
border-spacing: unset;
|
||||
table-layout: unset;
|
||||
}
|
||||
|
||||
#completions table tr .title { width: 50%;
|
||||
}
|
||||
|
||||
#completions table tr { white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
#completions .sectionHeader { background: unset;
|
||||
font-weight: 200;
|
||||
border-bottom: unset;
|
||||
padding: 1rem !important;
|
||||
padding-left: unset;
|
||||
padding-bottom: 0.2rem;
|
||||
}
|
||||
|
||||
#cmdline_iframe { position: fixed !important;
|
||||
bottom: unset;
|
||||
top: 25% !important;
|
||||
left: 10% !important;
|
||||
z-index: 2147483647 !important;
|
||||
width: 80% !important;
|
||||
box-shadow: rgba(0, 0, 0, 0.5) 0px 0px 20px !important;
|
||||
}
|
||||
|
||||
.TridactylStatusIndicator { position: fixed !important;
|
||||
bottom: 0 !important;
|
||||
background: var(--tridactyl-bg) !important;
|
||||
border: unset !important;
|
||||
border: 1px var(--base0B) solid !important;
|
||||
font-size: 12pt !important;
|
||||
/*font-weight: 200 !important;*/
|
||||
padding: 0.8ex !important;
|
||||
}
|
||||
|
||||
#completions .focused { background: var(--base0B);
|
||||
color: var(--base00);
|
||||
}
|
||||
|
||||
#completions .focused .url { background: var(--base0B);
|
||||
color: var(--base00);
|
||||
}
|
||||
/* #Ocean-normal { */
|
||||
/* border-color: green !important; */
|
||||
/* } */
|
||||
|
||||
/* #Ocean-insert { */
|
||||
/* border-color: yellow !important; */
|
||||
/* } */
|
||||
Loading…
Add table
Reference in a new issue