Compare commits

...

117 Commits

Author SHA1 Message Date
db7a01f58e Adding some functions. Port list and compress files 2023-11-02 01:06:18 -05:00
514dd44858 reverted s alias so it works 2023-10-17 17:46:08 -05:00
Brad Ganley
ccd61e553d woops. Fixed the s alias 2023-10-17 18:43:46 -04:00
2950c3df5c Made the "s" alias better 2023-10-17 13:43:35 -05:00
da7ddfffb2 added scr alias 2023-08-22 18:55:04 -05:00
cbd4e310e5 Added cargo to path 2023-08-05 00:23:41 -05:00
79c84b3eda added tere function to aliases file 2023-08-05 00:14:45 -05:00
79f0de702c mergederp 2023-07-09 18:18:29 -05:00
ff47473e0b My bad 2023-06-17 19:10:11 -05:00
7fa5fccedf fix some fucking errors 2023-06-05 02:14:46 -05:00
93cc71411e added error if size not specified 2023-05-31 11:48:42 -05:00
3fb51b141d added ramdisk alias 2023-05-31 11:44:57 -05:00
42e5a4e97a I should have had a V8 this morning. 2023-05-15 01:39:59 -05:00
925dc2edb6 done. going to bed now. 2023-05-10 01:33:29 -05:00
99b38f2872 Reticulating splines... 2023-05-10 01:31:22 -05:00
c5f8e3a21a f 2023-04-27 14:06:57 -05:00
755a02ac7a project lead is allergic to changes... 2023-04-27 13:45:20 -05:00
97112a5757 No time to commit.. My people need me! 2023-04-13 23:59:54 -05:00
61de34fdb4 better cd 2023-04-08 21:33:14 -05:00
1ff4285cb5 I guess I changed some things. Legit do not know what they were 2023-04-06 01:18:55 -05:00
ea5b5126b6 ahhhh 2023-04-02 22:47:49 -05:00
f43b2a2831 fixed package list 2023-04-02 21:48:02 -05:00
799387d91a added setup script 2023-04-02 21:35:17 -05:00
9e332f7980 added arch package list. Need to remove certain ones 2023-04-02 21:28:36 -05:00
fc1c304fdc Added yay check 2023-04-01 15:11:44 -05:00
brad
02867aa246 shit's getting crazy 2023-04-01 14:19:02 -05:00
brad
f02c1cfbc7 making it so the answerfile actually functions again 2023-03-31 20:23:32 -05:00
brad
44305865c9 making it so the answerfile actually functions 2023-03-31 20:17:44 -05:00
brad
3276d2aea3 removed network config 2023-03-31 02:18:15 -05:00
brad
5de841dda1 added directory for alpine configs 2023-03-31 01:51:23 -05:00
ce5fb472d8 removed tests since i can't make them green 2023-03-19 01:17:41 -05:00
e8d63cba72 fixe 2023-03-19 01:13:20 -05:00
0145882277 added /dock to cd path 2023-03-10 17:44:20 +00:00
65dda2592a added /dock to cd path 2023-03-10 17:43:31 +00:00
f287a420c7 switched hackingtool to blackarch 2023-03-05 19:47:32 -06:00
6d8bc3ec6b added a basic vimrc to make it more doper 2023-03-04 02:59:05 -06:00
b98177ef19 I am Root. We are Root. 2023-02-26 05:51:31 -06:00
16c4cc9094 We are each gifted in a unique and important way. It is our privilege and our adventure to discover our own special light 2023-02-26 05:34:50 -06:00
5a016d14ed adding a beefier upgrade option 2023-02-26 05:17:30 -06:00
Brad Ganley
829579ca90 Added countdown timer 2023-02-13 02:29:06 -06:00
74f1200c25 Added bashlocal source for computer-specific aliasing 2023-01-15 15:14:39 -06:00
7737d68812 Added cnfrm 2023-01-14 15:41:50 -06:00
7f629e9b21 Added cnfrm 2023-01-14 15:38:14 -06:00
Brad Ganley
bf74b0e503 omfg 2023-01-13 16:32:07 -06:00
Brad Ganley
b6e12176a8 ugh 2023-01-13 16:30:56 -06:00
Brad Ganley
2c2479f0eb Made it so aliases work with sudo 2023-01-13 16:28:13 -06:00
d9375106a9 Check the diff 2023-01-13 01:49:04 -06:00
dadc1433b5 Deleting shit 2023-01-13 01:33:12 -06:00
9d17df58dc So many comments. A Lot of clean up, removing duplicates, etc etc, ad infinitum 2023-01-13 01:16:48 -06:00
f038875e1f cleaning up a bit 2023-01-13 00:57:34 -06:00
855f669156 Added needrs command 2023-01-13 00:47:07 -06:00
9c973380a1 fuck i don't even know 2023-01-12 02:57:16 -06:00
04707c30c4 ls -l to ls -hog to save screen space 2023-01-12 00:17:23 -06:00
a5ae3e496d added CD_PATH 2023-01-10 13:42:30 -06:00
1097d2947c added hackingtool 2023-01-02 12:30:53 -06:00
3fd11f6524 added redoco to restart containers 2022-12-05 00:05:00 -06:00
38e6172d28 Added a lil speed test 2022-11-14 19:17:33 -06:00
f8cc38f5f0 ugh 2022-10-10 22:07:08 -05:00
5899239d7a Merge branch 'master' of https://git.toad.city/brad/configs 2022-10-10 22:05:40 -05:00
923933a54e more updates 2022-10-10 22:04:44 -05:00
ca14386132 updates 2022-10-10 22:03:29 -05:00
8f77766ed6 yabs 2022-09-19 17:56:31 -05:00
665b9cc70b ... 2022-08-16 00:44:12 -05:00
bc9f171b94 added functions 2022-08-01 13:03:26 -05:00
69f610d776 forgot nmapplet 2021-12-02 00:45:04 -06:00
7d25702d0d new i3 config 2021-12-01 11:51:03 -06:00
e09f2cf730 fuck 2021-11-08 16:03:26 -06:00
093e29974c added netdiscovery 2021-11-08 15:51:49 -06:00
Brad Ganley
cb9ce1ce59 Still cleaning 2021-07-15 13:40:11 -05:00
Brad Ganley
e70814accb Getting rid of things I'm not using 2021-07-15 13:39:49 -05:00
Brad Ganley
34066227cc removed broken script file 2021-07-15 13:38:42 -05:00
Brad Ganley
956f0fe231 Removed aliases from rc that were duped in aliases 2021-07-15 13:35:23 -05:00
Brad Ganley
cce09ab331 Added external ip function to bash aliases 2021-07-15 12:30:37 -05:00
Brad Ganley
1c813a245c added ding function to ping and alert when a host comes online 2021-06-22 13:45:35 -05:00
Brad Ganley
d5b7ff4dff added cheat.sh 2021-06-02 14:53:58 -05:00
Brad Ganley
3af68cdb8f added fucking sudo 2021-06-02 14:41:20 -05:00
Brad Ganley
1573eb4ce9 askdjfasd 2021-05-24 13:11:13 -05:00
Brad Ganley
77f9458afb rtfm 2021-05-24 13:08:29 -05:00
Brad Ganley
048b599636 batcat among other things 2021-05-24 13:04:53 -05:00
Brad Ganley
1500a9f113 This is better 2021-05-19 02:03:21 -05:00
Brad Ganley
6f878edfe2 fixed some shit 2021-05-18 23:40:08 -05:00
Brad Ganley
7b65517b06 added bash_aliases 2021-05-18 13:14:51 -05:00
Brad Ganley
58ebab4af2 Added diffuse alias 2020-11-16 16:33:50 -06:00
Brad Ganley
a1aeef95c8 added tmux list sessions alias 2020-10-26 13:33:37 -05:00
Brad Ganley
06c19651c0 I guess I wasn't finished modifying things 2020-10-19 13:37:51 -05:00
Brad Ganley
e6121a2063 Periodic update for all my bullshit 2020-10-09 13:23:52 -05:00
Brad Ganley
bf7e602d40 I would have bet money that this file was already in here but, alas, here we are 2020-10-09 13:11:52 -05:00
Brad Ganley
dbd0a31e3e Added backup of crontab (crontab -l > file) for Arch. Intending to flesh it out over time 2020-10-08 13:12:28 -05:00
Brad Ganley
61100c2321 added Rclone alias so I can stop typing so fucking much 2020-09-30 13:48:53 -05:00
Brad Ganley
feee3c0476 I'm not sure what's different but evidently something changed. 2020-09-30 13:16:52 -05:00
Brad Ganley
75c0464459 ugh 2020-09-24 16:25:35 -05:00
Brad Ganley
6f7fba09c7 Removie termite from i3 config because fuck 2020-09-24 15:54:07 -05:00
Brad Ganley
9738f5facc Fixed an issue with dmenu/rofi 2020-09-23 18:38:31 -05:00
Brad Ganley
f8b8d73a9f Handled a particular error. 2020-09-20 21:10:56 -05:00
Brad Ganley
ace195d48e Added exa aliases 2020-09-20 20:46:36 -05:00
Brad Ganley
c5299b6d27 Update vimrc and bash(zsh)rc 2020-09-19 18:55:50 -05:00
Brad Ganley
ae407bdff2 too much bullshit 2020-09-19 18:24:45 -05:00
Brad Ganley
4d233a68a2 Create .gitignore 2020-09-17 18:57:41 -05:00
Brad
f8ef62623b I'm sorry. 2019-05-10 15:56:02 -05:00
Brad
594e40f661 fixed conflicts (LOL merge -s ours; push -f) 2019-05-01 17:19:06 -05:00
Brad
dc30aa2f54 Do things better, faster, stronger 2019-04-25 18:07:37 -05:00
Brad
f422dcd8c7 This is a basic implementation that works. 2019-04-05 18:45:27 -05:00
Brad
da036dd7ee Better lsa alias 2019-03-21 12:03:06 -05:00
Brad
a504367cc3 One little whitespace gets its very own commit! Oh, life is so erratic! 2019-03-20 15:00:48 -05:00
Brad Ganley
2149d47aab Committing fixes in the dark, seriously, who killed my power!? 2019-03-17 01:50:06 -05:00
Brad Ganley
84a3080a18 I __ a word 2019-03-16 21:49:08 -05:00
Brad Ganley
45a06d4f52 Merge branch 'master' of https://github.com/Bradart/configs 2019-03-14 22:12:13 -05:00
Brad Ganley
096c097f36 fix some fucking errors 2019-03-13 23:08:18 -05:00
Brad
681fb493f7 Please no changes this time. 2019-03-13 18:43:05 -05:00
Brad Ganley
3dbb02f338 third time's a charm 2019-03-13 16:17:34 -05:00
Brad Ganley
b521468ae5 move your body every every body 2019-03-13 16:14:12 -05:00
Brad
2b1eaa2c39 bifurcation 2019-03-13 15:58:16 -05:00
Brad
4a59e1b816 ID:10T Error 2019-03-13 15:15:16 -05:00
Brad
43f9c9d6e8 Added termite and Tizonia Configs 2019-03-12 16:31:24 -05:00
Brad
dd53257e10 lots of changes after a lot of time 2019-03-12 15:39:11 -05:00
Brad
6d977e397f Continued development... 2019-03-12 15:09:48 -05:00
Brad
b936d6c24f bug fix 2019-03-12 13:36:46 -05:00
13 changed files with 700 additions and 400 deletions

