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ZOCVIKZVCWZ5T26VEW4UZRN7AC
LW7EMVOBZAG5K4QXAKPM46IV2U2U7EWKFKY4S3AR2SJESHJ7YJ3AC
T4B2IJ4JIWX4C4QJI2S5TQHBO4U4ZFCIWR2VNIH6MGAOPMIAVHAQC
WHTEZBXRS7R3AM44LJZFR2YE6RP4IWE3AB5V3DYGO4YJU7PBTMQAC
OAVCY7YYCDLYL4V3LMWSFEFIRVNV4XDIIFKAEZBLHUHZTW7QNIGQC
TG3BV5E5KFMDDZQUFFRUQPGWEJTQ2D3SMKDAQYDQIU3W4LHCGARAC
EKNR3UNTAR2MCROCKAYF3UUJBG56ZV2AUJD4BMQYGQJ3KUZT4GKQC
COUSBBHL5XPZC5KWCYFFAE554D4VFFO55QOD726ODWIRZGWOUSUAC
XIONTGEMTEHAUZ2RBBF7L5EOHEC2Y2ZQSTOJCL6I2IHI5527QRBAC
ZH6EAGFIDERASR6IRHMOHY3RFYDIXB6SXBQZHA36X6NOENM6W43QC
HUGEVM5JE52YM6XEQFPLVVZ6XAGS6DUTE4WD4ECQO2XUAWFCRPFQC
HH6WAMVTZDJY4VHUQOTEAWVFOXYRLFK6LZTAPY53UZYDSCOJFSFQC
3OAFCHK7EIRUD3ZLAGZ3MAXVYOGFAJVDOF63ZIGNU7I3RWIPMAOQC
7UWOMG432IHX7BGGN7PPQUGSSUP6CCQNBXOO7TKNMKMK2R2WFOGAC
bind "h" { MoveFocus "Left"; SwitchToMode "locked"; }
bind "j" { MoveFocus "Down"; SwitchToMode "locked"; }
bind "k" { MoveFocus "Up"; SwitchToMode "locked"; }
bind "l" { MoveFocus "Right"; SwitchToMode "locked"; }
bind "m" { MoveFocus "Left"; SwitchToMode "locked"; }
bind "n" { MoveFocus "Down"; SwitchToMode "locked"; }
bind "e" { MoveFocus "Up"; SwitchToMode "locked"; }
bind "i" { MoveFocus "Right"; SwitchToMode "locked"; }
bind "h" { Resize "Left"; }
bind "j" { Resize "Down"; }
bind "k" { Resize "Up"; }
bind "l" { Resize "Right"; }
bind "H" { Resize "Decrease Left"; }
bind "J" { Resize "Decrease Down"; }
bind "K" { Resize "Decrease Up"; }
bind "L" { Resize "Decrease Right"; }
bind "m" { Resize "Left"; }
bind "n" { Resize "Down"; }
bind "e" { Resize "Up"; }
bind "i" { Resize "Right"; }
bind "M" { Resize "Decrease Left"; }
bind "N" { Resize "Decrease Down"; }
bind "E" { Resize "Decrease Up"; }
bind "I" { Resize "Decrease Right"; }
/System/Library/CoreServices/Menu\ Extras/User.menu/Contents/Resources/CGSession -suspend
#! /usr/bin/env zsh
# open a file in the default macOS preview
qlmanage -p "$@" &> /dev/null
#! /usr/bin/env zsh
/System/Library/CoreServices/ScreenSaverEngine.app/Contents/MacOS/ScreenSaverEngine
#! /usr/bin/env zsh
case `defaults read -g NSAutomaticSpellingCorrectionEnabled 2> /dev/null` in
0) enable="true";;
1) enable="false";;
*) enable="false";;
esac
defaults write -g NSAutomaticSpellingCorrectionEnabled -bool $enable
#! /usr/bin/env zsh
case `defaults read com.apple.finder CreateDesktop 2> /dev/null` in
0) enable="true";;
1) enable="false";;
*) enable="false";;
esac
defaults write \
com.apple.finder \
CreateDesktop -bool $enable \
&& killall Finder
#! /usr/bin/env zsh
case `defaults read com.apple.finder AppleShowAllFiles 2> /dev/null` in
"false") value="true";;
"true") value="false";;
*) value="true";;
esac
defaults write com.apple.finder AppleShowAllFiles $value && killall Finder
#! /usr/bin/env zsh
# 0 is default, 3 enables things like tab in system dialogs
# https://github.com/herrbischoff/awesome-macos-command-line#full-keyboard-access
case `defaults read NSGlobalDomain AppleKeyboardUIMode 2> /dev/null` in
0) value=3;;
3) value=0;;
*) value=0;;
esac
defaults write NSGlobalDomain AppleKeyboardUIMode -int $value
#! /usr/bin/env zsh
# put a file in the macOS default trash folder
command mv "$@" ~/.Trash
#! /usr/bin/env zsh
for functions_group in $(ls $HOME/dotfiles/nixpkgs/shell/zsh_functions)
do
if [[ $functions_group =~ "macos" && $(uname) != "Darwin" ]]
then
continue
fi
full_path="$HOME/dotfiles/nixpkgs/shell/zsh_functions/$functions_group/"
fpath=("$full_path" $fpath)
for fn in $(ls "$full_path")
do
autoload $fn
done
done
}
function {
};
keys.select = {
h = "no_op";
j = "no_op";
k = "search_next";
l = "insert_mode";
m = "extend_char_left";
n = "extend_visual_line_down";
e = "extend_visual_line_up";
i = "extend_char_right";
K = "search_prev";
g.m = "goto_line_start";
g.h = "no_op";
g.i = "goto_line_end";
g.l = "no_op";
g.j = "no_op";
g.k = "no_op";
g.G = "goto_last_line";
space.w.h = "no_op";
space.w.H = "no_op";
space.w.j = "no_op";
space.w.J = "no_op";
space.w.k = "no_op";
space.w.K = "no_op";
space.w.l = "no_op";
space.w.L = "no_op";
space.w.m = "jump_view_left";
space.w.n = "jump_view_down";
space.w.e = "jump_view_up";
space.w.i = "jump_view_right";
space.w.M = "swap_view_left";
space.w.N = "swap_view_down";
space.w.E = "swap_view_up";
space.w.I = "swap_view_right";
move_left: Some(( code: Char('h'), modifiers: ( bits: 0,),)),
move_right: Some(( code: Char('l'), modifiers: ( bits: 0,),)),
move_up: Some(( code: Char('k'), modifiers: ( bits: 0,),)),
move_down: Some(( code: Char('j'), modifiers: ( bits: 0,),)),
move_left: Some(( code: Char('m'), modifiers: ( bits: 0,),)),
move_right: Some(( code: Char('i'), modifiers: ( bits: 0,),)),
move_up: Some(( code: Char('e'), modifiers: ( bits: 0,),)),
move_down: Some(( code: Char('n'), modifiers: ( bits: 0,),)),
"nix-github-actions": {
"inputs": {
"nixpkgs": [
"wayland-overlay",
"nix-eval-jobs",
"nixpkgs"
]
},
"locked": {
"lastModified": 1698974481,
"narHash": "sha256-yPncV9Ohdz1zPZxYHQf47S8S0VrnhV7nNhCawY46hDA=",
"owner": "nix-community",
"repo": "nix-github-actions",
"rev": "4bb5e752616262457bc7ca5882192a564c0472d2",
"type": "github"
},
"original": {
"owner": "nix-community",
"repo": "nix-github-actions",
"type": "github"
}
},