Archived
updated things
This commit is contained in:
1 parent
622a9a90aa
commit
df66b828b2
34 files changed
+303
-122
No files matched your search
+128
@@ -0,0 +1,128 @@
|
||||
# If you come from bash you might have to change your $PATH.
|
||||
# export PATH=$HOME/bin:/usr/local/bin:$PATH
|
||||
|
||||
# Path to your oh-my-zsh installation.
|
||||
export ZSH="/home/cdnutter/.oh-my-zsh"
|
||||
|
||||
# Set name of the theme to load --- if set to "random", it will
|
||||
# load a random theme each time oh-my-zsh is loaded, in which case,
|
||||
# to know which specific one was loaded, run: echo $RANDOM_THEME
|
||||
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
|
||||
ZSH_THEME="clean"
|
||||
|
||||
# Set list of themes to pick from when loading at random
|
||||
# Setting this variable when ZSH_THEME=random will cause zsh to load
|
||||
# a theme from this variable instead of looking in ~/.oh-my-zsh/themes/
|
||||
# If set to an empty array, this variable will have no effect.
|
||||
# ZSH_THEME_RANDOM_CANDIDATES=( "robbyrussell" "agnoster" )
|
||||
|
||||
# Uncomment the following line to use case-sensitive completion.
|
||||
# CASE_SENSITIVE="true"
|
||||
|
||||
# Uncomment the following line to use hyphen-insensitive completion.
|
||||
# Case-sensitive completion must be off. _ and - will be interchangeable.
|
||||
# HYPHEN_INSENSITIVE="true"
|
||||
|
||||
# Uncomment the following line to disable bi-weekly auto-update checks.
|
||||
# DISABLE_AUTO_UPDATE="true"
|
||||
|
||||
# Uncomment the following line to automatically update without prompting.
|
||||
# DISABLE_UPDATE_PROMPT="true"
|
||||
|
||||
# Uncomment the following line to change how often to auto-update (in days).
|
||||
# export UPDATE_ZSH_DAYS=13
|
||||
|
||||
# Uncomment the following line if pasting URLs and other text is messed up.
|
||||
# DISABLE_MAGIC_FUNCTIONS=true
|
||||
|
||||
# Uncomment the following line to disable colors in ls.
|
||||
# DISABLE_LS_COLORS="true"
|
||||
|
||||
# Uncomment the following line to disable auto-setting terminal title.
|
||||
# DISABLE_AUTO_TITLE="true"
|
||||
|
||||
# Uncomment the following line to enable command auto-correction.
|
||||
# ENABLE_CORRECTION="true"
|
||||
|
||||
# Uncomment the following line to display red dots whilst waiting for completion.
|
||||
# COMPLETION_WAITING_DOTS="true"
|
||||
|
||||
# Uncomment the following line if you want to disable marking untracked files
|
||||
# under VCS as dirty. This makes repository status check for large repositories
|
||||
# much, much faster.
|
||||
# DISABLE_UNTRACKED_FILES_DIRTY="true"
|
||||
|
||||
# Uncomment the following line if you want to change the command execution time
|
||||
# stamp shown in the history command output.
|
||||
# You can set one of the optional three formats:
|
||||
# "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd"
|
||||
# or set a custom format using the strftime function format specifications,
|
||||
# see 'man strftime' for details.
|
||||
# HIST_STAMPS="mm/dd/yyyy"
|
||||
|
||||
# Would you like to use another custom folder than $ZSH/custom?
|
||||
# ZSH_CUSTOM=/path/to/new-custom-folder
|
||||
|
||||
# Which plugins would you like to load?
|
||||
# Standard plugins can be found in ~/.oh-my-zsh/plugins/*
|
||||
# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
|
||||
# Example format: plugins=(rails git textmate ruby lighthouse)
|
||||
# Add wisely, as too many plugins slow down shell startup.
|
||||
plugins=(git)
|
||||
|
||||
source $ZSH/oh-my-zsh.sh
|
||||
|
||||
# User configuration
|
||||
|
||||
# export MANPATH="/usr/local/man:$MANPATH"
|
||||
|
||||
# You may need to manually set your language environment
|
||||
# export LANG=en_US.UTF-8
|
||||
|
||||
# Preferred editor for local and remote sessions
|
||||
# if [[ -n $SSH_CONNECTION ]]; then
|
||||
# export EDITOR='vim'
|
||||
# else
|
||||
# export EDITOR='mvim'
|
||||
# fi
|
||||
|
||||
# Compilation flags
|
||||
# export ARCHFLAGS="-arch x86_64"
|
||||
|
||||
# Set personal aliases, overriding those provided by oh-my-zsh libs,
|
||||
# plugins, and themes. Aliases can be placed here, though oh-my-zsh
|
||||
# users are encouraged to define aliases within the ZSH_CUSTOM folder.
|
||||
# For a full list of active aliases, run `alias`.
|
||||
#
|
||||
# Example aliases
|
||||
# alias zshconfig="mate ~/.zshrc"
|
||||
# alias ohmyzsh="mate ~/.oh-my-zsh"
|
||||
|
||||
#########################################################################
|
||||
|
||||
## Alias
|
||||
|
||||
alias icat="kitty +kitten icat"
|
||||
alias please="sudo"
|
||||
|
||||
alias sl="sh ~/.scripts/fun/loop-sl.sh"
|
||||
alias git-out="sh ~/.scripts/git/out.sh"
|
||||
alias git-in="sh ~/.scripts/git/in.sh"
|
||||
|
||||
alias mount-purple="sh ~/.scripts/mount/purple.sh"
|
||||
alias mount-blue="sh ~/.scripts/mount/blue.sh"
|
||||
alias mount-\*="sh ~/.scripts/mount/blue.sh && sudo ~/.scripts/mount/purple.sh"
|
||||
|
||||
alias neo="sh ~/.scripts/fun/neofetch.sh"
|
||||
alias for="sh ~/.scripts/fun/fortune.sh"
|
||||
|
||||
## wal
|
||||
|
||||
(cat ~/.cache/wal/sequences &)
|
||||
cat ~/.cache/wal/sequences
|
||||
|
||||
## Zathura-Pywal
|
||||
export PATH="/home/cdnutter/.local/bin:$PATH"
|
||||
|
||||
## PATH
|
||||
PATH=$PATH$(find "$HOME/.scripts" -type d -not -path '/.' -printf ":%p")
|
||||
@@ -1,5 +0,0 @@
|
||||
#! /bin/bash
|
||||
|
||||
pdflatex *.tex *.pdf
|
||||
pdflatex *.tex *.pdf #hahahahahahaha
|
||||
rm -rf *.aux *.log *.toc *.out *.dvi
|
||||
@@ -0,0 +1,11 @@
|
||||
#!/usr/bin/env zsh
|
||||
|
||||
[[ -z "$@" ]] && exit
|
||||
|
||||
FILE="$1"
|
||||
NAME="$1:t:r"
|
||||
|
||||
pdflatex "$FILE" "$NAME".pdf
|
||||
pdflatex "$FILE" "$NAME".pdf
|
||||
|
||||
rm *.aux *.log *.toc *.out
|
||||
@@ -0,0 +1,8 @@
|
||||
#!/usr/bin/env zsh
|
||||
|
||||
[[ -z "$@" ]] && exit
|
||||
|
||||
FILE="$1"
|
||||
|
||||
sudo cp $1 /mnt/blue/internal/XAMPP/htdocs/
|
||||
|
||||
@@ -1,5 +0,0 @@
|
||||
#! /bin/bash
|
||||
|
||||
# For now it does Music. Will do more things later such as pictures for lectures. etc.
|
||||
cp -r -n /mnt/purple/Music/Playlists/Apple\ Music\ Playlists ~/Music/
|
||||
|
||||
Executable
+24
@@ -0,0 +1,24 @@
|
||||
#! /usr/bin/env zsh
|
||||
|
||||
trap "tput cnorm; exit" 2
|
||||
VAR=$(( $RANDOM % 4 ))
|
||||
|
||||
random_say() {
|
||||
case $VAR in
|
||||
0)
|
||||
botsay
|
||||
;;
|
||||
1)
|
||||
cowsay
|
||||
;;
|
||||
2)
|
||||
buddhasay
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
clear
|
||||
fortune | random_say
|
||||
tput civis
|
||||
read
|
||||
tput cnorm
|
||||
File renamed without changes.
@@ -7,5 +7,3 @@ neofetch
|
||||
tput civis
|
||||
read -p ""
|
||||
tput cnorm
|
||||
|
||||
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Executable
+10
@@ -0,0 +1,10 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
# Terminate already running bar instances
|
||||
killall -q polybar
|
||||
|
||||
# Wait until the processes have been shut down
|
||||
while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done
|
||||
|
||||
# Launch polybar
|
||||
polybar main -c $HOME/.config/polybar/config.ini &
|
||||
@@ -1,9 +0,0 @@
|
||||
#!/usr/bin/env zsh
|
||||
|
||||
# kill all instances of an application
|
||||
[[ -z "$@" ]] && exit
|
||||
|
||||
application_name="$(echo "$1" | awk '{print tolower($0)}')"
|
||||
ps aux | grep "$application_name" | grep -v 'grep' | awk '{print $2}' | while read process; do
|
||||
kill -9 "$process"
|
||||
done
|
||||
@@ -1,38 +0,0 @@
|
||||
#! /bin/bash
|
||||
|
||||
EDITOR=vim
|
||||
bold=$(tput bold)
|
||||
normal=$(tput sgr0)
|
||||
|
||||
now=`date +"%m%d%Y"`
|
||||
|
||||
###############################
|
||||
|
||||
pause() {
|
||||
read -p "If you're good to go, press any key to continue."
|
||||
}
|
||||
|
||||
prompt() {
|
||||
echo "This is meant to be ran in the current directory of your choosing."
|
||||
echo "If you don't mean to use it in..."
|
||||
echo "${bold}" && pwd && echo "${normal}"
|
||||
echo -n "...then Ctrl-D or Ctrl-C."
|
||||
pause
|
||||
}
|
||||
|
||||
setup() {
|
||||
cp ~/School/homework-and-stuffs/*.tex .
|
||||
mv *.tex $2-${now}.tex
|
||||
vim *.tex
|
||||
}
|
||||
|
||||
if [[ $1 = "--no-prompt" -o $2 = "--no-prompt" ]]
|
||||
setup
|
||||
|
||||
else
|
||||
prompt
|
||||
setup
|
||||
|
||||
fi
|
||||
|
||||
|
||||
File renamed without changes.
File renamed without changes.
Executable
+8
@@ -0,0 +1,8 @@
|
||||
#!/usr/bin/env zsh
|
||||
|
||||
function yes() { echo "You are connected to VPN." }
|
||||
function no() { echo "You are NOT connected to VPN!" }
|
||||
|
||||
[[ "$(wget https://www.privateinternetaccess.com -O - -q | grep 'You are protected by PIA' | cut -c 42-65)" ]] && yes || no
|
||||
|
||||
exit
|
||||
@@ -1,13 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# Terminate already running bar instances
|
||||
killall -q polybar
|
||||
# If all your bars have ipc enabled, you can also use
|
||||
# polybar-msg cmd quit
|
||||
|
||||
# Launch bar1 and bar2
|
||||
echo "---" | tee -a /tmp/polybar1.log /tmp/polybar2.log
|
||||
polybar bar1 >>/tmp/polybar1.log 2>&1 &
|
||||
polybar bar2 >>/tmp/polybar2.log 2>&1 &
|
||||
|
||||
echo "Bars launched..."
|
||||
Symlink
+1
@@ -0,0 +1 @@
|
||||
wal-discord
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Executable
+12
@@ -0,0 +1,12 @@
|
||||
#! /usr/bin/env zsh
|
||||
|
||||
[[ ! "$1" ]] && echo './yt-rss-grab.sh [url]' && exit
|
||||
|
||||
ID=$(wget $1 -O - -q | grep -o -P '(channelId" content=.{0,25})' | cut -c 21-100)
|
||||
|
||||
#----------------------#
|
||||
|
||||
echo "https://www.youtube.com/feeds/videos.xml?channel_id=$ID"
|
||||
exit
|
||||
|
||||
#----------------------#
|
||||
Reference in new issue
Block a user