225
.bash_aliases Executable file
View File

@@ -0,0 +1,225 @@
# Detect distribution
if [ -f /etc/os-release ]; then
. /etc/os-release
fi
# Application management
case "$ID" in
ubuntu|debian)
# Install something bypassing the prompts
alias inst='sudo apt-get install -y'
# Do a basic update
alias update='sudo apt-get update -y && sudo apt-get upgrade -y'
# Upgrade everything
alias upgrade_all='sudo apt-get update -y && sudo apt-get upgrade -y && sudo apt-get dist-upgrade -y && sudo apt-get autoremove -y && sudo apt-get autoclean -y && sudo apt-get --with-new-pkgs upgrade -y'
# Search packages
alias pacs='apt-cache search'
# Uninstall
alias burn='sudo apt-get autoremove'
;;
arch|archlinux)
# Check if yay is installed
if command -v yay >/dev/null 2>&1; then
# Install something bypassing the prompts
alias inst='yay -S --noconfirm'
# Do a basic update
alias update='yay -Syu --noconfirm'
# Upgrade everything
alias upgrade_all='yay -Syu --noconfirm && yay -Rns $(pacman -Qdtq) --noconfirm && sudo paccache -r'
# Search packages
alias pacs='yay -Ss'
# Uninstall
alias burn='yay -Rns --noconfirm'
else
# Install something bypassing the prompts
alias inst='sudo pacman -S --noconfirm'
# Do a basic update
alias update='sudo pacman -Syu --noconfirm'
# Upgrade everything
alias upgrade_all='sudo pacman -Syu --noconfirm && sudo pacman -Rns $(pacman -Qdtq) --noconfirm && sudo paccache -r'
# Search packages
alias pacs='pacman -Ss'
# Uninstall
alias burn='sudo pacman -Rns --noconfirm'
fi
;;
alpine)
# Install something bypassing the prompts
alias inst='sudo apk add'
# Do a basic update
alias update='sudo apk update && sudo apk upgrade'
# Upgrade everything
alias upgrade_all='sudo apk update && sudo apk upgrade && sudo apk cache clean'
# Search packages
alias pacs='apk search'
# Uninstall
alias burn='sudo apk del'
;;
*)
# Add any other distribution-specific aliases here
;;
esac
# General
# Get $HOME quick
alias ~='cd ~/'
# A Nice display of all files in a directory
alias ll='ls -hog'
# Above but...different I'm sure
alias lsa='ls -lah'
# List stuff sorted by size
alias lt='ls --human-readable --size -1 -S --classify'
# Grep command history fast-like
alias gh='history|grep'
# lol
alias please='sudo'
# sometimes it feels good
alias fucking='sudo'
# Install bat. It's better.
alias cat='bat'
# Source this very file
alias src='source ~/.bashrc'
# Big Boy edit something
alias svim='sudo vim'
# Ping but with sounds
alias ding='ping -i 5 -a'
# An extremely useful benchmark script
alias yabs='curl -sL yabs.sh | bash'
# Utilities
# A faster way to do the thing it does
alias sysres='sudo systemctl restart'
# This one too
alias sysup='sudo systemctl enable --now'
# Also this one
alias sysdn='sudo systemctl disable --now'
#opens specified command in new window in screen session
alias s='screen -X screen '
# Resume screen or create a new one named main
alias scr='screen -r || screen -S main'
# press enter to continue. Occasionally useful
alias cnfrm='read -p "Press enter to proceed" '
# A more intense ping for the professional on the go
alias pang='ping -i 10 -v -a'
# List the mounted things
alias mnts='mount | column -t'
# The history command but shorter
alias h='history'
# Lazy docker composing. Set the variable somewhere.
alias doco="$DOCKER_COMPOSE_COMMAND"
alias redoco="$DOCKER_COMPOSE_COMMAND down && $DOCKER_COMPOSE_COMMAND up -d"
alias redog="$DOCKER_COMPOSE_COMMAND down && $DOCKER_COMPOSE_COMMAND up -d; $DOCKER_COMPOSE_COMMAND logs -f"
alias dolog="$DOCKER_COMPOSE_COMMAND up -d; $DOCKER_COMPOSE_COMMAND logs -f"
# Regain all that space taken up by projects you abandoned
alias docprune='docker image prune && docker network prune && docker container prune && docker volume prune'
# Send things instantly to a pastebin. Pipe other commands into this to share their output.
alias bin='nc termbin.com 9999'
# Quicker Docker exec
alias dex='docker exec'
alias dps="docker ps --format 'CONTAINER ID: {{.ID}}\nIMAGE: {{.Image}}\nCOMMAND: {{.Command}}\nCREATED: {{.CreatedAt}}\nSTATUS: {{.Status}}\nPORTS: {{.Ports}}\nNAMES: {{.Names}}\n'|cat"
alias lzd='docker run --rm -it -v /var/run/docker.sock:/var/run/docker.sock -v ~/lzd:/.config/jesseduffield/lazydocker lazyteam/lazydocker'
# Misc
# Get the weather. Put your location after the command
alias wttr='ansiweather -u imperial -s false -l'
#Read the fucking manual
rtfm() { help $@ || info $@ || man $@ || curl "http://cheat.sh/$@"; }
# Get your public IP
extip(){ ip=$(curl -s http://api.ipify.org);
echo "Public IP address is $ip"
}
# Cheatsheet for linux commands
ch() { curl "http://cheat.sh/$@"; }
# You can go to noti.toad.city and generate your own code to get browser notifications. It's all explained there. You'll need to modify this value
notica() { curl --data "d:$*" "https://noti.toad.city/?VFvu53" ; }
# A quick lil speedyboi
alias speedTest='curl -s https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py | python3 -'
# If you're runnng my exact mastodon setup, this will be useful
alias tootctl='docker exec -it -w /app/www mastodon bin/tootctl'
# HAHAHA Go for it. Hours of fun and profit or ruining all your stuff
alias hackingtool='docker run -it --net=host --security-opt seccomp=unconfined --privileged blackarchlinux/blackarch:latest'
# Do you need to reboot? Find out here!
alias needrs='[ -f /var/run/reboot-required ] && echo "You need to reboot"'
# Countdown Timer
countdown() {
start="$(( $(date '+%s') + $1))"
while [ $start -ge $(date +%s) ]; do
time="$(( $start - $(date +%s) ))"
printf '%s\r' "$(date -u -d "@$time" +%H:%M:%S)"
sleep 0.1
done
}
# Random quote to avoid making useful commit messages
function rgcm() {
api="https://whatthecommit.com/index.txt"
message=$(curl -s $api)
if [[ -z $message ]]; then
echo "Error: Failed to retrieve a random commit message"
return 1
fi
git add .
git commit -m "$message"
echo "Git commit submitted with message: $message"
}
function cntdn() {
local count=$1
while [ $count -gt 0 ]; do
echo -en "\n$count... "
if [ $count -eq 3 ]; then
echo "You've still got a few seconds to live it up before your time runs out!"
elif [ $count -eq 2 ]; then
echo "Tick-tock, tick-tock, time's running out!"
elif [ $count -eq 1 ]; then
echo "You had a good run, but it's time to face the music!"
fi
sleep 1
((count--))
done
echo "Time's up!"
}
function ramdisk() {
if [ -z "$1" ]; then
echo "Error: Ramdisk size not specified."
return 1
fi
if [ ! -d "$HOME/ramdown" ]; then
mkdir "$HOME/ramdown"
fi
size="$1"
sudo mount -t tmpfs -o size="$size" tmpfs "$HOME/ramdown"
}
ipin() {
local ip=$1
local endpoint="https://ipinfo.io"
# Append IP to the endpoint if provided
if [[ -n $ip ]]; then
endpoint+="/$ip"
fi
endpoint+="/json?token=4ea2457429bf23"
# Make the API call and prettify the JSON response
curl -s "$endpoint" | jq .
}
# Tere function
tere() {
local result=$(command tere "$@")
[ -n "$result" ] && cd -- "$result"
}
# Compress files. Like the name says.
function compress_files() {
if [ -z "$1" ]; then
echo "Usage: compress_files <archive_name.zip> <file1> <file2> ..."
else
zip -r "$1" "${@:2}"
fi
}
# See open ports
alias ports='netstat -tuln '

1
.bashlocal Normal file
View File

@@ -0,0 +1 @@
$DOCKER_COMPOSE_COMMAND="docker-compose"

168
.bashrc Normal file
View File

@@ -0,0 +1,168 @@
##########################################################
# USE ALIASES WITH SUDO HOORAY #
##########################################################
alias sudo='sudo '
#what cd should do by default
alias cd='cd_func'
alias bat='batcat '
cd_func ()
{
builtin cd "$@" && ls --color=auto --group-directories-first --format=single-column
}
# If not running interactively, don't do anything
case $- in
*i*) ;;
*) return;;
esac
export DOCKER_COMPOSE_COMMAND="docker compose"
# Don't put duplicate lines in the history and do not add lines that start with a space
export HISTCONTROL=erasedups:ignoredups:ignorespace
# append to the history file, don't overwrite it
shopt -s histappend
# for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
HISTSIZE=1000
HISTFILESIZE=2000
# check the window size after each command and, if necessary,
# update the values of LINES and COLUMNS.
shopt -s checkwinsize
# make less more friendly for non-text input files, see lesspipe(1)
[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"
# set variable identifying the chroot you work in (used in the prompt below)
if [ -z "${debian_chroot:-}" ] && [ -r /etc/debian_chroot ]; then
debian_chroot=$(cat /etc/debian_chroot)
fi
# set a fancy prompt (non-color, unless we know we "want" color)
case "$TERM" in
xterm-color|*-256color) color_prompt=yes;;
esac
# uncomment for a colored prompt, if the terminal has the capability; turned
# off by default to not distract the user: the focus in a terminal window
# should be on the output of commands, not on the prompt
#force_color_prompt=yes
if [ -n "$force_color_prompt" ]; then
if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then
# We have color support; assume it's compliant with Ecma-48
# (ISO/IEC-6429). (Lack of such support is extremely rare, and such
# a case would tend to support setf rather than setaf.)
color_prompt=yes
else
color_prompt=
fi
fi
if [ "$color_prompt" = yes ]; then
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
else
PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
fi
unset color_prompt force_color_prompt
# If this is an xterm set the title to user@host:dir
case "$TERM" in
xterm*|rxvt*)
PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1"
;;
*)
;;
esac
# enable color support of ls and also add handy aliases
if [ -x /usr/bin/dircolors ]; then
test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
alias ls='ls --color=auto'
#alias dir='dir --color=auto'
#alias vdir='vdir --color=auto'
alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto'
fi
# To have colors for ls and all grep commands such as grep, egrep and zgrep
export CLICOLOR=1
export LS_COLORS='no=00:fi=00:di=00;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.bz2=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.avi=01;35:*.fli=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.ogg=01;35:*.mp3=01;35:*.wav=01;35:*.xml=00;31:'
#export GREP_OPTIONS='--color=auto' #deprecated
alias grep="/usr/bin/grep $GREP_OPTIONS"
unset GREP_OPTIONS
# Color for manpages in less makes manpages a little easier to read
export LESS_TERMCAP_mb=$'\E[01;31m'
export LESS_TERMCAP_md=$'\E[01;31m'
export LESS_TERMCAP_me=$'\E[0m'
export LESS_TERMCAP_se=$'\E[0m'
export LESS_TERMCAP_so=$'\E[01;44;33m'
export LESS_TERMCAP_ue=$'\E[0m'
export LESS_TERMCAP_us=$'\E[01;32m'
# Add an "alert" alias for long running commands. Use like so:
# sleep 10; alert
alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"'
# Alias definitions.
# You may want to put all your additions into a separate file like
# ~/.bash_aliases, instead of adding them here directly.
# See /usr/share/doc/bash-doc/examples in the bash-doc package.
if [ -f ~/.bash_aliases ]; then
. ~/.bash_aliases
fi
############################
# This allows you to have #
# a local aliases file #
# not affected by this #
# git repo #
############################
if [ -f ~/.bashlocal ]; then
. ~/.bashlocal
fi
# enable programmable completion features (you don't need to enable
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
# sources /etc/bash.bashrc).
if ! shopt -oq posix; then
if [ -f /usr/share/bash-completion/bash_completion ]; then
. /usr/share/bash-completion/bash_completion
elif [ -f /etc/bash_completion ]; then
. /etc/bash_completion
fi
fi
# Extracts any archive(s) (if unp isn't installed)
extract () {
for archive in $*; do
if [ -f $archive ] ; then
case $archive in
*.tar.bz2) tar xvjf $archive ;;
*.tar.gz) tar xvzf $archive ;;
*.bz2) bunzip2 $archive ;;
*.rar) rar x $archive ;;
*.gz) gunzip $archive ;;
*.tar) tar xvf $archive ;;
*.tbz2) tar xvjf $archive ;;
*.tgz) tar xvzf $archive ;;
*.zip) unzip $archive ;;
*.Z) uncompress $archive ;;
*.7z) 7z x $archive ;;
*) echo "don't know how to extract '$archive'..." ;;
esac
else
echo "'$archive' is not a valid file!"
fi
done
}
export PATH="$HOME/.cargo/bin:$HOME/.local/bin:$PATH"
export CDPATH=:..:~:~/dock:/dock

