Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stow #31

Closed
wants to merge 78 commits into from
Closed

stow #31

Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
78 commits
Select commit Hold shift + click to select a range
3a65dcb
removes stats and updates comments
edheltzel Jan 29, 2024
d7f1961
Add zsh configuration files for stow
edheltzel Jan 29, 2024
9158b19
setting fish for stow
edheltzel Jan 29, 2024
2e0cd36
setting up fish for stow
edheltzel Jan 29, 2024
8025212
Remove deprecated nvim setup script
edheltzel Jan 29, 2024
9a16832
adds nvim stow package and copies lazyvim to nvim dir
edheltzel Jan 29, 2024
2cba758
stow controls `dots/dot-*` now
edheltzel Jan 29, 2024
b0ab872
todos for next steps
edheltzel Jan 30, 2024
f739ffb
adds warp to dotfiles
edheltzel Jan 30, 2024
93fbe7c
Update font settings in .gitconfig
edheltzel Jan 30, 2024
2ffaa6f
Add Keychron Q11 ANSI Knob layout configuration to misc/
edheltzel Jan 30, 2024
0e4f450
setup config with stow
edheltzel Jan 30, 2024
d5bd371
add stow ignore to config
edheltzel Jan 30, 2024
6d535dc
moves custom utils into fish/ dir - since these are used with a custo…
edheltzel Jan 30, 2024
04e266a
moved fish into config/ and renamed all dots/ using the . prefix to k…
edheltzel Jan 30, 2024
0447edc
moves nvim into config/
edheltzel Jan 30, 2024
ef03441
removes raycast from config/
edheltzel Jan 30, 2024
336af01
raycast export
edheltzel Jan 30, 2024
af00610
move zsh files to dots/
edheltzel Jan 30, 2024
ee87255
remove bun from packages/setup.sh
edheltzel Jan 30, 2024
f1cadb6
adds stow ignores
edheltzel Jan 30, 2024
acd914b
moved config/vscode to misc/vscode
edheltzel Jan 30, 2024
11ab5ab
removes the config/vscode
edheltzel Jan 30, 2024
80bffca
if I'm not using it then im removing it.
edheltzel Jan 30, 2024
86181cd
making fish a stow package.... again
edheltzel Jan 30, 2024
0f6cfc8
making nvim a stow package again
edheltzel Jan 30, 2024
af89e5f
Add .stow-local-ignore file to ignore setup.sh and .DS_Store
edheltzel Jan 30, 2024
b9d2eed
WIP: adds stow to the install script
edheltzel Jan 30, 2024
5dd67c0
includes a stow global ignore and removes redundant local ignores
edheltzel Jan 30, 2024
cad78f1
adding custom raycast script command
edheltzel Jan 31, 2024
b20236b
comments
edheltzel Jan 31, 2024
02f2584
iterm2 udpate pref
edheltzel Jan 31, 2024
214ce33
local an global ignores for stow
edheltzel Jan 31, 2024
7fe736c
updates makefile support - should include in all projects
edheltzel Jan 31, 2024
fd3c9a0
adds makefile for stowing
edheltzel Jan 31, 2024
4d7baab
moves additional scripts back to package directories
edheltzel Jan 31, 2024
ffd3d78
update duti for vscode insiders
edheltzel Jan 31, 2024
2eb6a0c
press and hold disable options for vscode and insiders
edheltzel Jan 31, 2024
69ef563
custom keys for warp & global dictionary update
edheltzel Jan 31, 2024
64497aa
WIP: bootstrap and install scripts
edheltzel Jan 31, 2024
a866531
WIP readme needs updated
edheltzel Jan 31, 2024
4538f2d
adding bigmac to gitconfig.local.
edheltzel Jan 31, 2024
297ffe6
update echo for make
edheltzel Jan 31, 2024
954430e
update keyboard
edheltzel Jan 31, 2024
0d0906b
fixes eza error when using the -F flag, its no longer needed with eza…
edheltzel Feb 1, 2024
c176545
removes symlink to old dotfiles locations
edheltzel Feb 1, 2024
2f3d257
lazyvim customization - nothing really yet
edheltzel Feb 1, 2024
664a7ad
includes all linked to help
edheltzel Feb 1, 2024
ff91e98
update todos
edheltzel Feb 1, 2024
8680012
Add git-undo function to fish shell
edheltzel Feb 1, 2024
a09eb0c
Update unset function description
edheltzel Feb 1, 2024
64fef92
includes typescript support for lazyvim
edheltzel Feb 1, 2024
5c82a31
adds git-cbr command to checkout branches with changes .
edheltzel Feb 1, 2024
347908f
updates git functions and aliases
edheltzel Feb 1, 2024
63a21e4
adds tldrf to search through all the tldr pages with fzf
edheltzel Feb 1, 2024
7a867a6
readme update: moved todos to readme and started update the readme docs
edheltzel Feb 1, 2024
99fc392
lazyvim keymaps to match vspacecode which key
edheltzel Feb 1, 2024
29dd847
readme update with todos
edheltzel Feb 1, 2024
610c3a4
readme update with todos
edheltzel Feb 2, 2024
d340dec
lazyvim lock
edheltzel Feb 2, 2024
3243cad
warp key bindings
edheltzel Feb 2, 2024
3003ddc
minor changes to fish
edheltzel Feb 2, 2024
838fcaa
like warp but iterm is just better
edheltzel Feb 2, 2024
f54e46a
saves window arrangement
edheltzel Feb 2, 2024
9910258
giving iterm some love and configuring windows and setting up hotkeys
edheltzel Feb 2, 2024
8dced3a
adds vscode setting and keymaps
edheltzel Feb 3, 2024
82163a0
comment
edheltzel Feb 3, 2024
6c9249d
iterm2 settings
edheltzel Feb 3, 2024
e5c9fd3
todo tree update
edheltzel Feb 3, 2024
92e6dda
Update README
edheltzel Feb 3, 2024
187b648
fixed typo
edheltzel Feb 3, 2024
63c3b17
adding vscode to stow packages in makefile
edheltzel Feb 3, 2024
eb98dcb
Update README.md with new customizations and settings
edheltzel Feb 3, 2024
21b7b2b
Add GNU Stow and makefile for managing dotfiles
edheltzel Feb 3, 2024
4cea94b
stow ignore update
edheltzel Feb 3, 2024
48821a4
updating readme
edheltzel Feb 3, 2024
8deca20
lazyvim update and iterm2 settings
edheltzel Feb 3, 2024
06bf8b0
Update Brewfile with new dependencies
edheltzel Feb 3, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
adding custom raycast script command
  • Loading branch information
edheltzel committed Jan 31, 2024
commit cad78f123b88f14833a513be3592210c9e7b156c
93 changes: 93 additions & 0 deletions config/.config/raycast/_enabled-commands/battery-info.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
#!/bin/bash

# Required parameters:
# @raycast.schemaVersion 1
# @raycast.title Battery Info
# @raycast.mode inline
# @raycast.refreshTime 3m
# @raycast.packageName System

#
# Optional parameters:
# @raycast.icon 🔋
#
# Documentation:
# @raycast.description Get Battery percentage, time remaining, charge status, charger wattage, total cycles etc.
# @raycast.author Fahim Faisal
# @raycast.authorURL https://github.com/i3p9

BATT_PERCENTAGE=$(pmset -g batt | grep "InternalBattery-0" | awk '{print $3}')
CHARGE_STATUS=$(pmset -g batt | grep "InternalBattery-0" | awk '{print $4}')
TIME_REMAINING=$(pmset -g batt | grep "InternalBattery-0" | awk '{print $5}')
CYCLE_COUNT=$(system_profiler SPPowerDataType | grep "Cycle Count" | awk '{print $3}')
CHARGE_WATT=$(pmset -g ac | grep "Wattage" | awk '{print $3}')

BATT=${BATT_PERCENTAGE%??}

if [[ "$CHARGE_STATUS" == "charging;" ]]; then
#Charging
if [[ "$TIME_REMAINING" == "(no" ]]; then
TO_SHOW="⚡${BATT}% - No Estimation Yet (Charging at ${CHARGE_WATT}) - ${CYCLE_COUNT} Cycles"
echo $TO_SHOW
else
if [[ "$TIME_REMAINING" != "(no" ]]; then
RE_MIN=${TIME_REMAINING##*:}
RE_HOUR=${TIME_REMAINING%%:*}
if [[ "$RE_HOUR" == "0" ]]; then
TIME_REMAINING_FORMATTED="${RE_MIN}m"
else
TIME_REMAINING_FORMATTED="${RE_HOUR}h ${RE_MIN}m"
fi
fi
TO_SHOW="⚡${BATT}% - ${TIME_REMAINING_FORMATTED} to Full (Charging at ${CHARGE_WATT}) - ${CYCLE_COUNT} Cycles"
echo $TO_SHOW
fi
elif [[ "$CHARGE_STATUS" == "finishing" ]]; then
#Finishing Charning, xx:xx time remaining
TIME_REMAINING=$(pmset -g batt | grep "InternalBattery-0" | awk '{print $6}')
RE_MIN=${TIME_REMAINING##*:}
RE_HOUR=${TIME_REMAINING%%:*}
if [[ "$RE_HOUR" == "0" ]]; then
if [[ "$RE_MIN" == "00" ]]; then
FULLY_CHARGED_FLAG="TRUE"
fi
TIME_REMAINING_FORMATTED="${RE_MIN}m"
else
TIME_REMAINING_FORMATTED="${RE_HOUR}h ${RE_MIN}m"
fi

if [[ "$TIME_REMAINING" == "(no" ]]; then
TO_SHOW="⚡${BATT}% - No Estimation Yet (Charging at ${CHARGE_WATT}) - ${CYCLE_COUNT} Cycles"
echo $TO_SHOW
elif [[ "$FULLY_CHARGED_FLAG" = "TRUE" ]]; then
TO_SHOW="⚡${BATT}% - Fully Charged (Power Connected at ${CHARGE_WATT}) - ${CYCLE_COUNT} Cycles"
echo $TO_SHOW
else
TO_SHOW="⚡${BATT}% - ${TIME_REMAINING_FORMATTED} to Full (Charging at ${CHARGE_WATT}) - ${CYCLE_COUNT} Cycles"
echo $TO_SHOW
fi

elif [[ "$CHARGE_STATUS" == "charged;" ]]; then
#Fully charged
TO_SHOW="⚡${BATT}% - Fully Charged (Power Connected at ${CHARGE_WATT}) - ${CYCLE_COUNT} Cycles"
echo $TO_SHOW

elif [[ "$CHARGE_STATUS" == "discharging;" ]]; then
#Discharging
if [[ "$TIME_REMAINING" == "(no" ]]; then
TO_SHOW="${BATT}% - No Estimation Yet - ${CYCLE_COUNT} Cycles"
echo $TO_SHOW
else
if [[ "$TIME_REMAINING" != "(no" ]]; then
RE_MIN=${TIME_REMAINING##*:}
RE_HOUR=${TIME_REMAINING%%:*}
if [[ "$RE_HOUR" == "0" ]]; then
TIME_REMAINING_FORMATTED="${RE_MIN}m"
else
TIME_REMAINING_FORMATTED="${RE_HOUR}h ${RE_MIN}m"
fi
fi
TO_SHOW="${BATT}% - ${TIME_REMAINING_FORMATTED} Remaining - ${CYCLE_COUNT} Cycles"
echo $TO_SHOW
fi
fi
20 changes: 20 additions & 0 deletions config/.config/raycast/_enabled-commands/create-new-client.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/bin/bash

# Required parameters:
# @raycast.schemaVersion 1
# @raycast.title Create New Client folder
# @raycast.mode silent
# @raycast.packageName System
#
# Optional parameters:
# @raycast.icon 👥
# @raycast.argument1 { "type": "text", "placeholder": "client name" }

# Documentation:
# @raycast.description Create a new client folder
# @raycast.author Ed Heltzel
# @raycast.authorURL https://github.com/edheltzel

cp -r ~/Google\ Drive/My\ Drive/Apps/Automator/NewClient ~/Google\ Drive/Shared\ drives/Clients/"$1"
open ~/Google\ Drive/Shared\ drives/Clients/"$1"
echo "👥 $1 client folder created"
21 changes: 21 additions & 0 deletions config/.config/raycast/_enabled-commands/create-new-contractor.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/bin/bash

# Required parameters:
# @raycast.schemaVersion 1
# @raycast.title Create New Contractor folder
# @raycast.mode silent
# @raycast.packageName System
#
# Optional parameters:
# @raycast.icon 🚸
# @raycast.argument1 { "type": "text", "placeholder": "contractor name" }

# Documentation:
# @raycast.description Create a new Contractor folder
# @raycast.author Ed Heltzel
# @raycast.authorURL https://github.com/edheltzel

cp -r ~/Dropbox\ \(RDM\)/Ed\ \Heltzel/Apps/Automator/NewContractor ~/Dropbox\ \(RDM\)/Company\ Info/Contractors/"$1"

open ~/Dropbox\ \(RDM\)/Company\ Info/Contractors/"$1"
echo "🚸 New Contractor folder created"
21 changes: 21 additions & 0 deletions config/.config/raycast/_enabled-commands/create-new-wellspring.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/bin/bash

# Required parameters:
# @raycast.schemaVersion 1
# @raycast.title Create New Wellspring folder
# @raycast.mode silent
# @raycast.packageName System
#
# Optional parameters:
# @raycast.icon 🗣️
# @raycast.argument1 { "type": "text", "placeholder": "client name" }

# Documentation:
# @raycast.description Create a new Wellspring folder
# @raycast.author Ed Heltzel
# @raycast.authorURL https://github.com/edheltzel

NOW=$(date +"%y%m%d")
cp -r ~/Google\ Drive/My\ Drive/Apps/Automator/NewClient/Developer/NewProjectName/ ~/Google\ Drive/Shared\ drives/Clients/"$1"/Developer/"P$NOW(NEWPROJECT)"
open ~/Google\ Drive/Shared\ drives/Clients/"$1"/Developer/
echo "🗣️ New Wellspring folder created"
61 changes: 61 additions & 0 deletions config/.config/raycast/_enabled-commands/disk-free.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
#!/bin/bash

# Addapted from existing Alfred workflow
# https://github.com/packal/repository/tree/master/com.ctn.diskfree

# Required parameters:
# @raycast.schemaVersion 1
# @raycast.title Disk Free
# @raycast.packageName Utils
# @raycast.mode fullOutput

# Optional parameters:
# @raycast.packageName System
# @raycast.icon 💾

# Documentation:
# @raycast.description Show free space in your mounted disks
# @raycast.author Juan Luis Romero
# @raycast.authorURL https://github.com/JuanluR8

# EXAMPLE:
# Macintosh HD: 95% (361 Gb) free
# 15 Gb used of 500 Gb total

GREEN='\033[1;32m'
YELLOW='\033[1;33m'
RED='\033[1;31m'
NC='\033[0;m'

while read -r item; do
[[ $item == /dev/* ]] || continue

items=($item)
path="${items[@]:8}"
[[ "$path" == "/" ]] && name="$(diskutil info ${items[0]} | sed -nE 's/^ *Volume Name: +([^ ].*) *$/\1/p')" || name="${path##*/}"

size=${items[1]:0:$((${#items[1]}-1))}
size_unit=${items[1]:$((${#items[1]}-1))}b

used=${items[2]:0:$((${#items[2]}-1))}
used_unit=${items[2]:$((${#items[2]}-1))}b

free=${items[3]:0:$((${#items[3]}-1))}
free_unit=${items[3]:$((${#items[3]}-1))}b

perc=$((100-${items[4]:0:$((${#items[4]}-1))}))

color=$NC

if [[ perc -ge 70 ]]; then
color=$GREEN
elif [[ perc -lt 70 ]] && [[ perc -ge 30 ]]; then
color=$YELLOW
else
color=$RED
fi

echo -e $name':' ${color} $perc'%' ${NC} '('$free $free_unit') free'
echo $used $used_unit 'used of' $size $size_unit 'total'
echo ''
done < <(df -Hl)
17 changes: 17 additions & 0 deletions config/.config/raycast/_enabled-commands/empty-downloads.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/bin/bash

# Required parameters:
# @raycast.schemaVersion 1
# @raycast.title Empty Downloads
# @raycast.mode inline
# @raycast.packageName System
#
# Optional parameters:
# @raycast.icon 🗑️

# Documentation:
# @raycast.description Clean out ~/Downloads
# @raycast.author Ed Heltzel
# @raycast.authorURL https://github.com/edheltzel

rm -rf ~/Downloads/*
21 changes: 21 additions & 0 deletions config/.config/raycast/_enabled-commands/flush-dns.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/bin/bash

# Required parameters:
# @raycast.schemaVersion 1
# @raycast.title Flush DNS
# @raycast.mode silent
# @raycast.packageName System

# Optional parameters:
# @raycast.icon 💨
# @raycast.argument1 { "type": "text", "placeholder": "Enter sudo password", "secure": true }
# @raycast.packageName Flush DNS

# Documentation:
# @raycast.description Flush DNS cache
# @raycast.author Ed Heltzel
# @raycast.authorURL https://github.com/edheltzel

password="$1"
m dns flush && echo "$password"
echo "DNS cache flushed"
19 changes: 19 additions & 0 deletions config/.config/raycast/_enabled-commands/generate-wp-salt.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/bin/bash

# Required parameters:
# @raycast.schemaVersion 1
# @raycast.title Generate WP Salt
# @raycast.mode compact

# Optional parameters:
# @raycast.icon images/wp-salt.png
# @raycast.packageName WordPress Salt

# Documentation:
# @raycast.description Generate a fresh WP Salt
# @raycast.author Ed Heltzel
# @raycast.authorURL https://github.com/edheltzel

curl https://api.wordpress.org/secret-key/1.1/salt/ | pbcopy
echo "🧂 New WP Salt copied to clipboard"

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
39 changes: 39 additions & 0 deletions config/.config/raycast/_enabled-commands/justfocus.applescript
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
#!/usr/bin/osascript

# Required parameters:
# @raycast.schemaVersion 1
# @raycast.title JustFocus
# @raycast.mode silent
# @raycast.packageName Navigation

# Optional parameters:
# @raycast.icon images/justfocus.png
# @raycast.argument1 { "type": "text", "placeholder": "go,sb,lb,stop" }

# Documentation:
# @raycast.author Jax0rz
# @authorURL https://github.com/Jax0rz

on run argv
set q to item 1 of argv
if ((q as string) is equal to "go") then
tell application "JustFocus"
launch
start pomodoro
end tell
else if ((q as string) is equal to "sb") then
tell application "JustFocus"
launch
short break
end tell
else if ((q as string) is equal to "lb") then
tell application "JustFocus"
launch
long break
end tell
else if ((q as string) is equal to "stop") then
tell application "JustFocus"
stop
end tell
end if
end run
23 changes: 23 additions & 0 deletions config/.config/raycast/_enabled-commands/kill-finder.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#!/bin/bash

# Required parameters:
# @raycast.schemaVersion 1
# @raycast.title Kill Finder
# @raycast.mode silent

# Optional parameters:
# @raycast.icon images/kill-finder.png
# @raycast.argument1 { "type": "text", "placeholder": "Enter sudo password", "secure": true }
# @raycast.packageName Kill Finder

# Documentation:
# @raycast.description Restart Finder
# @raycast.author Ed Heltzel
# @raycast.authorURL https://github.com/edheltzel

password="$1"

killall Finder && echo "$password" | sudo -S killall -KILL appleeventsd

echo "Finder has been restarted"

21 changes: 21 additions & 0 deletions config/.config/raycast/_enabled-commands/kill-the-dock.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/bin/bash

# Required parameters:
# @raycast.schemaVersion 1
# @raycast.title Kill the Dock
# @raycast.mode silent

# Optional parameters:
# @raycast.icon images/kill-the-dock.png
# @raycast.argument1 { "type": "text", "placeholder": "Enter sudo password", "secure": true }
# @raycast.packageName Kill the Dock

# Documentation:
# @raycast.description Restart the dock
# @raycast.author Ed Heltzel
# @raycast.authorURL https://github.com/edheltzel

password="$1"
killall Dock && echo "$password" | sudo -S killall -KILL appleeventsd
echo "Dock has been relaunched"