This is a Collection of scripts that I have written for my linux Workstation.
Some of these scripts are quite small as some commands can be difficult to remember.
Since there is alot of scripts I will provide a brief explaination for each one going in the order visible on github so the folders will be first.
These scripts are related to the i3 window manager. They either help with startup or keyboard shortcuts.
is the main one here and this runs when I login. This script mounts all the hard drives, mounts the nas drives, startsup some applications, vpn etc..
launches neofetch if specified, used primarily for my i3 config thats why it looks kinda strange.
toggles picom compositor by killing it if it is in the process list or starting it if not.
This script I wrote when I was new to i3 and kept loosing the current window lol. After using i3wm for a year or so you learn to tell which window is active quite easily.
These scripts mess around with the jack config. Jack is a realtime audio API for linux, it is an alternative for pulseaudio.
These are startup scripts used in jackctl
this connects jack inputs for obs to the my mixer.
this removes connections that mplayer makes by default to jack and connects them to correct inputs.
polybar is a common status bar used with window managers. Here are some scripts I wrote that get called from the config
This literly shows how much free space is available on each of my drives both internal and network. It outputs something like this.
root:121G|tmp:16G|temp:159G|veracrypt1:966G|1tb-ssd:179G|2tbssd:1.4T|5tbhdd:798G|Nmusic:523G|Ngames:59G|Nmovies:219G|N8tbhdd:3.1T|Ndump:392G
This outputs the current song playing if there is any and its nicely formatted.
For now this only has the intro script that I use as for my youtube channel. It just draws some fancy heat sink and plays music.
These scripts are fairly generic.
Designed to be sourced by other scripts, it has the escape codes for different colours.
Shortcut script for different directories. Allows saving the current path and calling it later. Made a video about this on youtube.
This generates output to be used for /etc/issue to customise the tty prompt login. This is handy if you use startx as it looks nice before entering the password and login.
This is a simple script that loops and attempts to kill a processs. I find that some processes don't die after a single kill command so this script takes care of that.
This lets you stream your android screen to the pc without any bs.
This script uses axel to download files This script also chooses a random user agent as some websites might block unknown
Usage: axel_with_options.sh https://your_url_to_file.com optional_num_connections This example will download a file with 20 connections axel_with_options.sh http://speedtest.ftp.otenet.gr/files/test100Mb.db 20
Use a lower number of connections for faster websites ( 10 is the default if you dont specify anything ). And for slow ass websites I find that 30 works well
These change the cpu governor and clocks. slow I use when my laptop is disconnected from the wall.
Lists all the available colours in the terminal. Handy for making shell themes.
My interactive wrapper for youtube-dl it has all my favourite options so I don't need to remember anything
Changes dns
Again this is when I was getting used to i3wm. after launching this script though a keyboard shortcut the mouse would move to the centre of my main screen.
Allows you to save your curently open tabs. This script generated another scripts that can be launched to open the saved tabs.
Allows you to see the repo size before cloning. Handy if you have low disk space.
Changes my dns to my lancache server
takes a picture of your desktop, blurs it and applies some effects, then uses i3lock to lock and set that picture as the lockscreen.
monitors tempetures and other stats.
used to mount/unmount nas storage
moves all the files from the current folders into the current folder.
uses youtube-dl to download best quality mp3 and thumbnails.
moves the mouse all over the screen
sets options for ranger to use smplayer
sets options for ranger again such as corrent alias file and so on.
deletes empty directories in the current directory, mostly used after move_files_from_folders.sh
deletes everything in the current directory except the file types you specify. eg. txt will remove everything thats not a txt.
rotates an image
rotates the display
uses xrandr to reposition displays, used in i3_startup script.
takes a screenshot and saves it into /tmp
renames seasons into a more sane name.
randomises shell colours and draws background and other random things. works best with kitty.
controll sound used with i3 keybindings.
can contents of files and anything else into telegram or other windows.
a timer that plays timer.sh when done. it uses the following format timer 10m for 10 minutes, etc.
uses the temporary file upload service.
updates pacman mirrors.
samething as mp3.sh but for wav files as adobe hates mp3s.