45
.vimrc Normal file
View File

@@ -0,0 +1,45 @@
set number
set cursorline
set cursorcolumn
" Set shift width to 4 spaces.
set shiftwidth=4
" Set tab width to 4 columns.
set tabstop=4
" Use space characters instead of tabs.
set expandtab
" Do not save backup files.
set nobackup
" Do not let cursor scroll below or above N number of lines when scrolling.
set scrolloff=10
" Do not wrap lines. Allow long lines to extend as far as the line goes.
set nowrap
" While searching though a file incrementally highlight matching characters as you type.
set incsearch
" Ignore capital letters during search.
set ignorecase
" Override the ignorecase option if searching for capital letters.
" This will allow you to search specifically for capital letters.
set smartcase
" Show partial command you type in the last line of the screen.
set showcmd
" Show the mode you are on the last line.
set showmode
" Show matching words during a search.
set showmatch
" Use highlighting when doing a search.
set hlsearch
" Set the commands to save in history default number is 20.
set history=1000

View File

@@ -1,126 +0,0 @@
#
# ~/.bashrc
#
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
alias ls='ls --color=auto'
PS1='[\u@\h \W]\$ '
alias ~='cd ~/'
alias nano='vim'
alias trans='rsync -Pve ssh'
alias update='yay -Syu --noconfirm'
alias inst='yay --noconfirm -S'
alias burn='yay -Rns'
alias ls='ls --color=auto'
alias pacs='yay -Ss'
alias svim='sudo -E vim'
alias vi='vim'
alias h='history'
alias mux='tmux new -s main'
alias supd='sudo pacman -Syyuu'
alias ncdu='ncdu --color dark'
alias bigclock='watch -t -n 1 "date '+%D%n%I:%M:%S' | figlet -k"|lolcat'
alias gitview='git log --graph --full-history --all --color --pretty=tformat:"%x1b[31m%h%x09%x1b[32m%d%x1b[0m%x20%s%x20%x1b[33m(%an)%x1b[0m"'
alias cheat='/usr/bin/cheat'
alias weather='curl wttr.in'
alias whatthecom='git commit -am "$(whatcom)"'
alias null='/dev/null'
alias q='exit'
alias lsa='ls -a'
alias ....='cd ../../..;'
alias ...='cd ../..'
alias ..='cd ..'
alias ll='ls -AlhGrti'
alias ESC='cd ~/LocalGit/ESC618'
alias ta='tmux -2 a -t'
alias tn='tmux -2 new -s'
alias tm='tmux -2 attach-session || tmux -2 new-session'
alias nord='nordvpn connect'
alias nordd='nordvpn disconnect'
alias fucking='sudo'
alias please='sudo'
alias fuck='pkill -9'
alias mirrorupdate='curl -s "https://www.archlinux.org/mirrorlist/?country=US&protocol=https&use_mirror_status=on" | sed -e 's/^#Server/Server/' -e '/^#/d' | rankmirrors -n 5 - | sudo tee /etc/pacman.d/mirrorlist'
alias bashrc='source ~/.bashrc'
export PATH=$PATH:~/scripts:/usr/local/go/bin
export npm_config_prefix=~/.node_modules
export EDITOR='vim'
export VISUAL='vim'
tempdrive () {
if [ -z $@ ]
then
echo "Please provide a disk size in Mb."
else
sudo mount -t tmpfs tmpfs /mnt/RAM -o size=$@m; echo "$@M Disk created in RAM"
fi
}
cd () {
builtin cd "$@" && ls -a
}
bk () {
if [ -z $1 ]
then
echo "Type a filename, dumbass"
else
cp $1{,.bak}
fi
}
md () {
mkdir -p "$@" && cd "$@";
}
function whatcom() {
curl --silent --fail https://whatthecommit.com/index.txt
}
teatimer() {
sleep $1;
mplayer "$HOME/Music/Tornado.mp3" & notify-send 'YOUR TEA IS READY OH FUCK';
curl -X POST "https://api.lifx.com/v1/lights/group_id:58da90e73566e43f037c7b6d59e56d24/effects/pulse" -H "Authorization: Bearer cfbc4b9dd981f5d99d486d22cb75a44535a8e616b9315580cac4ff5d5147ed86" -d 'period=1' -d 'cycles=4' -d 'color='$2;
fg
exit
}
mksketch(){
mkdir "$1";
if [ "$2" = 'adr' ]
then
cp "$HOME/skeletons/adr.ino" "$1/$1.ino"
elif [ "$2" = "web" ]
then
cp "$HOME/skeletons/webserv.ino" "$1/$1.ino"
else
cp "$HOME/skeletons/basic.ino" "$1/$1.ino"
fi
vim "$1/$1.ino"
}
bigtext(){
if [ -z "$1" ]
then
curl --silent --fail curl 'artii.herokuapp.com/make?text='FUCK+IT'&font='univers''
else
printf "$1\n"
curl --silent --fail curl 'artii.herokuapp.com/make?text='$1'&font='univers''
fi
}
branchdelete(){
git branch -d $1
git push --delete origin $1
echo There you go;
}
updateconfigs (){
cd ~/GIT/configs
whatthecom
git push origin master
cd ~
}

