added profile

This commit is contained in:
lucca
2026-09-19 21:23:27 -04:00
parent 96895c9755
commit 498aed50d2
10 changed files with 898 additions and 3 deletions
+155
View File
@@ -0,0 +1,155 @@
#profile: executed by the command interpreter for login shells.
# This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login
# exists.
# see /usr/share/doc/bash/examples/startup-files for examples.
# the files are located in the bash-doc package.
# the default umask is set in /etc/profile; for setting the umask
# for ssh logins, install and configure the libpam-umask package.
#umask 022
# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/bin" ] ; then
PATH="$HOME/bin:$PATH"
fi
# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/.local/bin" ] ; then
PATH="$HOME/.local/bin:$PATH"
fi
#text colors
txtblk='\e[0;30m' # Black - Regular
txtred='\e[0;31m' # Red
txtgrn='\e[0;32m' # Green
txtylw='\e[0;33m' # Yellow
txtblu='\e[0;34m' # Blue
txtpur='\e[0;35m' # Purple
txtcyn='\e[0;36m' # Cyan
txtwht='\e[0;37m' # White
x="/etc/X11/xorg.conf.d"
xmonad="$HOME/.xmonad/xmonad.hs"
xmo=$xmonad
gpc="$HOME/mnt/gaming-win/C:/Users/lucka/"
brc="$HOME/.bashrc"
alias v="vim"
alias s="sudo"
alias mg="sshfs gaming-pc.mario:/ ~/mnt/gaming-pc"
alias mt="sshfs lucka@terraria.mario: ~/mnt/terraria.mario"
alias umg="umount ~/mnt/gaming-pc"
#alias ms="sshfs truenas.mario:/mnt/b8ce9a57-7ce7-47b8-a233-21184c8a0953/share ~/share -o reconnect -o ServerAliveInterval=15"
#alias ums="umount ~/share"
alias p="~/sh/ytmusicquick"
alias nas="ssh nas.mario"
#alias mn="sshfs -o allow_root truenas.mario:/mnt/mario ~/mnt/truenas.mario"
mn () {
sudo mount -o rsize=131072,wsize=131072,nconnect=16 -t nfs 10.0.21.1:/mnt/mario/share ~/mnt/truenas.mario/share
sudo mount -o rsize=131072,wsize=131072,nconnect=16 -t nfs 10.0.21.1:/mnt/mario/websites ~/mnt/truenas.mario/websites
sudo mount -o rsize=131072,wsize=131072,nconnect=16 -t nfs 10.0.21.1:/mnt/mario/roms ~/mnt/truenas.mario/roms
#sudo mount -o rsize=130048,wsize=131007,bsize=16777216,username=roms,password=00P9sVAgGQymKp2hZi79TYXliJt20tAT,uid=1000,gid=1000,iocharset=utf8,mapposix,actimeo=6,echo_interval=1,nostrictsync,cache=loose,nocase,soft,vers=3.1.1 -t cifs //10.0.21.1/roms ~/mnt/truenas.mario/roms
sudo mount --bind /home/lucka/.steam/steam/steamapps/compatdata /home/lucka/mnt/truenas.mario/roms/windows/Steamm/steamapps/compatdata
sudo mount -o rsize=131072,wsize=131072,nconnect=16 -t nfs 10.0.21.1:/mnt/slowpool/movies ~/mnt/truenas.mario/movies
sudo mount -o rsize=131072,wsize=131072,nconnect=16 -t nfs 10.0.21.1:/mnt/mario/os-isos/template/iso ~/mnt/truenas.mario/os-isos
}
alias umn="sudo umount ~/mnt/truenas.mario/*"
alias mfs="~/sh/mount-all-filesystems.sh"
alias lgctl="~/sh/lgctl"
alias bs="barriers -f -c ~/.config/barrier-server.conf --disable-crypto"
alias xe="vim ~/.xmonad/xmonad.hs"
sshfs(){
/usr/bin/sshfs -o reconnect,allow_root,workaround=buflimit,ServerAliveInterval=15,ServerAliveCountMax=3 $*
}
ytmp3 () {
yt-dlp --extract-audio --audio-format mp3 $@
}
ytmp3numbered () {
ytmp3 --output "%(autonumber)s - %(title)s.%(ext)s" $@
}
ytdl () {
yt-dlp "$*"
}
tfcfg () {
ssh gaming-win -t "e: && cd steamlibrary\steamapps\common\team fortress 2\tf\cfg && cmd"
}
gremote () {
#bash -c 'sleep 2 && remmina -c vnc://127.0.0.1:5901' &
ssh -L 5901:127.0.0.1:5901 $1 'pkill x11vnc; x11vnc -display :0 -rfbport 5901 -localhost -threads -noxfixes -noxdamage'
}
i () {
sudo apt install "$*"
}
u () {
sudo apt purge "$*"
}
sshmnt () {
mkdir -p ~/mnt/$1
sshfs -o ServerAliveInterval=7 $1 ~/mnt/$1
}
n () {
numlockx off
}
terminal-open () {
xfce4-terminal --command "$*"
}
topen () {
terminal-open "$*"
}
+x () {
chmod ug+x $*
}
cdwm () {
cd ~/compile/lukedwm/dwm
}
recordto () {
ffmpeg -f pulse -i default -codec:a flac "${1}.flac"
}
getclip () {
xclip -selection c -o
}
setclip () {
xclip -selection c
}
sshsus () {
ssh -J root@10.0.42.69 $*
}
webp () {
ffmpeg -i $1 -vcodec libwebp -filter:v fps=fps=60 -lossless 1 -loop 0 -preset default -an -vsync 0 $1.webp
}
alias py="python3"
pssh () {
adb forward tcp:65522 tcp:22; ssh root@127.0.0.1 -p 65522 $*
}
testvidmode () {
xrandr --delmode HDMI-A-0 $1
xrandr --rmmode $1
xrandr --newmode $*
xrandr --addmode HDMI-A-0 $1
xrandr --output HDMI-A-0 --mode $1
}
testvidmode2 () {
xrandr --delmode DisplayPort-0 $1
xrandr --rmmode $1
xrandr --newmode $*
xrandr --addmode DisplayPort-0 $1
xrandr --output DisplayPort-0 --mode $1
}
nintendontify () {
for i in *; do mkdir "$(echo $i | sed 's/.iso//')"; mv "$i" "$(echo $i | sed 's/.iso//')"/game.iso; done
}
wiiconnect () {
bluetoothctl connect 00:1E:35:3A:A9:B5
}
vsync () {
picom --backend glx --vsync
}
crtTV () {
       testvidmode "1280x480_60i" 26.108 1280 1332 1455 1664 480 483 489 523 interlace -hsync -vsync
       xrandr --output DisplayPort-0 --mode 1280x480_60i --scale-from 640x480 --below HDMI-A-0
}
crtTVscale () {
       testvidmode "1280x480_60i" 26.108 1280 1332 1455 1664 480 483 489 523 interlace -hsync -vsync
       xrandr --output DisplayPort-0 --mode 1280x480_60i --scale-from 1280x960 --below HDMI-A-0
}