mirror of
https://github.com/js0ny/dotfiles.git
synced 2025-12-21 08:43:00 +00:00
feat (glow): Add glow.yaml
This commit is contained in:
parent
808ae43abb
commit
f815cdce66
5 changed files with 241 additions and 4 deletions
8
.config/glow/glow.yaml
Normal file
8
.config/glow/glow.yaml
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
# style name or JSON path (default "auto")
|
||||||
|
style: "auto"
|
||||||
|
# mouse support (TUI-mode only)
|
||||||
|
mouse: true
|
||||||
|
# use pager to display markdown
|
||||||
|
pager: true
|
||||||
|
# word-wrap at width
|
||||||
|
width: 80
|
||||||
215
mac/karabiner/karabiner.json
Normal file
215
mac/karabiner/karabiner.json
Normal file
|
|
@ -0,0 +1,215 @@
|
||||||
|
{
|
||||||
|
"profiles": [
|
||||||
|
{
|
||||||
|
"complex_modifications": {
|
||||||
|
"rules": [
|
||||||
|
{
|
||||||
|
"description": "Caps Lock to Esc and Ctrl",
|
||||||
|
"manipulators": [
|
||||||
|
{
|
||||||
|
"from": {
|
||||||
|
"key_code": "caps_lock",
|
||||||
|
"modifiers": { "optional": ["any"] }
|
||||||
|
},
|
||||||
|
"to": [{ "key_code": "left_control" }],
|
||||||
|
"to_if_alone": [{ "key_code": "escape" }],
|
||||||
|
"type": "basic"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"description": "Change left_control+hnei to arrow keys",
|
||||||
|
"manipulators": [
|
||||||
|
{
|
||||||
|
"from": {
|
||||||
|
"key_code": "h",
|
||||||
|
"modifiers": {
|
||||||
|
"mandatory": ["left_control"],
|
||||||
|
"optional": ["any"]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"to": [{ "key_code": "left_arrow" }],
|
||||||
|
"type": "basic"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"from": {
|
||||||
|
"key_code": "n",
|
||||||
|
"modifiers": {
|
||||||
|
"mandatory": ["left_control"],
|
||||||
|
"optional": ["any"]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"to": [{ "key_code": "down_arrow" }],
|
||||||
|
"type": "basic"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"from": {
|
||||||
|
"key_code": "e",
|
||||||
|
"modifiers": {
|
||||||
|
"mandatory": ["left_control"],
|
||||||
|
"optional": ["any"]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"to": [{ "key_code": "up_arrow" }],
|
||||||
|
"type": "basic"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"from": {
|
||||||
|
"key_code": "i",
|
||||||
|
"modifiers": {
|
||||||
|
"mandatory": ["left_control"],
|
||||||
|
"optional": ["any"]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"to": [{ "key_code": "right_arrow" }],
|
||||||
|
"type": "basic"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"devices": [
|
||||||
|
{
|
||||||
|
"identifiers": {
|
||||||
|
"is_keyboard": true,
|
||||||
|
"is_pointing_device": true,
|
||||||
|
"product_id": 626,
|
||||||
|
"vendor_id": 5426
|
||||||
|
},
|
||||||
|
"ignore": false,
|
||||||
|
"mouse_flip_y": true,
|
||||||
|
"simple_modifications": [
|
||||||
|
{
|
||||||
|
"from": { "key_code": "left_command" },
|
||||||
|
"to": [{ "key_code": "right_control" }]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"from": { "key_code": "left_control" },
|
||||||
|
"to": [{ "key_code": "left_command" }]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"identifiers": {
|
||||||
|
"is_pointing_device": true,
|
||||||
|
"product_id": 45088,
|
||||||
|
"vendor_id": 1133
|
||||||
|
},
|
||||||
|
"ignore": false,
|
||||||
|
"mouse_flip_vertical_wheel": true
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"name": "Default profile",
|
||||||
|
"selected": true,
|
||||||
|
"simple_modifications": [
|
||||||
|
{
|
||||||
|
"from": { "apple_vendor_top_case_key_code": "keyboard_fn" },
|
||||||
|
"to": [{ "key_code": "left_command" }]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"from": { "key_code": "left_command" },
|
||||||
|
"to": [{ "apple_vendor_top_case_key_code": "keyboard_fn" }]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"virtual_hid_keyboard": { "keyboard_type_v2": "ansi" }
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"complex_modifications": {
|
||||||
|
"rules": [
|
||||||
|
{
|
||||||
|
"description": "Change left_control+hnei to arrow keys",
|
||||||
|
"manipulators": [
|
||||||
|
{
|
||||||
|
"from": {
|
||||||
|
"key_code": "h",
|
||||||
|
"modifiers": {
|
||||||
|
"mandatory": ["left_control"],
|
||||||
|
"optional": ["any"]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"to": [{ "key_code": "left_arrow" }],
|
||||||
|
"type": "basic"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"from": {
|
||||||
|
"key_code": "n",
|
||||||
|
"modifiers": {
|
||||||
|
"mandatory": ["left_control"],
|
||||||
|
"optional": ["any"]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"to": [{ "key_code": "down_arrow" }],
|
||||||
|
"type": "basic"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"from": {
|
||||||
|
"key_code": "e",
|
||||||
|
"modifiers": {
|
||||||
|
"mandatory": ["left_control"],
|
||||||
|
"optional": ["any"]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"to": [{ "key_code": "up_arrow" }],
|
||||||
|
"type": "basic"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"from": {
|
||||||
|
"key_code": "i",
|
||||||
|
"modifiers": {
|
||||||
|
"mandatory": ["left_control"],
|
||||||
|
"optional": ["any"]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"to": [{ "key_code": "right_arrow" }],
|
||||||
|
"type": "basic"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"devices": [
|
||||||
|
{
|
||||||
|
"identifiers": {
|
||||||
|
"is_keyboard": true,
|
||||||
|
"is_pointing_device": true,
|
||||||
|
"product_id": 626,
|
||||||
|
"vendor_id": 5426
|
||||||
|
},
|
||||||
|
"ignore": false,
|
||||||
|
"mouse_flip_y": true,
|
||||||
|
"simple_modifications": [
|
||||||
|
{
|
||||||
|
"from": { "key_code": "left_command" },
|
||||||
|
"to": [{ "key_code": "right_control" }]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"from": { "key_code": "left_control" },
|
||||||
|
"to": [{ "key_code": "left_command" }]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"identifiers": {
|
||||||
|
"is_pointing_device": true,
|
||||||
|
"product_id": 45088,
|
||||||
|
"vendor_id": 1133
|
||||||
|
},
|
||||||
|
"ignore": false,
|
||||||
|
"mouse_flip_vertical_wheel": true
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"name": "Default profile (copy)",
|
||||||
|
"simple_modifications": [
|
||||||
|
{
|
||||||
|
"from": { "apple_vendor_top_case_key_code": "keyboard_fn" },
|
||||||
|
"to": [{ "key_code": "left_command" }]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"from": { "key_code": "left_command" },
|
||||||
|
"to": [{ "apple_vendor_top_case_key_code": "keyboard_fn" }]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"virtual_hid_keyboard": { "keyboard_type_v2": "ansi" }
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
4
mac/karabiner/readme.md
Normal file
4
mac/karabiner/readme.md
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
# Karabiner
|
||||||
|
|
||||||
|
- `karabiner.json` is the configuration file for Karabiner-Elements, located in `~/.config/karabiner/`.
|
||||||
|
- Other files are considered as snippets for the configuration file.
|
||||||
|
|
@ -71,9 +71,10 @@ ln -sf $DOTFILES/zsh/.zshenv $ZDOTDIR/.zshenv
|
||||||
ln -sf $DOTFILES/mac/.zshrc $ZDOTDIR/.zshrc
|
ln -sf $DOTFILES/mac/.zshrc $ZDOTDIR/.zshrc
|
||||||
mv ~/.zprofile $ZDOTDIR/.zprofile
|
mv ~/.zprofile $ZDOTDIR/.zprofile
|
||||||
source $ZDOTDIR/.zshrc
|
source $ZDOTDIR/.zshrc
|
||||||
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
|
# sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
|
||||||
git clone https://github.com/zsh-users/zsh-autosuggestions $ZSH/custom/plugins/zsh-autosuggestions
|
mkdir -p $ZDOTDIR/plugins
|
||||||
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git $ZSH/custom/plugins/zsh-syntax-highlighting
|
git clone https://github.com/zsh-users/zsh-autosuggestions $ZDOTDIR/plugins/zsh-autosuggestions
|
||||||
|
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git $ZDOTDIR/plugins/zsh-syntax-highlighting
|
||||||
source /etc/zshenv
|
source /etc/zshenv
|
||||||
source $ZDOTDIR/.zshrc
|
source $ZDOTDIR/.zshrc
|
||||||
rm -f ~/.zshrc ~/.zprofile ~/.zsh_history ~/.zshenv
|
rm -f ~/.zshrc ~/.zprofile ~/.zsh_history ~/.zshenv
|
||||||
|
|
@ -280,4 +281,8 @@ duti -s com.colliderli.iina .mp4 all
|
||||||
duti -s com.colliderli.iina .mkv all
|
duti -s com.colliderli.iina .mkv all
|
||||||
|
|
||||||
mkdir -p $DOTFILES/powershell_private
|
mkdir -p $DOTFILES/powershell_private
|
||||||
touch $ZDOTDIR/.private.env.sh
|
|
||||||
|
mkdir -p ~/Documents/Source/Forks
|
||||||
|
mkdir -p ~/Documents/Source/Projects
|
||||||
|
mkdir -p ~/Documents/Source/Scripts
|
||||||
|
mkdir -p ~/Documents/Source/Tutorials
|
||||||
|
|
@ -11,3 +11,8 @@ for plugin in $ZDOTDIR/plugins/*; do
|
||||||
git pull --quiet --no-edit
|
git pull --quiet --no-edit
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
if [ which brew > /dev/null ]; then
|
||||||
|
brew update
|
||||||
|
brew upgrade
|
||||||
|
fi
|
||||||
Loading…
Add table
Add a link
Reference in a new issue