View File

@@ -1,66 +0,0 @@
set-option -g activity-action other
set-option -g assume-paste-time 1
set-option -g base-index 0
set-option -g bell-action any
set-option -g default-command ""
set-option -g default-shell "/bin/bash"
set-option -g destroy-unattached off
set-option -g detach-on-destroy on
set-option -g display-panes-active-colour red
set-option -g display-panes-colour blue
set-option -g display-panes-time 1000
set-option -g display-time 750
set-option -g history-limit 2000
set-option -g key-table "root"
set-option -g lock-after-time 0
set-option -g lock-command "lock -np"
set-option -g message-command-style fg=yellow,bg=black
set-option -g message-style fg=black,bg=yellow
set-option -g mouse off
set-option -g prefix C-b
set-option -g prefix2 None
set-option -g renumber-windows off
set-option -g repeat-time 500
set-option -g set-titles off
set-option -g set-titles-string "#S:#I:#W - \"#T\" #{session_alerts}"
set-option -g silence-action other
set-option -g status on
set-option -g status-interval 15
set-option -g status-justify left
set-option -g status-keys vi
set-option -g status-left "[#S] "
set-option -g status-left-length 10
set-option -g status-left-style default
set-option -g status-position bottom
set-option -g status-right " \"#{=21:pane_title}\" %H:%M %d-%b-%y"
set-option -g status-right-length 40
set-option -g status-right-style default
set-option -g status-style fg=black,bg=green
set-option -g update-environment[0] "DISPLAY"
set-option -g update-environment[1] "SSH_ASKPASS"
set-option -g update-environment[2] "SSH_AUTH_SOCK"
set-option -g update-environment[3] "SSH_AGENT_PID"
set-option -g update-environment[4] "SSH_CONNECTION"
set-option -g update-environment[5] "WINDOWID"
set-option -g update-environment[6] "XAUTHORITY"
set-option -g visual-activity off
set-option -g visual-bell off
set-option -g visual-silence off
set-option -g word-separators " -_@"
# Set prefix to Ctrl-Space
unbind C-b
set -g prefix C-Space
bind Space send-prefix
# split panes using | and -
bind | split-window -h
bind - split-window -v
unbind '"'
unbind %
# switch panes using Alt-arrow without prefix
bind -n M-Left select-pane -L
bind -n M-Right select-pane -R
bind -n M-Up select-pane -U
bind -n M-Down select-pane -D

View File

@@ -1,37 +0,0 @@
let mapleader = "-"
inoremap kj <Esc>
nnoremap <left> <C-W>h
nnoremap <right> <C-W>l
nnoremap <up> <C-W>k
nnoremap <down> <C-W>j
map <F1> :bprevious<CR>
map <F2> :bnext<CR>
map <F3> :vertical resize -5<CR>
map <F4> :vertical resize +5<CR>
map <F5> :se fdm=manual<CR>
map <F6> :se nofoldenable<CR>
set foldmethod=manual
set rnu
set autoread
set nowrap
set shiftwidth=2
set shiftround
set showmatch
set ignorecase
set smarttab
set incsearch
set history=1000
set undolevels=1000
set visualbell
set title
set expandtab
set autoindent
set hlsearch
set tabstop=2
colo ron
syntax on
set shiftround
au CursorHoldI * stopinsert
au InsertEnter * let updaterestore=&updatetime | set updatetime=7000
au InsertLeave * let &updatetime=updaterestore

View File

@@ -1,115 +0,0 @@
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
case $- in
*i*) ;;
*) return;;
esac
# don't put duplicate lines or lines starting with space in the history.
# See bash(1) for more options
HISTCONTROL=ignoreboth
# append to the history file, don't overwrite it
shopt -s histappend
# for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
HISTSIZE=1000
HISTFILESIZE=2000
# check the window size after each command and, if necessary,
# update the values of LINES and COLUMNS.
shopt -s checkwinsize
# If set, the pattern "**" used in a pathname expansion context will
# match all files and zero or more directories and subdirectories.
#shopt -s globstar
# make less more friendly for non-text input files, see lesspipe(1)
#[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"
# set variable identifying the chroot you work in (used in the prompt below)
if [ -z "${debian_chroot:-}" ] && [ -r /etc/debian_chroot ]; then
debian_chroot=$(cat /etc/debian_chroot)
fi
# set a fancy prompt (non-color, unless we know we "want" color)
case "$TERM" in
xterm-color|*-256color) color_prompt=yes;;
esac
# uncomment for a colored prompt, if the terminal has the capability; turned
# off by default to not distract the user: the focus in a terminal window
# should be on the output of commands, not on the prompt
force_color_prompt=yes
if [ -n "$force_color_prompt" ]; then
if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then
# We have color support; assume it's compliant with Ecma-48
# (ISO/IEC-6429). (Lack of such support is extremely rare, and such
# a case would tend to support setf rather than setaf.)
color_prompt=yes
else
color_prompt=
fi
fi
if [ "$color_prompt" = yes ]; then
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w \$\[\033[00m\] '
else
PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
fi
unset color_prompt force_color_prompt
# If this is an xterm set the title to user@host:dir
case "$TERM" in
xterm*|rxvt*)
PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1"
;;
*)
;;
esac
# enable color support of ls and also add handy aliases
if [ -x /usr/bin/dircolors ]; then
test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
alias ls='ls --color=auto'
#alias dir='dir --color=auto'
#alias vdir='vdir --color=auto'
alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto'
alias update='sudo apt-get update && sudo apt-get upgrade -y'
alias svim='sudo vim'
fi
# colored GCC warnings and errors
#export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01'
# some more ls aliases
#alias ll='ls -l'
#alias la='ls -A'
#alias l='ls -CF'
# Alias definitions.
# You may want to put all your additions into a separate file like
# ~/.bash_aliases, instead of adding them here directly.
# See /usr/share/doc/bash-doc/examples in the bash-doc package.
if [ -f ~/.bash_aliases ]; then
. ~/.bash_aliases
fi
# enable programmable completion features (you don't need to enable
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
# sources /etc/bash.bashrc).
if ! shopt -oq posix; then
if [ -f /usr/share/bash-completion/bash_completion ]; then
. /usr/share/bash-completion/bash_completion
elif [ -f /etc/bash_completion ]; then
. /etc/bash_completion
fi
fi

