14.10.2024 Monday 00:54

main
Petr Nyc 1 year ago
parent 2aab479968
commit eb9d882449
  1. 91
      .config/karabiner/assets/complex_modifications/1675026822.json
  2. 6934
      .config/karabiner/assets/complex_modifications/1675361151.json
  3. 1
      .config/karabiner/assets/complex_modifications/1694721429.json
  4. 2359
      .config/karabiner/karabiner.json
  5. 168
      .spacemacs
  6. 4
      .vimrc
  7. 1
      .zshrc
  8. 4
      bin/create_mrshughes

@ -0,0 +1,91 @@
{
"title": "Keyboard Brightness Adjustment",
"rules": [
{
"description": "command-f1 and f2 to adjust keyboard brightness",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "f1",
"modifiers": {
"mandatory": [
"left_command"
],
"optional": [
"caps_lock"
]
}
},
"to": [
{
"key_code": "illumination_decrement"
}
]
},
{
"type": "basic",
"from": {
"key_code": "f2",
"modifiers": {
"mandatory": [
"left_command"
],
"optional": [
"caps_lock"
]
}
},
"to": [
{
"key_code": "illumination_increment"
}
]
}
]
},
{
"description": "command-f5 and f6 to adjust keyboard brightness, same keys as earlier macs",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "f5",
"modifiers": {
"mandatory": [
"left_command"
],
"optional": [
"caps_lock"
]
}
},
"to": [
{
"key_code": "illumination_decrement"
}
]
},
{
"type": "basic",
"from": {
"key_code": "f6",
"modifiers": {
"mandatory": [
"left_command"
],
"optional": [
"caps_lock"
]
}
},
"to": [
{
"key_code": "illumination_increment"
}
]
}
]
}
]
}

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

