mirror of
https://github.com/nikdoof/dotfiles.git
synced 2026-01-30 19:08:16 +00:00
Compare commits
11 Commits
8c013bb66c
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e9e9b10165 | ||
|
a9c028f7df
|
|||
|
|
c85ccc3d6f | ||
|
213d5a306b
|
|||
|
|
678a487ef8 | ||
|
|
e0cfc2654c | ||
|
12590e3547
|
|||
|
a57503f372
|
|||
|
c88d401471
|
|||
|
a4d55ff664
|
|||
|
53be68450e
|
15
README.md
15
README.md
@@ -1,11 +1,20 @@
|
||||
## Dotfiles
|
||||
# .dotfiles
|
||||
|
||||
A collection of dotfiles used by [nikdoof](https://github.com/nikdoof)
|
||||
|
||||
## Linux / macOS
|
||||
## Used Tools
|
||||
* [Aerospace](https://nikitabobko.github.io/AeroSpace/guide)
|
||||
* [Jankyborders](https://github.com/FelixKratz/JankyBorders)
|
||||
* [Ghostty](https://ghostty.org)
|
||||
* [Starship](https://starship.rs)
|
||||
* [Zed](https://zed.dev)
|
||||
|
||||
## Installation
|
||||
|
||||
### Linux / macOS
|
||||
|
||||
Installation is handled by `stowage`. 'Github' SSH key from private dotfiles required to run successfully.
|
||||
|
||||
```
|
||||
```shell-session
|
||||
curl https://raw.githubusercontent.com/nikdoof/dotfiles/main/bootstrap.sh | bash
|
||||
```
|
||||
|
||||
@@ -194,12 +194,7 @@ on-mode-changed = []
|
||||
alt-shift-y = 'move-node-to-workspace Y'
|
||||
alt-shift-z = 'move-node-to-workspace Z'
|
||||
|
||||
# See: https://nikitabobko.github.io/AeroSpace/commands#workspace-back-and-forth
|
||||
alt-tab = 'workspace-back-and-forth'
|
||||
# See: https://nikitabobko.github.io/AeroSpace/commands#move-workspace-to-monitor
|
||||
alt-shift-tab = 'move-workspace-to-monitor --wrap-around next'
|
||||
|
||||
# See: https://nikitabobko.github.io/AeroSpace/commands#mode
|
||||
alt-shift-semicolon = 'mode service'
|
||||
|
||||
# 'service' binding mode declaration.
|
||||
@@ -240,7 +235,7 @@ run = 'move-node-to-workspace B'
|
||||
# VSCode windows to workspace C
|
||||
[[on-window-detected]]
|
||||
if.app-id = 'com.microsoft.VSCode'
|
||||
run = 'move-node-to-workspace C'
|
||||
run = ['move-node-to-workspace C', 'layout v_accordion']
|
||||
|
||||
# Zed settings windows float
|
||||
[[on-window-detected]]
|
||||
@@ -252,7 +247,7 @@ check-further-callbacks = false
|
||||
# Zed windows to workspace C
|
||||
[[on-window-detected]]
|
||||
if.app-id = 'dev.zed.Zed'
|
||||
run = 'move-node-to-workspace C'
|
||||
run = ['move-node-to-workspace C', 'layout v_accordion']
|
||||
|
||||
# Ghostty terminal windows to workspace T
|
||||
[[on-window-detected]]
|
||||
@@ -262,12 +257,12 @@ run = 'move-node-to-workspace T'
|
||||
# Finder windows float
|
||||
[[on-window-detected]]
|
||||
if.app-id = 'com.apple.finder'
|
||||
run = ['layout floating']
|
||||
run = ['move-node-to-workspace F']
|
||||
|
||||
# Telegram windows float
|
||||
[[on-window-detected]]
|
||||
if.app-name-regex-substring = 'telegram'
|
||||
run = 'layout floating'
|
||||
run = ['move-node-to-workspace S', 'layout v_accordion']
|
||||
|
||||
# Activity Monitor windows float
|
||||
[[on-window-detected]]
|
||||
@@ -316,3 +311,25 @@ run = 'layout floating'
|
||||
[[on-window-detected]]
|
||||
if.app-id = 'com.coconut-flavour.coconutBattery'
|
||||
run = 'layout floating'
|
||||
|
||||
# Float the main window of Windows App
|
||||
[[on-window-detected]]
|
||||
if.app-id = 'com.microsoft.rdc.macos'
|
||||
if.window-title-regex-substring = 'Devices'
|
||||
run = ['move-node-to-workspace R', 'layout floating']
|
||||
check-further-callbacks = false
|
||||
|
||||
# Accordian the connection windows
|
||||
[[on-window-detected]]
|
||||
if.app-id = 'com.microsoft.rdc.macos'
|
||||
run = ['move-node-to-workspace R', 'layout v_accordion']
|
||||
|
||||
# Float DaisyDisk windows
|
||||
[[on-window-detected]]
|
||||
if.app-id = 'com.daisydiskapp.DaisyDiskStandAlone'
|
||||
run = ['layout floating']
|
||||
|
||||
# Float Compressor windows
|
||||
[[on-window-detected]]
|
||||
if.app-id = 'com.apple.CompressorApp'
|
||||
run = ['layout floating']
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
# shellcheck shell=bash
|
||||
# History
|
||||
mkdir -p "${XDG_STATE_HOME}"/bash
|
||||
export HISTFILE="${XDG_STATE_HOME}"/bash/history
|
||||
|
||||
@@ -1,2 +1,3 @@
|
||||
# shellcheck shell=bash
|
||||
# SSH completion based on ssh config
|
||||
[ -e "$HOME/.ssh/config" ] && complete -o "default" -o "nospace" -W "$(grep "^Host" ~/.ssh/config* | grep -v "[?*]" | cut -d " " -f2- | tr ' ' '\n')" scp sftp ssh
|
||||
|
||||
@@ -10,6 +10,7 @@ tap "nikitabobko/tap"
|
||||
tap "terraform-docs/tap"
|
||||
tap "sass/sass"
|
||||
tap "setchy/brews"
|
||||
tap "nikdoof/tap"
|
||||
|
||||
# Formulae
|
||||
brew "awscli"
|
||||
@@ -38,6 +39,7 @@ brew "kubernetes-cli"
|
||||
brew "kubeseal"
|
||||
brew "localstack/tap/localstack-cli"
|
||||
brew "mas"
|
||||
brew "nikdoof/tap/nikdoof-lsq"
|
||||
brew "node"
|
||||
brew "php"
|
||||
brew "poetry"
|
||||
|
||||
@@ -140,3 +140,8 @@ f() {
|
||||
spotlight() {
|
||||
mdfind "kMDItemDisplayName == '${1}'wc" | fzf --preview 'fzf-preview.sh {}' --height 40%
|
||||
}
|
||||
|
||||
# Provide default args to LSQ
|
||||
if [ -x "$(command -v lsq)" ]; then
|
||||
alias lsq='lsq -d $HOME/Documents/Logseq/PKM/'
|
||||
fi
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
# shellcheck shell=bash
|
||||
# Override application locations to fix XDG
|
||||
export ANSIBLE_HOME="$XDG_DATA_HOME"/ansible
|
||||
export LESSHISTFILE="$XDG_STATE_HOME"/less/history
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
# shellcheck shell=bash
|
||||
# AWS functions
|
||||
|
||||
# Get the list of AWS profiles
|
||||
function awsprofiles() {
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
# shellcheck shell=bash
|
||||
# Go stuff
|
||||
|
||||
export GOPATH=$XDG_DATA_HOME/go/
|
||||
export PATH=${GOPATH}bin:$PATH
|
||||
if [ -z ${GOROOT+x} ] && [ -d /usr/local/go ]; then
|
||||
|
||||
@@ -1,2 +1,4 @@
|
||||
# shellcheck shell=bash
|
||||
# Python stuff
|
||||
|
||||
export POETRY_VIRTUALENVS_IN_PROJECT=true
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
# shellcheck shell=bash
|
||||
# Rust stuff
|
||||
|
||||
if [ -f $HOME/.cargo/env ]; then
|
||||
source $HOME/.cargo/env
|
||||
fi
|
||||
|
||||
@@ -22,8 +22,6 @@ $aws\
|
||||
[](bg:nord4 fg:nord7)\
|
||||
$cmd_duration\
|
||||
[](fg:#d9dee9)\
|
||||
$time\
|
||||
[](fg:nord0)\
|
||||
$line_break\
|
||||
$character
|
||||
"""
|
||||
|
||||
@@ -148,7 +148,7 @@
|
||||
|
||||
"project_panel": {
|
||||
"entry_spacing": "standard",
|
||||
"hide_root": true,
|
||||
"hide_root": false,
|
||||
"default_width": 400,
|
||||
},
|
||||
"toolbar": {
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
# shellcheck shell=zsh
|
||||
# History
|
||||
mkdir -p "${XDG_STATE_HOME}/zsh"
|
||||
HISTFILE="${XDG_STATE_HOME}/zsh/history"
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
# shellcheck shell=zsh
|
||||
# Zsh specific aliases
|
||||
# Mostly suffix and global aliases
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
# shellcheck shell=zsh
|
||||
fpath+=($XDG_CONFIG_HOME/zsh/completions)
|
||||
|
||||
autoload -Uz compinit
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
# shellcheck shell=zsh
|
||||
# Source shell common
|
||||
for f in ~/.config/shell-common/*.sh; do
|
||||
source $f
|
||||
|
||||
Reference in New Issue
Block a user