61
alpine/answer.cfg Executable file
View File

@@ -0,0 +1,61 @@
# Example answer file for setup-alpine script
# If you don't want to use a certain option, then comment it out
# Use US layout with US variant
# KEYMAPOPTS="us us"
KEYMAPOPTS="us us"
# Set hostname to 'alpine'
HOSTNAMEOPTS="burner"
# Set device manager to mdev
DEVDOPTS=mdev
# Contents of /etc/network/interfaces
INTERFACESOPTS="auto lo
iface lo inet loopback
auto eth0
iface eth0 inet dhcp
hostname burner
"
# Search domain of example.com, Google public nameserver
# DNSOPTS="-d example.com 8.8.8.8"
# Set timezone to UTC
#TIMEZONEOPTS="UTC"
TIMEZONEOPTS=America/Chicago
# set http/ftp proxy
#PROXYOPTS="http://webproxy:8080"
PROXYOPTS=none
# Add first mirror (CDN)
APKREPOSOPTS="-1"
# Create admin user
USEROPTS="-a -u -g audio,video,netdev juser"
#USERSSHKEY="ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOIiHcbg/7ytfLFHUNLRgEAubFz/13SwXBOM/05GNZe4 juser@example.com"
#USERSSHKEY="https://example.com/juser.keys"
# Install Openssh
SSHDOPTS=openssh
#ROOTSSHKEY="ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOIiHcbg/7ytfLFHUNLRgEAubFz/13SwXBOM/05GNZe4 juser@example.com"
#ROOTSSHKEY="https://example.com/juser.keys"
# Use openntpd
# NTPOPTS="openntpd"
NTPOPTS=chronyd
# Use /dev/sda as a sys disk
DISKOPTS="-m sys /dev/sda"
# DISKOPTS=none
# Setup storage with label APKOVL for config storage
#LBUOPTS="LABEL=APKOVL"
LBUOPTS=none
#APKCACHEOPTS="/media/LABEL=APKOVL/cache"
APKCACHEOPTS=none

68
arch/pkglist.txt Normal file
View File

@@ -0,0 +1,68 @@
amd-ucode
arp-scan
barrier
bat
btrfs-progs
chromium
code
cronie
dd_rescue
ddrescue
debtap
dhcpcd
discord
dosfstools
exfat-utils
f2fs-tools
file-roller
firefox
flatpak
gparted
gptfdisk
htop
intel-ucode
jfsutils
lightdm-gtk-greeter
lsof
lzop
neofetch
network-manager-applet
networkmanager
nfs-utils
nmap
nmon
notepadqq
openssh
os-prober
p7zip
plasma-meta
powertop
ristretto
rsync
samba
sshfs
tailscale
thunar
thunar-archive-plugin
thunar-media-tags-plugin
thunar-volman
tixati
ttf-inconsolata
unrar
unzip
usbutils
vim
virtualbox
virtualbox-host-modules-arch
vlc
xorg-docs
xorg-font-util
xorg-fonts-100dpi
xorg-fonts-75dpi
xorg-fonts-alias-100dpi
xorg-fonts-alias-75dpi
xorg-fonts-misc
xorg-server
xorg-xinit
xorg-xinput
xorg-xrandr

16
bashset.sh Normal file
View File

@@ -0,0 +1,16 @@
#!/bin/bash
mv ~/.bashrc ~/.bashrc.bak
ln -s .bashrc ~/.bashrc
ln -s .bash_aliases ~/.bash_aliases
touch ~/.bashlocal
echo "Would you like to intall the contents of the package list in the arch foler? (yes/no)"
read answer
if [ "$answer" == "yes" ] || [ "$answer" == "y" ]; then
echo "Fuck yeah"
sudo pacman -S --needed $(\cat arch/pkglist.txt)
else
echo "Exiting the script."
exit 0
fi

135
i3/config
View File