@ -27,12 +27,13 @@ This function should only modify configuration layer settings."
dotspacemacs-ask-for-lazy-installation t
;; List of additional paths where to look for configuration layers.
;; Paths must have a trailing slash (i.e. `~/.mycontribs/')
;; Paths must have a trailing slash (i.e. "~/.mycontribs/")
dotspacemacs-configuration-layer-path '()
;; List of configuration layers to load.
dotspacemacs-configuration-layers
'(toml
'(
toml
html
python
javascript
@ -53,14 +54,12 @@ This function should only modify configuration layer settings."
(org :variables
org-enable-bootstrap-support t
org-enable-jira-support t
org-enable-roam-support t
org-enable-roam-ui t
org-roam-completion-everywhere t
;; org-enable-roam-support t
;; org-enable-roam-ui t
;; org-roam-completion-everywhere t
;; this does not work weel with my current font
;; org-enable-modern-support t
)
shell-scripts
dap ;; debugging
;; (shell :variables
;; shell-default-height 30
;; shell-default-position 'bottom)
@ -78,8 +77,9 @@ This function should only modify configuration layer settings."
;; `dotspacemacs/user-config'. To use a local version of a package, use the
;; `:location' property: '(your-package :location "~/path/to/your-package/")
;; Also include the dependencies as they will not be resolved automatically.
dotspacemacs-additional-packages '(grab-mac-link)
;; dotspacemacs-additional-packages '(org-mac-link :location "/Users/jetpac/org-mac-link.el")
;; as ofr Oct2024, MS Outlook does not support getting selected message via AppleScript
;; more here: https://forum.keyboardmaestro.com/t/new-outlook-applescript/31296
dotspacemacs-additional-packages '(
org-mac-link
org-alert
@ -118,7 +118,6 @@ It should only modify the values of Spacemacs settings."
;; (default nil)
dotspacemacs-enable-emacs-pdumper nil
;; Name of executable file pointing to emacs 27+. This executable must be
;; in your PATH.
;; (default "emacs")
@ -132,14 +131,6 @@ It should only modify the values of Spacemacs settings."
;; (default (format "spacemacs-%s.pdmp" emacs-version))
dotspacemacs-emacs-dumper-dump-file (format "spacemacs-%s.pdmp" emacs-version)
;; If non-nil ELPA repositories are contacted via HTTPS whenever it's
;; possible. Set it to nil if you have no way to use HTTPS in your
;; environment, otherwise it is strongly recommended to let it set to t.
;; This variable has no effect if Emacs is launched with the parameter
;; `--insecure' which forces the value of this variable to nil.
;; (default t)
dotspacemacs-elpa-https t
;; Maximum allowed time in seconds to contact an ELPA repository.
;; (default 5)
dotspacemacs-elpa-timeout 5
@ -273,7 +264,9 @@ It should only modify the values of Spacemacs settings."
;; (default t)
dotspacemacs-colorize-cursor-according-to-state t
;; Default font or prioritized list of fonts. The `:size' can be specified as
;; Default font or prioritized list of fonts. This setting has no effect when
;; running Emacs in terminal. The font set here will be used for default and
;; fixed-pitch faces. The `:size' can be specified as
;; a non-negative integer (pixel size), or a floating-point (point size).
;; Point size is recommended, because it's device independent. (default 10.0)
dotspacemacs-default-font '("Source Code Pro for Powerline"
@ -354,6 +347,10 @@ It should only modify the values of Spacemacs settings."
;; Which-key frame position. Possible values are `right', `bottom' and
;; `right-then-bottom'. right-then-bottom tries to display the frame to the
;; right; if there is insufficient space it displays it at the bottom.
;; It is also possible to use a posframe with the following cons cell
;; `(posframe . position)' where position can be one of `center',
;; `top-center', `bottom-center', `top-left-corner', `top-right-corner',
;; `top-right-corner', `bottom-left-corner' or `bottom-right-corner'
;; (default 'bottom)
dotspacemacs-which-key-position 'bottom
@ -364,6 +361,11 @@ It should only modify the values of Spacemacs settings."
;; displayed in the current window. (default nil)
dotspacemacs-switch-to-buffer-prefers-purpose nil
;; Whether side windows (such as those created by treemacs or neotree)
;; are kept or minimized by `spacemacs/toggle-maximize-window' (SPC w m).
;; (default t)
dotspacemacs-maximize-window-keep-side-windows t
;; If non-nil a progress bar is displayed when spacemacs is loading. This
;; may increase the boot time on some systems and emacs builds, set it to
;; nil to boost the loading time. (default t)
@ -467,8 +469,7 @@ It should only modify the values of Spacemacs settings."
;; If non-nil, start an Emacs server if one is not already running.
;; (default nil)
;; dotspacemacs-enable-server nil
dotspacemacs-enable-server t
dotspacemacs-enable-server nil
;; Set the emacs server socket location.
;; If nil, uses whatever the Emacs default is, otherwise a directory path
@ -486,6 +487,13 @@ It should only modify the values of Spacemacs settings."
;; (default '("rg" "ag" "pt" "ack" "grep"))
dotspacemacs-search-tools '("rg" "ag" "pt" "ack" "grep")
;; The backend used for undo/redo functionality. Possible values are
;; `undo-fu', `undo-redo' and `undo-tree' see also `evil-undo-system'.
;; Note that saved undo history does not get transferred when changing
;; your undo system. The default is currently `undo-fu' as `undo-tree'
;; is not maintained anymore and `undo-redo' is very basic."
dotspacemacs-undo-system 'undo-fu
;; Format specification for setting the frame title.
;; %a - the `abbreviated-file-name', or `buffer-name'
;; %t - `projectile-project-name'
@ -521,6 +529,9 @@ It should only modify the values of Spacemacs settings."
;; to aggressively delete empty line and long sequences of whitespace,
;; `trailing' to delete only the whitespace at end of lines, `changed' to
;; delete only whitespace for changed lines or `nil' to disable cleanup.
;; The variable `global-spacemacs-whitespace-cleanup-modes' controls
;; which major modes have whitespace cleanup enabled or disabled
;; by default.
;; (default nil)
dotspacemacs-whitespace-cleanup nil
@ -572,8 +583,6 @@ This function is called immediately after `dotspacemacs/init', before layer
configuration.
It is mostly for variables that should be set before packages are loaded.
If you are unsure, try setting them in `dotspacemacs/user-config' first."
;; (add-to-list 'tramp-connection-properties
;; (list ".*" "remote-shell" "/bin/ksh"))
)
@ -591,43 +600,6 @@ This function is called at the very end of Spacemacs startup, after layer
configuration.
Put your configuration code here, except for variables that should be set
before packages are loaded."
"Configuration for user code:
This function is called at the very end of Spacemacs startup, after layer
configuration.
Put your configuration code here, except for variables that should be set
before packages are loaded."
;; inspiration taken from my old config
;; and https://www.labri.fr/perso/nrougier/GTD/index.html#org13a9a4f
;; inspiration from https://yiming.dev/blog/2016/05/08/how-do-i-use-org-capture-on-mac/
;; (spacemacs/set-leader-keys "Cg" 'org-mac-grab-link)
;; inspiration at https://emacs.stackexchange.com/questions/30177/how-to-assign-tab-to-indentation-and-to-yasnippet-expand-key
;; (global-set-key (kbd "TAB") 'yas-expand)
;; (global-set-key (kbd "TAB") 'hippie-expand)
;; ;; Org-roam v2 configuration
;; (use-package org-roam
;; :ensure t
;; :custom
;; (org-roam-directory (file-truename "~/Documents/org/roam"))
;; (org-roam-completion-everywhere t)
;; :bind (("C-c n l" . org-roam-buffer-toggle)
;; ("C-c n f" . org-roam-node-find)
;; ("C-c n g" . org-roam-graph)
;; ("C-c n i" . org-roam-node-insert)
;; ("C-c n c" . org-roam-capture)
;; ;; Daylies
;; ("C-c n j" . org-roam-dailies-capture-today)
;; :map org-mode-map
;; ("C-M-i" . completion-at-point )
;; )
;; :config
;; (org-roam-db-autosync-mode))
;; Proxy toggle function
(setq http_proxy "http://www-proxy.uk.oracle.com:80")
(defun toggle-proxy ()
@ -647,7 +619,6 @@ before packages are loaded."
;; Bind proxy toggle function to a key
(spacemacs/set-leader-keys "ot" 'toggle-proxy)
;; idea from chatgpt
(defun set-dotfiles-environment ()
"Set environment variables for the dotfiles repository."
@ -671,30 +642,10 @@ before packages are loaded."
(magit-status)
(unset-dotfiles-environment)))
(require 'org-protocol)
(with-eval-after-load 'org
;; org mode config
(add-to-list 'org-modules 'org-protocol)
(setq org-roam-directory (file-truename "~/Documents/org/roam"))
;; test from https://superuser.com/questions/452649/org-mode-to-markdown-converter
(require 'ox-md nil t)
;; trick to be able to search by tags when using SPC a o r f
;; from https://github.com/org-roam/org-roam/pull/2054
;; Original value was "${title}"
(setq org-roam-node-display-template
(concat "${title:} " (propertize "${tags:10}" 'face 'org-tag)))
;; org-modern customization
;; look into https://github.com/minad/org-modern/blob/main/org-modern.el for possible values
(setq org-modern-progress nil)
(setq org-enable-roam-ui t)
(setq org-directory "~/Documents/org")
(setq org-default-notes-file "~/Documents/org/inbox.org")
;; Define the custum capture templates
@ -714,33 +665,14 @@ before packages are loaded."
"~/Documents/org/projects.org"
"~/Documents/org/someday.org"
"~/Documents/org/calendar.org"))
;(define-key global-map "\C-cc" 'org-capture)
;(define-key global-map "\C-cl" 'org-store-link)
;(define-key global-map "\C-ca" 'org-agenda)
(define-key org-mode-map (kbd "C-c g") 'org-mac-link-get-link)
;; (setq org-refile-targets '(("~/Documents/org/inbox.org" :maxlevel . 3)))
;; (setq org-refile-targets '(
;; ("~/Documents/org/projects.org" :maxlevel . 3)
;; ("~/Documents/org/someday.org", :level .1)
;; ("~/Documents/org/calendar.org", :maxlevel .2)
;; ))
(setq org-refile-targets '(("/Users/jetpac/Documents/org/projects.org" :maxlevel . 3)
("/Users/jetpac/Documents/org/inbox.org" :maxlevel . 3)
("/Users/jetpac/Documents/org/someday.org" :maxlevel . 3)
("/Users/jetpac/Documents/org/inbox.org" :maxlevel . 3)
("/Users/jetpac/Documents/org/calendar.org" :maxlevel . 2)))
;; ("/Users/jetpac/Documents/org/someday.org" :level . 1)
;; Don't include a footer with my contact and publishing information at the bottom of every exported HTML document.
(setq org-html-postamble nil)
(setq org-clock-report-include-clocking-task t)
;; inspiration from https://emacs.stackexchange.com/questions/33179/how-to-fix-columns-of-org-agenda-clock-report
(setq org-agenda-clockreport-parameter-plist
@ -775,25 +707,6 @@ before packages are loaded."
(org-agenda-overriding-header "Inbox\n")))
(tags "CLOSED>=\"<today>\""
((org-agenda-overriding-header "Completed today\n")))))
("T" "Weekly review with tasks for team meetings"
(
(agenda ""
(
(org-deadline-warning-days 0)
(org-agenda-overriding-header "Agenda since last Thursday\n")
(org-agenda-start-on-weekday 4)
)
)
(todo "DONE"
(
(org-agenda-prefix-format " %i ")
(org-agenda-start-on-weekday 4)
(org-agenda-overriding-header "Tasks done since last Thursday\n")
))
)
)
)
)
@ -801,16 +714,10 @@ before packages are loaded."
'((sequence "TODO(t)" "NEXT(n)" "WAIT(w)" "RUNNING(r)" "|" "DONE(d)" "CANCELLED(c)" )))
(setq org-clock-out-remove-zero-time-clocks t)
) ;; with-eval-after-load
;; (setq org-agenda-hide-tags-regexp ".")
) ;; with eval after load
(setq calendar-week-start-day 1) ;; calendar start on Monday
(defadvice projectile-project-root (around ignore-remote first activate)
(unless (file-remote-p default-directory) ad-do-it))
;; org-alert configuration
;; https://github.com/jwiegley/alert
;; https://www.youtube.com/watch?v=wKTKmE1wLyw
@ -823,7 +730,6 @@ before packages are loaded."
)
(org-alert-enable))
) ;; user-config
@ -839,12 +745,8 @@ This function is called at the very end of Spacemacs initialization."
;; 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.
'(desktop-save-mode t)
'(org-download-screenshot-method "screencapture -i %s")
'(org-safe-remote-resources
'("\\`https://fniessen\\.github\\.io/org-html-themes/org/theme-Bigblow\\.setup\\'"))
'(package-selected-packages
'(toml-mode org-modern org-roam-ui websocket org-roam org-alert web-mode git-link git-messenger git-modes git-timemachine gitignore-templates helm-git-grep helm-ls-git orgit-forge orgit forge ghub closql emacsql treepy smeargle treemacs-magit magit magit-section git-commit with-editor dash blacken code-cells company-anaconda anaconda-mode cython-mode helm-cscope helm-pydoc importmagic epc ctable concurrent deferred live-py-mode lsp-pyright lsp-python-ms nose pip-requirements pipenv load-env-vars pippel transient seq compat py-isort pydoc pyenv-mode pythonic pylookup pytest pyvenv sphinx-doc stickyfunc-enhance xcscope yapfify add-node-modules-path counsel-gtags counsel swiper ivy ggtags helm-gtags wfnames impatient-mode import-js grizzl js-doc js2-refactor multiple-cursors livid-mode nodejs-repl npm-mode prettier-js skewer-mode js2-mode simple-httpd tern web-beautify grab-mac-link org-mac-link ac-ispell auto-complete auto-yasnippet company-shell dap-mode lsp-docker bui yaml evil-org fish-mode flycheck-bashate flycheck-pos-tip pos-tip fuzzy gh-md gnuplot helm-c-yasnippet helm-company company helm-lsp helm-org-rifle htmlize insert-shebang lsp-origami origami lsp-treemacs lsp-ui lsp-mode markdown-toc markdown-mode mmm-mode org org-cliplink org-contrib org-download org-jira org-mime org-pomodoro alert log4e gntp org-present org-projectile org-category-capture org-rich-yank ox-jira ox-twbs shfmt reformatter yasnippet-snippets yasnippet ws-butler writeroom-mode winum which-key volatile-highlights vim-powerline vi-tilde-fringe uuidgen use-package undo-tree treemacs-projectile treemacs-persp treemacs-icons-dired treemacs-evil toc-org term-cursor symon symbol-overlay string-inflection string-edit-at-point spacemacs-whitespace-cleanup spacemacs-purpose-popwin spaceline-all-the-icons space-doc restart-emacs request rainbow-delimiters quickrun popwin pcre2el password-generator paradox overseer org-superstar open-junk-file nameless multi-line macrostep lorem-ipsum link-hint inspector info+ indent-guide hybrid-mode hungry-delete holy-mode hl-todo highlight-parentheses highlight-numbers highlight-indentation hide-comnt help-fns+ helm-xref helm-themes helm-swoop helm-purpose helm-projectile helm-org helm-mode-manager helm-make helm-descbinds helm-ag google-translate golden-ratio font-lock+ flycheck-package flycheck-elsa flx-ido fancy-battery eyebrowse expand-region evil-visualstar evil-visual-mark-mode evil-unimpaired evil-tutor evil-textobj-line evil-surround evil-numbers evil-nerd-commenter evil-mc evil-matchit evil-lisp-state evil-lion evil-indent-plus evil-iedit-state evil-goggles evil-exchange evil-evilified-state evil-escape evil-easymotion evil-collection evil-cleverparens evil-args evil-anzu eval-sexp-fu emr elisp-slime-nav elisp-def editorconfig dumb-jump drag-stuff dotenv-mode dired-quick-sort diminish devdocs define-word column-enforce-mode clean-aindent-mode centered-cursor-mode auto-highlight-symbol auto-compile aggressive-indent ace-link ace-jump-helm-line)))
'(lsp-docker bui emojify a pos-tip gh-md origami lsp-treemacs lsp-mode markdown-toc orgit forge yaml markdown-mode ghub closql emacsql treepy magit with-editor magit-section tern anaconda-mode web-completion-data company epc ctable concurrent deferred multiple-cursors hierarchy json-snatcher load-env-vars transient pythonic pyvenv haml-mode skewer-mode js2-mode simple-httpd yasnippet org-jira ox-jira htmlize alert log4e gntp org-project-capture org-category-capture evil-mc yasnippet-snippets yapfify ws-butler writeroom-mode winum which-key web-mode web-beautify vundo volatile-highlights vim-powerline vi-tilde-fringe undo-fu-session undo-fu treemacs-projectile treemacs-persp treemacs-magit treemacs-icons-dired treemacs-evil toml-mode toc-org term-cursor tagedit symon symbol-overlay string-inflection string-edit-at-point sphinx-doc spacemacs-whitespace-cleanup spacemacs-purpose-popwin spaceline space-doc smeargle slim-mode shfmt scss-mode sass-mode restart-emacs request rainbow-delimiters quickrun pytest pylookup pyenv-mode pydoc py-isort pug-mode prettier-js popwin poetry pippel pipenv pip-requirements pcre2el password-generator paradox pandoc-mode ox-twbs ox-pandoc overseer orgit-forge org-superstar org-rich-yank org-projectile org-present org-pomodoro org-mime org-mac-link org-download org-contrib org-cliplink org-alert open-junk-file npm-mode nose nodejs-repl nameless multi-line macrostep lsp-ui lsp-pyright lsp-origami lorem-ipsum livid-mode live-py-mode link-hint json-reformat json-navigator json-mode js2-refactor js-doc inspector insert-shebang info+ indent-guide importmagic impatient-mode hybrid-mode hungry-delete holy-mode hl-todo highlight-parentheses highlight-numbers highlight-indentation hide-comnt helm-xref helm-themes helm-swoop helm-pydoc helm-purpose helm-projectile helm-org-rifle helm-org helm-mode-manager helm-make helm-lsp helm-ls-git helm-git-grep helm-descbinds helm-css-scss helm-company helm-comint helm-c-yasnippet helm-ag google-translate golden-ratio gnuplot gitignore-templates git-timemachine git-modes git-messenger git-link flycheck-pos-tip flycheck-package flycheck-elsa flycheck-bashate flx-ido fish-mode fancy-battery eyebrowse expand-region evil-visualstar evil-visual-mark-mode evil-unimpaired evil-tutor evil-textobj-line evil-surround evil-org evil-numbers evil-nerd-commenter evil-matchit evil-lisp-state evil-lion evil-indent-plus evil-iedit-state evil-goggles evil-exchange evil-evilified-state evil-escape evil-easymotion evil-collection evil-cleverparens evil-args evil-anzu eval-sexp-fu emr emmet-mode elisp-slime-nav elisp-demos elisp-def editorconfig dumb-jump drag-stuff dotenv-mode disable-mouse dired-quick-sort diminish devdocs define-word dap-mode cython-mode company-web company-shell company-anaconda column-enforce-mode code-review code-cells clean-aindent-mode centered-cursor-mode blacken auto-yasnippet auto-highlight-symbol auto-compile all-the-icons aggressive-indent ace-link ace-jump-helm-line)))
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.

@ -108,8 +108,8 @@ endif
" solarized config
set termguicolors
set background=dark " or light
" colorscheme solarized
colorscheme darcula
colorscheme solarized
" colorscheme darcula
hi Visual term=reverse cterm=reverse guibg=Grey

@ -205,6 +205,7 @@ setopt hist_ignore_all_dups
setopt hist_save_no_dups
setopt hist_ignore_dups
setopt hist_find_no_dups
setopt hist_reduce_blanks
bindkey '^p' history-search-backward
bindkey '^n' history-search-forward
# bindkey '^f' autosuggest-accept

@ -24,7 +24,9 @@ SLACK_CHANNEL='@pnyc'
DIR=$(pwd)
REPO=${PARENT_WS##*/} # userland11.4
SCRIPT_DIR_BASE=${PARENT_WS#*oracle.com/} # /workspace/pnyc/solaris-reviews/secure-integrate/userland11.4
# /workspace/pnyc/solaris-reviews/secure-integrate/userland11.4
SCRIPT_DIR_BASE=$(echo "$PARENT_WS" | awk '{sub(/^.*\/\//,"/"); print}')
MV=/bin/mv
RM=/bin/rm
CP=/bin/cp

Loading…
Cancel
Save