cmc/dotfiles

Using GNU Stow to manage my dotfiles. config dotfiles macos stow

Commit 8fb18f82b5

8fb18f82b51b8977325fb5a87a9d046f01336ae6

parent: d7a715a4dd

Verified · cmc

cmc <hello@cleberg.net> · 2024-10-31 02:18 UTC

update dotfiles

Layout: unified · split

.config/skhd/skhdrc added +5
@@ -0,0 +1,5 @@
1# open terminal
2cmd - return : /Applications/iTerm.app/Contents/MacOS/iTerm2
3
4# open browser
5cmd + shift - return : /Applications/LibreWolf.app/Contents/MacOS/librewolf
.config/yabai/yabairc added +32
@@ -0,0 +1,32 @@
1#!/usr/bin/env sh
2
3# global settings
4yabai -m config \
5 mouse_follows_focus off \
6 focus_follows_mouse off \
7 window_origin_display default \
8 window_placement second_child \
9 window_zoom_persist on \
10 window_shadow on \
11 window_animation_duration 0.0 \
12 window_animation_frame_rate 120 \
13 window_opacity_duration 0.0 \
14 active_window_opacity 1.0 \
15 normal_window_opacity 0.90 \
16 window_opacity off \
17 insert_feedback_color 0xffd75f5f \
18 split_ratio 0.50 \
19 split_type auto \
20 auto_balance off \
21 top_padding 15 \
22 bottom_padding 15 \
23 left_padding 15 \
24 right_padding 15 \
25 window_gap 10 \
26 layout bsp \
27 mouse_modifier fn \
28 mouse_action1 move \
29 mouse_action2 resize \
30 mouse_drop_action swap
31
32echo "yabai configuration loaded.."
.zprofile +2 −15
@@ -1,15 +1,2 @@
1if test -z "${XDG_RUNTIME_DIR}"; then
2 export XDG_RUNTIME_DIR=/tmp/$(id -u)-runtime-dir
3 if ! test -d "${XDG_RUNTIME_DIR}"; then
4 mkdir "${XDG_RUNTIME_DIR}"
5 chmod 0700 "${XDG_RUNTIME_DIR}"
6 fi
7fi
8
9# Sway fixes for firefox and screensharing
10export MOZ_ENABLE_WAYLAND="1"
11export XDG_CURRENT_DESKTOP=sway
12export QT_QPA_PLATFORM="wayland-egl"
13
14# Connect to VPN
15doas $HOME/vpn.sh
1eval "$(/opt/homebrew/bin/brew shellenv)"
2export GPG_TTY=$(tty)
.zshrc +22 −92
@@ -1,109 +1,39 @@
1# Export GPG for git signing
2export GPG_TTY=$(tty)
3
4# If you come from bash you might have to change your $PATH.
5export PATH=$HOME/bin:/usr/local/bin:$PATH
6
7# Add local path executables
8export PATH=$HOME/.local/bin:$PATH
1export PATH="/opt/homebrew/bin:$PATH"
2export PATH="$HOME/.emacs.d/bin:$PATH"
3export PATH=$PATH:$(go env GOPATH)/bin
4export PATH="$PATH:/Library/TeX/texbin"
5export PATH="$PATH:/Users/cmc/.local/bin"
96
107# Path to your oh-my-zsh installation.
118export ZSH="$HOME/.oh-my-zsh"
9export EDITOR=nano
1210
13# Set name of the theme to load --- if set to "random", it will
14# load a random theme each time oh-my-zsh is loaded, in which case,
15# to know which specific one was loaded, run: echo $RANDOM_THEME
1611# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
17ZSH_THEME="mh"
18
19# Set list of themes to pick from when loading at random
20# Setting this variable when ZSH_THEME=random will cause zsh to load
21# a theme from this variable instead of looking in $ZSH/themes/
22# If set to an empty array, this variable will have no effect.
23# ZSH_THEME_RANDOM_CANDIDATES=( "robbyrussell" "agnoster" )
24
25# Uncomment the following line to use case-sensitive completion.
26# CASE_SENSITIVE="true"
27
28# Uncomment the following line to use hyphen-insensitive completion.
29# Case-sensitive completion must be off. _ and - will be interchangeable.
30# HYPHEN_INSENSITIVE="true"
31
32# Uncomment one of the following lines to change the auto-update behavior
33# zstyle ':omz:update' mode disabled # disable automatic updates
34# zstyle ':omz:update' mode auto # update automatically without asking
35# zstyle ':omz:update' mode reminder # just remind me to update when it's time
36
37# Uncomment the following line to change how often to auto-update (in days).
38# zstyle ':omz:update' frequency 13
39
40# Uncomment the following line if pasting URLs and other text is messed up.
41# DISABLE_MAGIC_FUNCTIONS="true"
42
43# Uncomment the following line to disable colors in ls.
44# DISABLE_LS_COLORS="true"
12ZSH_THEME="bureau"
4513
4614# Uncomment the following line to disable auto-setting terminal title.
47# DISABLE_AUTO_TITLE="true"
48
49# Uncomment the following line to enable command auto-correction.
50# ENABLE_CORRECTION="true"
51
52# Uncomment the following line to display red dots whilst waiting for completion.
53# You can also set it to another string to have that shown instead of the default red dots.
54# e.g. COMPLETION_WAITING_DOTS="%F{yellow}waiting...%f"
55# Caution: this setting can cause issues with multiline prompts in zsh < 5.7.1 (see #5765)
56# COMPLETION_WAITING_DOTS="true"
57
58# Uncomment the following line if you want to disable marking untracked files
59# under VCS as dirty. This makes repository status check for large repositories
60# much, much faster.
61# DISABLE_UNTRACKED_FILES_DIRTY="true"
15DISABLE_AUTO_TITLE="true"
6216
63# Uncomment the following line if you want to change the command execution time
64# stamp shown in the history command output.
65# You can set one of the optional three formats:
66# "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd"
67# or set a custom format using the strftime function format specifications,
68# see 'man strftime' for details.
69# HIST_STAMPS="mm/dd/yyyy"
70
71# Would you like to use another custom folder than $ZSH/custom?
72# ZSH_CUSTOM=/path/to/new-custom-folder
73
74# Which plugins would you like to load?
75# Standard plugins can be found in $ZSH/plugins/
76# Custom plugins may be added to $ZSH_CUSTOM/plugins/
7717# Example format: plugins=(rails git textmate ruby lighthouse)
78# Add wisely, as too many plugins slow down shell startup.
79plugins=(git zsh-autosuggestions k)
18plugins=(git zsh-autosuggestions)
8019
8120source $ZSH/oh-my-zsh.sh
8221
8322# User configuration
8423
85# export MANPATH="/usr/local/man:$MANPATH"
86
87# You may need to manually set your language environment
88# export LANG=en_US.UTF-8
24# bun completions
25[ -s "/Users/cmc/.bun/_bun" ] && source "/Users/cmc/.bun/_bun"
8926
90# Preferred editor for local and remote sessions
91# if [[ -n $SSH_CONNECTION ]]; then
92# export EDITOR='vim'
93# else
94# export EDITOR='mvim'
95# fi
27# bun
28export BUN_INSTALL="$HOME/.bun"
29export PATH="$BUN_INSTALL/bin:$PATH"
9630
97# Compilation flags
98# export ARCHFLAGS="-arch x86_64"
31alias ls="eza"
32alias l="eza -lha"
33alias emacs="emacs -nw"
34alias cat="bat"
35alias tsm="transmission-remote"
36alias pip3="pipx"
9937
100# Set personal aliases, overriding those provided by oh-my-zsh libs,
101# plugins, and themes. Aliases can be placed here, though oh-my-zsh
102# users are encouraged to define aliases within the ZSH_CUSTOM folder.
103# For a full list of active aliases, run `alias`.
104#
105# Example aliases
106# alias zshconfig="mate ~/.zshrc"
107# alias ohmyzsh="mate ~/.oh-my-zsh"
108alias l="k -a"
109alias config='/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'
38# Added by LM Studio CLI (lms)
39export PATH="$PATH:/Users/cmc/.cache/lm-studio/bin"