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 | |
# (ge)ntoo (pa)ckages - A generic, package tasks script for Gentoo Linux | |
# Required programs | |
req_prgs=(emerge euse sudo) | |
for prog in ${req_prgs[@]}; do | |
if ! hash "$prog" 2>&- ; then | |
echo >&2 ""${0##*/}": requires program: "$prog"" | |
error=y ;fi ; done | |
[ "$error" = y ] && exit 1 |
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
colorscheme jellybeans | |
" Jellybeans colorscheme edits (not working) | |
"let g:jellybeans_overrides = { | |
"\ 'Normal': { 'ctermbg': '242' }, | |
"\ 'CursorLine': { 'ctermbg': '238' }, | |
"\} | |
highlight Normal ctermbg=323232 | |
highlight Normal ctermbg=303030 | |
highlight CursorLine ctermbg=238 | |
highlight Visual ctermbg=240 |
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/sh | |
# (Ar)ch (pa)ckages - generic package tasks wrapper script | |
# Required programs | |
req_prgs=(pacaur sudo) | |
for prog in ${req_prgs[@]}; do | |
if ! hash "$prog" 2>&- ; then | |
echo >&2 ""${0##*/}": requires program: "$prog"" | |
error=y ;fi ; done | |
[ "$error" = y ] && exit 1 |
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
# Bash-configuration for user | |
# Check for an interactive session | |
[ -z "$PS1" ] && return | |
## Settings ## | |
set_prompt_style () { # Custom prompt | |
local bldpur='\e[1;35m' # Purple | |
local bldblu='\e[1;34m' # Blue |
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/sh | |
# Backup files with sequential numbering and optional tag | |
# Display usage if given the incorrect number of parameters | |
if [ $# -ne 2 -a $# -ne 3 ]; then | |
echo "${0##*/} [file] [dir] [*tag]- Backup files with sequential numbering, opt. tag" | |
exit 1; fi | |
# Test if first and second parameters are a file and a directory | |
if [ ! -e "$1" ]; then |
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 temporary file(s) and open in gedit | |
# Program required: gedit test | |
hash gedit 2>&- || { echo " Program required \"gedit\" not installed"; exit 1; } | |
# Display usage | |
if [[ $1 == -h ]]; then | |
echo "gt [name*] [name*]... - create temporary file(s) and open in gedit" | |
exit 1; fi |
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 | |
# Link shortcut | |
# Display usage if incorrect number of parameters given | |
if [ $# != 2 ]; then | |
echo " ${0##*/} <source> <link> - ln shortcut" | |
exit 1; fi | |
# Source absolute path | |
if [ ! -e "$1" ]; then |
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
// Graphic Card | |
seta sys_videoRam "512" // use com_videoRam to check if right | |
// Sound Card | |
seta s_alsa_pcm "plughw:1,0" // Use second sound out device | |
// Monitor |
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 | |
# Switch between AMD's integrated video card and discrete video card | |
# Active GPU | |
gpu_active=$(aticonfig --px-list | cut -d " " -f 2) | |
# Restart X.org server | |
xorg_restart () { | |
gnome-session-quit --logout # GNOME, will still prompt if unsaved | |
# --no-prompt causing problems |
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 | |
# Backup system configurations | |
# Source Directory (should be root (/) as include and exclude files use full paths) | |
src_dir="/" | |
# Destination Parent Directory | |
dsp_dir="/mnt/Backup" | |
dsp_dir="/run/media/todd/Backup/rsync" |