mirror of
https://github.com/js0ny/dotfiles.git
synced 2025-12-21 08:43:00 +00:00
minor fix
This commit is contained in:
parent
f12260deb2
commit
69f40cd1f1
7 changed files with 115 additions and 11 deletions
54
platforms/mac/fastfetch.jsonc
Normal file
54
platforms/mac/fastfetch.jsonc
Normal file
|
|
@ -0,0 +1,54 @@
|
||||||
|
// %UserProfile%\.config\fastfetch\config.jsonc
|
||||||
|
{
|
||||||
|
"$schema": "https://github.com/fastfetch-cli/fastfetch/raw/dev/doc/json_schema.json",
|
||||||
|
"logo": {
|
||||||
|
"type": "auto",
|
||||||
|
// "source": "Windows 7",
|
||||||
|
"padding": {
|
||||||
|
"top": 2,
|
||||||
|
"left": 1,
|
||||||
|
"right": 2
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"general": {
|
||||||
|
"multithreading": true
|
||||||
|
},
|
||||||
|
"display": {
|
||||||
|
"separator": " ",
|
||||||
|
"key": {
|
||||||
|
"width": 10,
|
||||||
|
"paddingLeft": 2,
|
||||||
|
"type": "icon"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"modules": [
|
||||||
|
{
|
||||||
|
"type": "title",
|
||||||
|
"format": "{#1}───────────── {#}{user-name-colored}@{host-name-colored}"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "colors",
|
||||||
|
"symbol": "diamond",
|
||||||
|
"paddingLeft": 15
|
||||||
|
},
|
||||||
|
"os",
|
||||||
|
"host",
|
||||||
|
"kernel",
|
||||||
|
"uptime",
|
||||||
|
{
|
||||||
|
"type": "packages"
|
||||||
|
},
|
||||||
|
"shell",
|
||||||
|
"display",
|
||||||
|
"cursor",
|
||||||
|
"terminal",
|
||||||
|
"terminalfont",
|
||||||
|
"cpu",
|
||||||
|
"memory",
|
||||||
|
"swap",
|
||||||
|
"disk",
|
||||||
|
"battery",
|
||||||
|
"poweradapter",
|
||||||
|
"locale"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
@ -894,9 +894,32 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"description": "Caps Lock to Esc and Ctrl",
|
"description": "Caps Lock: Ctrl in when coding, Cmd elsewhere, Esc when alone",
|
||||||
"manipulators": [
|
"manipulators": [
|
||||||
{
|
{
|
||||||
|
"conditions": [
|
||||||
|
{
|
||||||
|
"bundle_identifiers": [
|
||||||
|
"^com\\.apple\\.Terminal$",
|
||||||
|
"^org\\.alacritty$",
|
||||||
|
"^com\\.googlecode\\.iterm2$",
|
||||||
|
"^com\\.github\\.wez\\.wezterm$",
|
||||||
|
"^net\\.kovidgoyal\\.kitty$",
|
||||||
|
"^com\\.mitchellh\\.ghostty$",
|
||||||
|
"^com\\.neovide\\.neovide$",
|
||||||
|
"^org\\.gnu\\.Emacs$",
|
||||||
|
"^com\\.microsoft\\.VSCode$",
|
||||||
|
"^com\\.jetbrains\\.rider$",
|
||||||
|
"^com\\.jetbrains\\.pycharm$",
|
||||||
|
"^com\\.jetbrains\\.intellij$",
|
||||||
|
"^com\\.jetbrains\\.goland$",
|
||||||
|
"^com\\.jetbrains\\.clion$",
|
||||||
|
"^com\\.jetbrains\\.rustrover$",
|
||||||
|
"^dev\\.zed\\.Zed$"
|
||||||
|
],
|
||||||
|
"type": "frontmost_application_if"
|
||||||
|
}
|
||||||
|
],
|
||||||
"from": {
|
"from": {
|
||||||
"key_code": "caps_lock",
|
"key_code": "caps_lock",
|
||||||
"modifiers": { "optional": ["any"] }
|
"modifiers": { "optional": ["any"] }
|
||||||
|
|
@ -904,6 +927,38 @@
|
||||||
"to": [{ "key_code": "left_control" }],
|
"to": [{ "key_code": "left_control" }],
|
||||||
"to_if_alone": [{ "key_code": "escape" }],
|
"to_if_alone": [{ "key_code": "escape" }],
|
||||||
"type": "basic"
|
"type": "basic"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"conditions": [
|
||||||
|
{
|
||||||
|
"bundle_identifiers": [
|
||||||
|
"^com\\.apple\\.Terminal$",
|
||||||
|
"^org\\.alacritty$",
|
||||||
|
"^com\\.googlecode\\.iterm2$",
|
||||||
|
"^com\\.github\\.wez\\.wezterm$",
|
||||||
|
"^net\\.kovidgoyal\\.kitty$",
|
||||||
|
"^com\\.mitchellh\\.ghostty$",
|
||||||
|
"^com\\.neovide\\.neovide$",
|
||||||
|
"^org\\.gnu\\.Emacs$",
|
||||||
|
"^com\\.microsoft\\.VSCode$",
|
||||||
|
"^com\\.jetbrains\\.rider$",
|
||||||
|
"^com\\.jetbrains\\.pycharm$",
|
||||||
|
"^com\\.jetbrains\\.intellij$",
|
||||||
|
"^com\\.jetbrains\\.goland$",
|
||||||
|
"^com\\.jetbrains\\.clion$",
|
||||||
|
"^com\\.jetbrains\\.rustrover$",
|
||||||
|
"^dev\\.zed\\.Zed$"
|
||||||
|
],
|
||||||
|
"type": "frontmost_application_unless"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"from": {
|
||||||
|
"key_code": "caps_lock",
|
||||||
|
"modifiers": { "optional": ["any"] }
|
||||||
|
},
|
||||||
|
"to": [{ "key_code": "left_command" }],
|
||||||
|
"to_if_alone": [{ "key_code": "escape" }],
|
||||||
|
"type": "basic"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -30,10 +30,10 @@ fn - 9 : yabai -m space --focus 9
|
||||||
fn - 0 : yabai -m space --focus 10
|
fn - 0 : yabai -m space --focus 10
|
||||||
|
|
||||||
# minimize window
|
# minimize window
|
||||||
alt - m : yabai -m window --minimize
|
fn - m : yabai -m window --minimize
|
||||||
|
|
||||||
# float / unfloat window and center on screen
|
# float / unfloat window and center on screen
|
||||||
ctrl - f : yabai -m window --toggle float
|
fn - f : yabai -m window --toggle float
|
||||||
|
|
||||||
# toggle window native fullscreen
|
# toggle window native fullscreen
|
||||||
shift + ctrl - f : yabai -m window --toggle native-fullscreen
|
shift + ctrl - f : yabai -m window --toggle native-fullscreen
|
||||||
|
|
|
||||||
|
|
@ -41,7 +41,7 @@ yabai -m config \
|
||||||
right_padding 12 \
|
right_padding 12 \
|
||||||
window_gap 06 \
|
window_gap 06 \
|
||||||
layout bsp \
|
layout bsp \
|
||||||
mouse_modifier cmd \
|
mouse_modifier fn \
|
||||||
mouse_action1 move \
|
mouse_action1 move \
|
||||||
mouse_action2 resize \
|
mouse_action2 resize \
|
||||||
mouse_drop_action swap \
|
mouse_drop_action swap \
|
||||||
|
|
|
||||||
|
|
@ -40,10 +40,6 @@
|
||||||
},
|
},
|
||||||
"shell",
|
"shell",
|
||||||
"display",
|
"display",
|
||||||
"de",
|
|
||||||
"wm",
|
|
||||||
"wmtheme",
|
|
||||||
"theme",
|
|
||||||
"icons",
|
"icons",
|
||||||
"font",
|
"font",
|
||||||
"cursor",
|
"cursor",
|
||||||
|
|
|
||||||
|
|
@ -39,7 +39,7 @@ include current-theme.conf
|
||||||
|
|
||||||
|
|
||||||
# macOS {{{
|
# macOS {{{
|
||||||
macos_opttion_as_alt yes
|
macos_option_as_alt yes
|
||||||
macos_quit_when_last_window_closed yes
|
macos_quit_when_last_window_closed yes
|
||||||
# }}}
|
# }}}
|
||||||
|
|
||||||
|
|
@ -77,4 +77,3 @@ map ctrl+q>shift+I kitten window.py -resize right
|
||||||
map cmd+enter toggle_layout stack
|
map cmd+enter toggle_layout stack
|
||||||
map ctrl+shift+enter toggle_layout stack
|
map ctrl+shift+enter toggle_layout stack
|
||||||
# }}}
|
# }}}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -61,7 +61,7 @@ return function(config)
|
||||||
config.window_frame = {
|
config.window_frame = {
|
||||||
font = wezterm.font("PingFang SC"),
|
font = wezterm.font("PingFang SC"),
|
||||||
}
|
}
|
||||||
|
config.window_decorations = "RESIZE"
|
||||||
config.command_palette_fg_color = color.lavender
|
config.command_palette_fg_color = color.lavender
|
||||||
config.command_palette_bg_color = color.base
|
config.command_palette_bg_color = color.base
|
||||||
-- UnixLong / Emacs / AppleSymbols / WindowsLong / WindowsSymbols
|
-- UnixLong / Emacs / AppleSymbols / WindowsLong / WindowsSymbols
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue