mirror of
https://github.com/js0ny/dotfiles.git
synced 2025-12-21 00:33:00 +00:00
Sync from Windows
This commit is contained in:
parent
85ac355294
commit
5593edde3a
8 changed files with 75 additions and 11 deletions
|
|
@ -4,3 +4,8 @@ REG ADD "HKEY_CURRENT_USER\Control Panel\Accessibility\StickyKeys" /v "Flags" /t
|
||||||
|
|
||||||
# Disable Hyper+Keys to open Office apps
|
# Disable Hyper+Keys to open Office apps
|
||||||
REG ADD HKCU\Software\Classes\ms-officeapp\Shell\Open\Command /t REG_SZ /d rundll32
|
REG ADD HKCU\Software\Classes\ms-officeapp\Shell\Open\Command /t REG_SZ /d rundll32
|
||||||
|
|
||||||
|
# Disable DOS 8.3 file name creation
|
||||||
|
sudo fsutil 8dot3name set 1
|
||||||
|
# Delete all known DOS 8.3 file name
|
||||||
|
fsutil 8dot3name strip /s /v C:\
|
||||||
|
|
|
||||||
13
platforms/wsl/systemd/symlink-wayland-socket.service
Normal file
13
platforms/wsl/systemd/symlink-wayland-socket.service
Normal file
|
|
@ -0,0 +1,13 @@
|
||||||
|
# https://github.com/microsoft/WSL/issues/11261
|
||||||
|
# Cannot use GUI apps/tools as Wayland socket doesn't exist in `XDG_RUNTIME_DIR`
|
||||||
|
|
||||||
|
[Unit]
|
||||||
|
Description=Symlink Wayland socket to XDG_RUNTIME_DIR
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=oneshot
|
||||||
|
ExecStart=/usr/bin/ln -s /mnt/wslg/runtime-dir/wayland-0 $XDG_RUNTIME_DIR
|
||||||
|
ExecStart=/usr/bin/ln -s /mnt/wslg/runtime-dir/wayland-0.lock $XDG_RUNTIME_DIR
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=default.target
|
||||||
|
|
@ -55,7 +55,7 @@
|
||||||
;; This determines the style of line numbers in effect. If set to `nil', line
|
;; This determines the style of line numbers in effect. If set to `nil', line
|
||||||
;; numbers are disabled. For relative line numbers, set this to `relative'.
|
;; numbers are disabled. For relative line numbers, set this to `relative'.
|
||||||
(setq display-line-numbers t)
|
(setq display-line-numbers t)
|
||||||
(setq display-line-numbers-type 'relative)
|
(setq display-line-numbers-type 'visual)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -93,6 +93,18 @@
|
||||||
;; they are implemented.
|
;; they are implemented.
|
||||||
|
|
||||||
(add-to-list 'load-path (expand-file-name "lisp" doom-user-dir))
|
(add-to-list 'load-path (expand-file-name "lisp" doom-user-dir))
|
||||||
|
(setq doom-local-dir (expand-file-name "emacs" (getenv "XDG_DATA_HOME")))
|
||||||
|
(setq doom-data-dir (expand-file-name "etc" doom-local-dir))
|
||||||
|
|
||||||
|
(after! recentf
|
||||||
|
(setq recentf-max-saved-items 200)
|
||||||
|
(add-to-list 'recentf-exclude "\\.revive$")
|
||||||
|
(add-to-list 'recentf-exclude "\\.windows$")
|
||||||
|
(add-to-list 'recentf-exclude "\\.#.+$")
|
||||||
|
(add-to-list 'recentf-exclude "^/tmp/")
|
||||||
|
(add-to-list 'recentf-exclude "COMMIT_EDITMSG\\'")
|
||||||
|
)[1][2]
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
(after! wakatime-mode
|
(after! wakatime-mode
|
||||||
|
|
@ -119,11 +131,13 @@
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
(use-package! rime
|
(if (not (eq system-type 'windows-nt))
|
||||||
:config
|
(use-package! rime
|
||||||
(setq default-input-method "rime")
|
:config
|
||||||
(add-hook! (org-mode markdown-mode) (activate-input-method default-input-method))
|
(setq default-input-method "rime")
|
||||||
)
|
(add-hook! (org-mode markdown-mode) (activate-input-method default-input-method))
|
||||||
|
(setq rime-user-data-dir (expand-file-name "emacs-rime" (getenv "XDG_CONFIG_HOME")))
|
||||||
|
))
|
||||||
|
|
||||||
(load! "calendar.el")
|
(load! "calendar.el")
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -8,11 +8,18 @@
|
||||||
(require 'org-pomodoro)
|
(require 'org-pomodoro)
|
||||||
|
|
||||||
;; Variables
|
;; Variables
|
||||||
(defcustom org-pomodoro-music-player-command "playerctl"
|
|
||||||
|
(defcustom org-pomodoro-music-player-command
|
||||||
|
(cond
|
||||||
|
((eq system-type 'windows-nt) "clmcontrol")
|
||||||
|
((eq system-type 'darwin) "nowplaying-cli")
|
||||||
|
((eq system-type 'gnu/linux) "playerctl")
|
||||||
|
(t "playerctl"))
|
||||||
"Command to control the music player."
|
"Command to control the music player."
|
||||||
:type 'string
|
:type 'string
|
||||||
:group 'org-pomodoro)
|
:group 'org-pomodoro)
|
||||||
|
|
||||||
|
|
||||||
(defcustom org-pomodoro-music-player-args nil
|
(defcustom org-pomodoro-music-player-args nil
|
||||||
"Arguments to pass to the music player command."
|
"Arguments to pass to the music player command."
|
||||||
:type '(repeat string)
|
:type '(repeat string)
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
;; If you use `org' and don't want your org files in the default location below,
|
;; If use `org' and don't want your org files in the default location below,
|
||||||
;; change `org-directory'. It must be set before org loads!
|
;; change `org-directory'. It must be set before org loads!
|
||||||
(setq org-directory "~/OrgFiles/")
|
(setq org-directory "~/OrgFiles/")
|
||||||
;; (setq org-roam-directory "~/OrgFiles/roam/")
|
;; (setq org-roam-directory "~/OrgFiles/roam/")
|
||||||
|
|
@ -29,6 +29,14 @@
|
||||||
(setq org-todo-keywords '((sequence "TODO(t)" "NEXT(n)" "WAIT(w@/!)" "|" "DONE(d@/!)" "CANCELLED(c@)")
|
(setq org-todo-keywords '((sequence "TODO(t)" "NEXT(n)" "WAIT(w@/!)" "|" "DONE(d@/!)" "CANCELLED(c@)")
|
||||||
))
|
))
|
||||||
|
|
||||||
|
(setq org-todo-keyword-faces
|
||||||
|
'(("TODO" . (:foreground "red" :weight bold :background "yellow"))
|
||||||
|
("NEXT" . (:foreground "blue" :weight bold :background "lightgray"))
|
||||||
|
("WAIT" . (:foreground "orange" :weight bold))
|
||||||
|
("DONE" . (:foreground "grey" :weight bold :italic t))
|
||||||
|
("CANCELLED" . (:foreground "grey" :weight bold))
|
||||||
|
))
|
||||||
|
|
||||||
;; Keymaps
|
;; Keymaps
|
||||||
(map! :map org-mode-map
|
(map! :map org-mode-map
|
||||||
:desc "Bold with ZWS" "C-c b" (lambda () (interactive) (my/insert-emphasis-with-zws ?*))
|
:desc "Bold with ZWS" "C-c b" (lambda () (interactive) (my/insert-emphasis-with-zws ?*))
|
||||||
|
|
@ -196,7 +204,7 @@
|
||||||
|
|
||||||
;;; org-babel
|
;;; org-babel
|
||||||
|
|
||||||
(if (bound-and-true-p ISMAC)
|
(if (not (eq system-type 'gnu/linux))
|
||||||
(setq org-babel-C-compiler "clang"))
|
(setq org-babel-C-compiler "clang"))
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -21,3 +21,17 @@ set --export PATH $BUN_INSTALL/bin $PATH
|
||||||
fish_add_path "$HOME/.moon/bin"
|
fish_add_path "$HOME/.moon/bin"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# >>> conda initialize >>>
|
||||||
|
# !! Contents within this block are managed by 'conda init' !!
|
||||||
|
if test -f /home/js0ny/.local/anaconda3/bin/conda
|
||||||
|
eval /home/js0ny/.local/anaconda3/bin/conda "shell.fish" "hook" $argv | source
|
||||||
|
else
|
||||||
|
if test -f "/home/js0ny/.local/anaconda3/etc/fish/conf.d/conda.fish"
|
||||||
|
. "/home/js0ny/.local/anaconda3/etc/fish/conf.d/conda.fish"
|
||||||
|
else
|
||||||
|
set -x PATH "/home/js0ny/.local/anaconda3/bin" $PATH
|
||||||
|
end
|
||||||
|
end
|
||||||
|
# <<< conda initialize <<<
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -45,4 +45,7 @@ return {
|
||||||
-- { "<leader>gg", "<cmd>LazyGit<cr>", desc = "LazyGit" },
|
-- { "<leader>gg", "<cmd>LazyGit<cr>", desc = "LazyGit" },
|
||||||
-- },
|
-- },
|
||||||
-- },
|
-- },
|
||||||
|
{
|
||||||
|
"NeogitOrg/neogit"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -23,8 +23,8 @@
|
||||||
"ui_font_size": 16,
|
"ui_font_size": 16,
|
||||||
"buffer_font_size": null,
|
"buffer_font_size": null,
|
||||||
"theme": {
|
"theme": {
|
||||||
"mode": "dark",
|
"mode": "system",
|
||||||
"light": "Catppuccin Latte",
|
"light": "Rosé Pine Dawn",
|
||||||
"dark": "Catppuccin Mocha"
|
"dark": "Catppuccin Mocha"
|
||||||
},
|
},
|
||||||
"relative_line_numbers": true,
|
"relative_line_numbers": true,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue