51 lines
No EOL
1.4 KiB
Text
51 lines
No EOL
1.4 KiB
Text
# Emacs
|
||
alias emacs="emacs27"
|
||
|
||
# Writing tracking
|
||
alias words="cd ~/Documents/drive/org && python3 writing-tracker.py && cd -"
|
||
|
||
# Prompt scraping
|
||
alias prompts="cd ~/.linux/scripts/utils && python3 promptscrape.py && cd -"
|
||
|
||
# Music
|
||
pl(){pgrep -x cmus >/dev/null && cmus-remote -u || echo "cmus is not running"}
|
||
alias pa="pl"
|
||
sk(){pgrep -x cmus >/dev/null && cmus-remote -n || echo "cmus is not running"}
|
||
alias nowplaying="~/.linux/scripts/nowplaying.sh"
|
||
alias abcde="abcde -c ~/.linux/dots/abcde.conf" # abcde doesn’t automatically read its own config file for some reason
|
||
|
||
# Other scripts
|
||
alias fetch="~/.linux/scripts/lfetch/lfetch"
|
||
pywal(){
|
||
wal --vte -li "$1"
|
||
feh --bg-fill "$1"
|
||
~/.linux/scripts/colorus/convert.sh
|
||
wait
|
||
rm -f ~/.Xresources
|
||
echo Xcursor.theme: Suru >> ~/.cache/wal/colors.Xresources # will this mean it’s there multiple times??
|
||
cp -f ~/.cache/wal/colors.Xresources ~/.Xresources
|
||
obtgen
|
||
~/.linux/scripts/bordergen.sh
|
||
}
|
||
alias cello="python3 ~/.linux/scripts/utils/cellopractice.py"
|
||
alias rcmus="~/.linux/scripts/cmus-refresh.sh"
|
||
|
||
# Brevity
|
||
alias giveme="find ~/Documents/drive | egrep -i"
|
||
cdls(){
|
||
PATHO=$(realpath $1)
|
||
cd $PATHO && ls
|
||
}
|
||
|
||
# Troubleshooting
|
||
alias rp="killall plank && nohup plank &"
|
||
alias rck="killall conky && nohup conky &"
|
||
alias rsw="nmcli radio wifi off && nmcli radio wifi on"
|
||
|
||
gitwho(){
|
||
if [ -d .git ]; then
|
||
echo $(git config user.name);
|
||
else
|
||
git rev-parse --git-dir 2> /dev/null;
|
||
fi;
|
||
} |