mirror of
https://github.com/js0ny/dotfiles.git
synced 2025-12-21 08:43:00 +00:00
Merge branch 'master' of github.com:js0ny/dotfiles
This commit is contained in:
commit
bba2c8813f
11 changed files with 153 additions and 40 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -36,3 +36,4 @@ gitconfig
|
|||
spacemacs/
|
||||
|
||||
lazy-lock.json
|
||||
tools/doom/custom.el
|
||||
|
|
|
|||
|
|
@ -83,16 +83,13 @@ exec-once = fcitx5 &
|
|||
exec-once = wl-paste --watch cliphist store
|
||||
# exec-once = QT_SCALE_FACTOR=1 albert &
|
||||
# Bluetooth Manager
|
||||
exec-once = blueman-tray &
|
||||
exec-once = blueman-applet &
|
||||
# Time Tracker
|
||||
exec-once = aw-qt &
|
||||
# https://github.com/hyprwm/Hyprland/discussions/5867
|
||||
exec = gsettings set org.gnome.desktop.interface gtk-theme "Breeze-Dark" # for GTK3 apps
|
||||
exec = gsettings set org.gnome.desktop.interface color-scheme "prefer-dark" # for GTK4 apps
|
||||
|
||||
env = QT_QPA_PLATFORMTHEME,qt6ct # for Qt apps
|
||||
# https://discuss.kde.org/t/the-themes-i-use-with-qt6ct-are-not-applied-in-discover/17118
|
||||
env = QT_QUICK_CONTROLS_STYLE,org.kde.desktop
|
||||
|
||||
|
||||
|
||||
|
|
@ -105,6 +102,13 @@ env = QT_QUICK_CONTROLS_STYLE,org.kde.desktop
|
|||
# env = XCURSOR_SIZE,24
|
||||
env = HYPRCURSOR_SIZE,24
|
||||
|
||||
env = QT_QPA_PLATFORMTHEME,qt6ct # for Qt apps
|
||||
# https://discuss.kde.org/t/the-themes-i-use-with-qt6ct-are-not-applied-in-discover/17118
|
||||
env = QT_QUICK_CONTROLS_STYLE,org.kde.desktop
|
||||
|
||||
env = LC_CTYPE,zh_CN.UTF-8
|
||||
env = LC_ALL,zh_CN.UTF-8
|
||||
|
||||
|
||||
#####################
|
||||
### LOOK AND FEEL ###
|
||||
|
|
|
|||
|
|
@ -514,6 +514,19 @@ mapkey(",R", "Toggle [R]easoning with [R]1", function () {
|
|||
}, { domain: /perplexity.ai/ });
|
||||
// #endregion
|
||||
|
||||
// #region sspai.com
|
||||
unmap("[[", /sspai.com/);
|
||||
unmap("]]", /sspai.com/);
|
||||
unmap(",", /sspai.com/);
|
||||
mapkey("[[", "Previous Page", function () {
|
||||
q("button.btn-prev").click();
|
||||
}, { domain: /sspai.com/ });
|
||||
mapkey("]]", "Next Page", function () {
|
||||
q("button.btn-next").click();
|
||||
}, { domain: /sspai.com/ });
|
||||
|
||||
// #endregion
|
||||
|
||||
// #region pixiv.net
|
||||
// Use site-specific paging method
|
||||
unmap("[[", /pixiv.net/);
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@
|
|||
;; See 'C-h v doom-font' for documentation and more examples of what they
|
||||
;; accept. For example:
|
||||
;;
|
||||
(setq doom-font (font-spec :family "JetBrainsMono Nerd Font" :size 14 :weight 'semi-light)
|
||||
(setq doom-font (font-spec :family "Iosevka Nerd Font Propo" :size 14 :weight 'semi-light)
|
||||
doom-variable-pitch-font (font-spec :family "JetBrainsMono Nerd Font" :size 13))
|
||||
;;
|
||||
;; If you or Emacs can't find your font, use 'M-x describe-font' to look them
|
||||
|
|
@ -105,36 +105,8 @@
|
|||
|
||||
|
||||
(after! wakatime-mode
|
||||
(global-wakatime-mode))
|
||||
|
||||
;; For CJK users
|
||||
;; Insert zero width space around the emphasis symbols, this might be useful for
|
||||
;; languages that does not rely on space
|
||||
(after! org
|
||||
(defun my/insert-emphasis-with-zws (char)
|
||||
(interactive "c")
|
||||
(insert ?\u200B char)
|
||||
(save-excursion (insert char ?\u200B)))
|
||||
|
||||
(map! :map org-mode-map
|
||||
"C-c b" (lambda () (interactive) (my/insert-emphasis-with-zws ?*))
|
||||
"C-c i" (lambda () (interactive) (my/insert-emphasis-with-zws ?/))
|
||||
"C-c u" (lambda () (interactive) (my/insert-emphasis-with-zws ?_))))
|
||||
(global-wakatime-mode)
|
||||
(setq wakatime-cli-path "~/.local/bin/wakatime"))
|
||||
|
||||
|
||||
(after! org-agenda
|
||||
(map! :map evil-org-agenda-mode-map
|
||||
:nv "n" #'org-agenda-next-line
|
||||
:nv "e" #'org-agenda-previous-line
|
||||
"gn" 'org-agenda-next-item
|
||||
"ge" 'org-agenda-previous-item
|
||||
:nv "i" #'evil-forward-char))
|
||||
|
||||
|
||||
(map! :map evil-org-agenda-mode-map
|
||||
:after org-agenda
|
||||
:m "n" #'org-agenda-next-line
|
||||
:m "e" #'org-agenda-previous-line
|
||||
:m "gn" #'org-agenda-next-item
|
||||
:m "i" #'evil-forward-char
|
||||
:m "ge" #'org-agenda-previous-item)
|
||||
(load! "org.el")
|
||||
|
|
|
|||
|
|
@ -4,10 +4,11 @@
|
|||
;; Your init file should contain only one such instance.
|
||||
;; If there is more than one, they won't work right.
|
||||
'(custom-safe-themes
|
||||
'("2b501400e19b1dd09d8b3708cefcb5227fda580754051a24e8abf3aff0601f87" default)))
|
||||
'("3c08da65265d80a7c8fc99fe51df3697d0fa6786a58a477a1b22887b4f116f62" "df6dfd55673f40364b1970440f0b0cb8ba7149282cf415b81aaad2d98b0f0290" "0325a6b5eea7e5febae709dab35ec8648908af12cf2d2b569bedc8da0a3a81c1" "d6b934330450d9de1112cbb7617eaf929244d192c4ffb1b9e6b63ad574784aad" "56044c5a9cc45b6ec45c0eb28df100d3f0a576f18eef33ff8ff5d32bac2d9700" "2b501400e19b1dd09d8b3708cefcb5227fda580754051a24e8abf3aff0601f87" default)))
|
||||
(custom-set-faces
|
||||
;; custom-set-faces was added by Custom.
|
||||
;; If you edit it by hand, you could mess it up, so be careful.
|
||||
;; Your init file should contain only one such instance.
|
||||
;; If there is more than one, they won't work right.
|
||||
)
|
||||
'(org-verbatim ((t (:foreground "orange")))))
|
||||
(put 'customize-face 'disabled nil)
|
||||
|
|
|
|||
|
|
@ -36,8 +36,8 @@
|
|||
;;(emoji +unicode) ; 🙂
|
||||
hl-todo ; highlight TODO/FIXME/NOTE/DEPRECATED/HACK/REVIEW
|
||||
indent-guides ; highlighted indent columns
|
||||
;;ligatures ; ligatures and symbols to make your code pretty again
|
||||
;;minimap ; show a map of the code on the side
|
||||
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
|
||||
;;neotree ; a project drawer, like NERDTree for vim
|
||||
|
|
|
|||
37
tools/doom/org.el
Normal file
37
tools/doom/org.el
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
|
||||
;; For CJK users
|
||||
;; Insert zero width space around the emphasis symbols, this might be useful for
|
||||
;; languages that does not rely on space
|
||||
(after! org
|
||||
(defun my/insert-emphasis-with-zws (char)
|
||||
(interactive "c")
|
||||
(insert ?\u200B char)
|
||||
(save-excursion (insert char ?\u200B)))
|
||||
|
||||
(map! :map org-mode-map
|
||||
"C-c b" (lambda () (interactive) (my/insert-emphasis-with-zws ?*))
|
||||
"C-c i" (lambda () (interactive) (my/insert-emphasis-with-zws ?/))
|
||||
"C-c u" (lambda () (interactive) (my/insert-emphasis-with-zws ?_)))
|
||||
|
||||
(map! :map evil-org-mode-map
|
||||
:nv "I" #'evil-next-buffer)
|
||||
|
||||
|
||||
(setq org-archive-location "~/OrgFiles/archive/%s_archive::")
|
||||
(setq org-default-notes-file "~/OrgFiles/tasks/inbox.org")
|
||||
(setq org-capture-templates
|
||||
'(("t" "Task" entry (file+headline "~/OrgFiles/tasks/inbox.org" "Tasks")
|
||||
"* TODO %?\n %U\n %a\n %i"
|
||||
:empty-lines 1)))
|
||||
)
|
||||
|
||||
|
||||
(after! org-agenda
|
||||
(map! :map evil-org-agenda-mode-map
|
||||
:nv "n" #'org-agenda-next-line
|
||||
:nv "e" #'org-agenda-previous-line
|
||||
"gn" 'org-agenda-next-item
|
||||
"ge" 'org-agenda-previous-item
|
||||
:nv "i" #'evil-forward-char)
|
||||
(setq org-agenda-files (directory-files-recursively "~/OrgFiles/tasks/" "\\.org$"))
|
||||
)
|
||||
9
tools/doom/snippets/org-mode/display-math
Normal file
9
tools/doom/snippets/org-mode/display-math
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: display-math
|
||||
# key: dm
|
||||
# expand-env: ((yas-indent-line 'fixed))
|
||||
# trigger-key: ""
|
||||
# --
|
||||
$$
|
||||
$1
|
||||
$$
|
||||
6
tools/doom/snippets/org-mode/inline-math
Normal file
6
tools/doom/snippets/org-mode/inline-math
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: inline-math
|
||||
# key: mk
|
||||
# expand-env: ((yas-indent-line 'fixed))
|
||||
# --
|
||||
$$1$
|
||||
36
tools/sioyek/keys_user.config
Normal file
36
tools/sioyek/keys_user.config
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
### Movement
|
||||
# move_left h
|
||||
move_down n
|
||||
move_up e
|
||||
# move_right i
|
||||
|
||||
move_visual_mark_up e
|
||||
move_visual_mark_down n
|
||||
|
||||
screen_down N
|
||||
screen_up E
|
||||
|
||||
|
||||
### Search
|
||||
next_item k
|
||||
previous_item K
|
||||
|
||||
|
||||
### Toggles
|
||||
toggle_fullscreen ,f
|
||||
toggle_custom_color ,d
|
||||
# toggle_dark_mode D
|
||||
toggle_dark_mode ,D
|
||||
## SyncTeX for LaTeX
|
||||
toggle_synctex ,s
|
||||
|
||||
# Mark
|
||||
goto_mark '
|
||||
|
||||
|
||||
### Misc
|
||||
quit Q
|
||||
|
||||
copy y
|
||||
|
||||
goto_toc <tab>
|
||||
34
tools/sioyek/prefs_user.config
Normal file
34
tools/sioyek/prefs_user.config
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
default_dark_mode 1
|
||||
font_size 14
|
||||
ui_font "PingFang SC"
|
||||
case_sensitive_search 0
|
||||
super_fast_search 1
|
||||
|
||||
### Colorscheme: CATPPUCCIN MOCHA
|
||||
### Trigger with D
|
||||
background_color #1e1e2e
|
||||
|
||||
text_highlight_color #f5c2e7
|
||||
visual_mark_color #7f849c
|
||||
|
||||
## Mauve
|
||||
search_highlight_color #cba6f7
|
||||
link_highlight_color #89b4fa
|
||||
synctex_highlight_color #a6e3a1
|
||||
|
||||
highlight_color_a #f9e2af
|
||||
highlight_color_b #a6e3a1
|
||||
highlight_color_c #89dceb
|
||||
highlight_color_d #eba0ac
|
||||
highlight_color_e #cba6f7
|
||||
highlight_color_f #f38ba8
|
||||
highlight_color_g #f9e2af
|
||||
|
||||
|
||||
custom_background_color #1e1e2e
|
||||
custom_text_color #cdd6f4
|
||||
|
||||
ui_text_color #cdd6f4
|
||||
ui_background_color #313244
|
||||
ui_selected_text_color #cdd6f4
|
||||
ui_selected_background_color #f5c2e7
|
||||
Loading…
Add table
Add a link
Reference in a new issue