@@ -19,28 +19,41 @@ font pango:monospace 8
# text rendering and scalability on retina/hidpi displays (thanks to pango).
#font pango:DejaVu Sans Mono 8
# Before i3 v4.8, we used to recommend this one as the default:
# font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
# The font above is very space-efficient, that is, it looks good, sharp and
# clear in small sizes. However, its unicode glyph coverage is limited, the old
# X core fonts rendering does not support right-to-left and this being a bitmap
# font, it doesnt scale on retina/hidpi displays.
# The combination of xss-lock, nm-applet and pactl is a popular choice, so
# they are included here as an example. Modify as you see fit.
# xss-lock grabs a logind suspend inhibit lock and will use i3lock to lock the
# screen before suspend. Use loginctl lock-session to lock your screen.
exec --no-startup-id xss-lock --transfer-sleep-lock -- i3lock --nofork
# NetworkManager is the most popular way to manage wireless networks on Linux,
# and nm-applet is a desktop environment-independent system tray GUI for it.
exec --no-startup-id nm-applet
# Use pactl to adjust volume in PulseAudio.
set $refresh_i3status killall -SIGUSR1 i3status
bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +10% && $refresh_i3status
bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -10% && $refresh_i3status
bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle && $refresh_i3status
bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle && $refresh_i3status
# Use Mouse+$mod to drag floating windows to their wanted position
floating_modifier $mod
# start a terminal
bindsym $mod+Return exec terminology
bindsym $mod+Return exec terminator
# kill focused window
bindsym $mod+Shift+q kill
# start dmenu (a program launcher)
bindsym $mod+d exec rofi -show run
# There also is the (new) i3-dmenu-desktop which only displays applications
# shipping a .desktop file. It is a wrapper around dmenu, so you need that
# installed.
# bindsym $mod+d exec --no-startup-id i3-dmenu-desktop
#bindsym $mod+d exec --no-startup-id dmenu_run
bindsym $mod+d exec --no-startup-id rofi -show run --theme solarized-dark
# A more modern dmenu replacement is rofi:
# bindcode $mod+40 exec "rofi -modi drun,run -show drun"
# There also is i3-dmenu-desktop which only displays applications shipping a
# .desktop file. It is a wrapper around dmenu, so you need that installed.
# bindcode $mod+40 exec --no-startup-id i3-dmenu-desktop
# change focus
bindsym $mod+h focus left
@@ -55,10 +68,10 @@ bindsym $mod+Up focus up
bindsym $mod+Right focus right
# move focused window
bindsym $mod+Shift+j move left
bindsym $mod+Shift+k move down
bindsym $mod+Shift+l move up
bindsym $mod+Shift+semicolon move right
bindsym $mod+Shift+h move left
bindsym $mod+Shift+j move down
bindsym $mod+Shift+k move up
bindsym $mod+Shift+l move right
# alternatively, you can use the cursor keys:
bindsym $mod+Shift+Left move left
@@ -67,7 +80,7 @@ bindsym $mod+Shift+Up move up
bindsym $mod+Shift+Right move right
# split in horizontal orientation
bindsym $mod+semicolon split h
bindsym $mod+0x2d split h
# split in vertical orientation
bindsym $mod+v split v
@@ -106,35 +119,35 @@ set $ws9 "9"
set $ws10 "10"
# switch to workspace
bindsym $mod+1 workspace $ws1
bindsym $mod+2 workspace $ws2
bindsym $mod+3 workspace $ws3
bindsym $mod+4 workspace $ws4
bindsym $mod+5 workspace $ws5
bindsym $mod+6 workspace $ws6
bindsym $mod+7 workspace $ws7
bindsym $mod+8 workspace $ws8
bindsym $mod+9 workspace $ws9
bindsym $mod+0 workspace $ws10
bindsym $mod+1 workspace number $ws1
bindsym $mod+2 workspace number $ws2
bindsym $mod+3 workspace number $ws3
bindsym $mod+4 workspace number $ws4
bindsym $mod+5 workspace number $ws5
bindsym $mod+6 workspace number $ws6
bindsym $mod+7 workspace number $ws7
bindsym $mod+8 workspace number $ws8
bindsym $mod+9 workspace number $ws9
bindsym $mod+0 workspace number $ws10
# move focused container to workspace
bindsym $mod+Shift+1 move container to workspace $ws1
bindsym $mod+Shift+2 move container to workspace $ws2
bindsym $mod+Shift+3 move container to workspace $ws3
bindsym $mod+Shift+4 move container to workspace $ws4
bindsym $mod+Shift+5 move container to workspace $ws5
bindsym $mod+Shift+6 move container to workspace $ws6
bindsym $mod+Shift+7 move container to workspace $ws7
bindsym $mod+Shift+8 move container to workspace $ws8
bindsym $mod+Shift+9 move container to workspace $ws9
bindsym $mod+Shift+0 move container to workspace $ws10
bindsym $mod+Shift+1 move container to workspace number $ws1
bindsym $mod+Shift+2 move container to workspace number $ws2
bindsym $mod+Shift+3 move container to workspace number $ws3
bindsym $mod+Shift+4 move container to workspace number $ws4
bindsym $mod+Shift+5 move container to workspace number $ws5
bindsym $mod+Shift+6 move container to workspace number $ws6
bindsym $mod+Shift+7 move container to workspace number $ws7
bindsym $mod+Shift+8 move container to workspace number $ws8
bindsym $mod+Shift+9 move container to workspace number $ws9
bindsym $mod+Shift+0 move container to workspace number $ws10
# reload the configuration file
bindsym $mod+Shift+c reload
# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
bindsym $mod+Shift+r restart
# exit i3 (logs you out of your X session)
bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -b 'Yes, exit i3' 'i3-msg exit'"
bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -B 'Yes, exit i3' 'i3-msg exit'"
# resize window (you can also use the mouse for that)
mode "resize" {
@@ -144,10 +157,10 @@ mode "resize" {
# Pressing right will grow the windows width.
# Pressing up will shrink the windows height.
# Pressing down will grow the windows height.
bindsym h resize shrink width 3 px or 5 ppt
bindsym j resize grow height 3 px or 5 ppt
bindsym k resize shrink height 3 px or 5 ppt
bindsym l resize grow width 3 px or 5 ppt
bindsym h resize shrink width 10 px or 10 ppt
bindsym j resize grow height 10 px or 10 ppt
bindsym k resize shrink height 10 px or 10 ppt
bindsym l resize grow width 10 px or 10 ppt
# same bindings, but for the arrow keys
bindsym Left resize shrink width 10 px or 10 ppt
@@ -162,23 +175,33 @@ mode "resize" {
}
bindsym $mod+r mode "resize"
bindsym XF86AudioRaiseVolume exec amixer sset Master 5%+
bindsym XF86AudioLowerVolume exec amixer sset Master 5%-
bindsym XF86AudioMute exec amixer sset Master toggle
# Start i3bar to display a workspace bar (plus the system information i3status
# finds out, if available)
bar {
status_command i3status
mode hide
hidden_state hide
modifier $mod
position top
hidden_state hide
modifier $mod
position top
}
hide_edge_borders both
new_window 1pixel
exec_always xinput set-prop "SynPS/2 Synaptics TouchPad" "libinput Tapping Enabled" 1
exec_always xinput set-prop "SynPS/2 Synaptics TouchPad" "libinput Natural Scrolling Enabled" 1
exec_always feh --randomize --bg-fill /home/brad/walls
exec_always nm-applet
exec_always sensors-applet
exec_always blueman-applet
# input settings
exec_always xinput set-prop "ETPS/2 Elantech Touchpad" "libinput Natural Scrolling Enabled" 1
exec_always xinput set-prop "ETPS/2 Elantech Touchpad" "libinput Tapping Enabled" 1
bindsym 0x1008ff02 exec brightnessctl s +25
bindsym 0x1008ff03 exec brightnessctl s 25-
# window shit
default_border none
# Startup Executions
exec_always xinput set-prop "Atmel Atmel maXTouch Digitizer" "Device Enabled" 0
exec --no-startup-id blueman-applet
exec_always --no-startup-id nm-applet
exec_always --no-startup-id parcellite
exec_always --no-startup-id volumeicon
exec --no-startup-id nextcloud
exec --no-startup-id barrier
exec_always --no-startup-id feh --bg-scale /home/brad/wall.png

37
transcribe.sh Executable file
View File

@@ -0,0 +1,37 @@
#!/bin/bash
# Check if an argument was passed
if [ $# -eq 0 ]
then
echo "Usage: $0 <audio file>"
exit 1
fi
# Check if the audio file exists
if [ ! -f "$1" ]
then
echo "Error: File '$1' does not exist"
exit 1
fi
# Get the current date and time
datetime=$(date +"%Y%m%d-%H%M%S")
# Determine the file extension
extension="${1##*.}"
# Convert the audio file to text using Whisper
response=$(curl -s \
-H "Authorization: Bearer ${OPENAI_API_KEY}" \
-F "file=@$1" \
-F "model=whisper-1" \
-F "response_format=json" \
https://api.openai.com/v1/audio/transcriptions)
# Extract the text from the response
text=$(echo "$response" | jq -r '.text')
# Save the text to a file with a unique filename based on the date
echo "$text" > "${datetime}.${extension}.txt"
echo "Transcription saved to ${datetime}.${extension}.txt"