This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# rm replacement for regular user. Moves files to trash rather than | |
# directly deleting them. | |
reg_rm=/bin/rm | |
# Display usage if no parameters given | |
if [[ -z "$@" ]]; then | |
echo " ${0##*/} <file, folder, link...> - rm replacement: move to trash rather than delete" | |
exit |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Desktop Entry] | |
Name=External Monitor Configure | |
Type=Application | |
Exec=sh -c /home/todd/.scripts/bugfixes/externalmonitor | |
Icon=gnome-display-properties | |
Hidden=false | |
NoDisplay=false | |
X-GNOME-Autostart-enabled=true | |
X-GNOME-Autostart-Delay=5 | |
Comment=Toggle external and built-in laptop monitor and set displaysize, font size and brightness |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Copy common, other, and their previous password to clipboard | |
stpw_dir=$HOME # directory containing password files | |
stpw_dro=$stpw_dir/.sitepass-old # directory containing old passwords | |
stpw_fc=$stpw_dir/.sitepass-com.txt # filename containing common passwd | |
stpw_fo=$stpw_dir/.sitepass-oth.txt # filename containing other passwd | |
stpw_fC=$(ls -1 $stpw_dro/.sitepass-com* | tail -n 1) #filename of previous comm | |
stpw_fO=$(ls -1 $stpw_dro/.sitepass-oth* | tail -n 1) #filename of previous othe |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Generate password for common and other use (websites, programs...) | |
stpw_dir=$HOME # directory containing password files | |
stpw_fc=$stpw_dir/.sitepass-com.txt # filename containing common passwd | |
stpw_fo=$stpw_dir/.sitepass-oth.txt # filename containing other passwd | |
# Required program(s) | |
req_progs=(pwgen) | |
for p in ${req_progs[@]}; do |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Edit list of websites, programs... using common password | |
stpw_dir=$HOME # dir containing password files | |
sitelist="$stpw_dir"/.sitepass-ls.txt # filename of list | |
editor=vim # text editor preference | |
# Display usage if no parameters given | |
if [[ -z "$@" ]]; then | |
echo " ${0##*/} <option> <*add entry> - list of programs/sites using common pw |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Toggle between laptop and external monitor | |
# Required program(s) | |
req_progs=(bc) | |
for p in ${req_progs[@]}; do | |
hash "$p" 2>&- || \ | |
{ echo >&2 " Required program \"$p\" not installed."; exit 1; } | |
done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Create HTML-colored code from Vim syntax highlighting | |
filename=$@ | |
background=light | |
colorscheme=beauty256 | |
#colorscheme=simple256 | |
#colorscheme=peaksea | |
# Display usage if no parameters given |