Added beatmaker files

This commit is contained in:
Eric Teunis de Boone 2016-10-03 10:30:30 +02:00
parent 811a903869
commit 979739552d
13 changed files with 116 additions and 25 deletions

View File

@ -11,8 +11,10 @@ if [ -x /usr/bin/dircolors ]; then
fi
# some more ls aliases
alias ll='ls -l'
alias l.='ls -d *'
alias ll='ls -l --si -v --group-directories-first'
alias la='ls -A'
alias lla='ll -A'
alias l='ls -CF'
# Use vim if possible instead of vi
@ -29,3 +31,7 @@ alias pc='python -ic "from __future__ import division; from math import *"'
# Moving around
alias ~='cd ~'
alias ..='cd ..'
# Computer control
alias blank='xset dpms force off'
alias lock='blank; xscreensaver-command --lock'

5
bash/scriptlets/dropbox Normal file
View File

@ -0,0 +1,5 @@
# Run the dropbox daemon in the background
if [ -x "$HOST/.dropbox-dist/dropboxd" ]
then
"$HOST/.dropbox-dist/dropboxd" & alias killDropbox='kill $!'
fi

View File

@ -1,3 +1,10 @@
if [[ $(command -v fortune) ]]; then
fortune -so
# Give a fortune cookie
if [[ $(command -v fortune) ]]
then
if [[ $(command -v cowsay) ]]
then
fortune -so | cowsay -n
else
fortune -so
fi
fi

4
bash/scriptlets/iraf Normal file
View File

@ -0,0 +1,4 @@
# Add iraf setup commands
if [ -e /home/ericteunis/.iraf/setup.sh ]; then
source /home/ericteunis/.iraf/setup.sh
fi

View File

@ -67,15 +67,13 @@ function __prompt_command() {
PS1+="@"
if color ; then
if [[ $HOSTNAME == 'fatserf' ]]; then
PS1+="${Pur}\H${RCol}"
elif [[ $HOSTNAME == 'lilo'* ]]; then
PS1+="${BWhi}\H${RCol}"
elif [[ $HOSTNAME == 'hg'* ]]; then
PS1+="${BRed}\H${RCol}"
else
PS1+="${Blu}${On_Whi}\H${RCol}"
fi
case "$HOSTNAME" in
'beatmaker') PS1+="${Gre}\H${RCol}";;
'fatserf') PS1+="${Pur}\H${RCol}";;
'lilo'*) PS1+="${BWhi}\H${RCol}";;
'hg'*) PS1+="${BRed}\H${RCol}";;
*) PS1+="${Blu}${On_Whi}\H${RCol}";;
esac
else
PS1+="\H"
fi

View File

@ -1,3 +1,2 @@
echo "Welcome onboard:"
figlet -t sXc : fatSerf
fortune | cowsay -n

6
envs/starlink Normal file
View File

@ -0,0 +1,6 @@
# Add StarLink
STARLINK_DIR='/mnt/data/user/bin/star-hikianalia'
if [ -e $STARLINK_DIR"/etc/profile" ]; then
source $STARLINK_DIR"/etc/profile"
fi

View File

@ -7,11 +7,14 @@
- link:
~/.bashrc: bash/bashrc
~/.profile: profile.sh
~/.gitconfig: git/gitconfig
~/.ncmpcpp/config: ncmpcpp/config
~/.profile: profile.sh
~/.ssh/config: ssh/config
~/.tmux: tmux
~/.tmux.conf: tmux/tmux.conf
~/.vimrc: vim/vimrc
~/.ncmpcpp/config: ncmpcpp/config
~/.xinitrc: xinitrc
#- shell:
# - git submodules update # after linking ~/.gitconfig

View File

@ -1 +1,5 @@
colors_enabled = "yes"
mpd_connection_timeout = "2"
user_interface = "alternative"
mpd_crossfade_time = "2"

1
startx
View File

@ -1 +0,0 @@
exec gnome

2
tmux/beatmaker.conf Normal file
View File

@ -0,0 +1,2 @@
set -g status-bg blue
set -g status-right '♪ #(exec amixer get Master | egrep -o "[0-9]+%" | egrep -o "[0-9]*") | ♥#(acpi | cut -d ',' -f 2) | %a %m-%d %H:%M'

View File

@ -1,9 +1,6 @@
# use ^b as prefix
set -g prefix C-b
# vim shortcuts
setw -g mode-keys vi
# force a reload of the config file
unbind r
bind r source-file ~/.tmux.conf\; display "Reloaded!"
@ -14,6 +11,11 @@ set -g base-index 1
# vim shortcuts
setw -g mode-keys vi
# Make copy mode more vim-like.
bind -t vi-copy v begin-selection
bind -t vi-copy y copy-selection
bind -t vi-copy C-v rectangle-toggle
# commands
bind : command-prompt
@ -32,7 +34,6 @@ bind - split-window -v
set -g status-left "#h"
set -g status-left-length 70
set -g status-right "%a %d-%m-%y :: %H:%M"
#set -g status-right '♪ #(exec amixer get Master | egrep -o "[0-9]+%" | egrep -o "[0-9]*") | ♥#(acpi | cut -d ',' -f 2) | %a %m-%d %H:%M'
# Try loading machine specific things
run-shell "bash ~/.tmux/load_hostnames.sh"

63
xinitrc
View File

@ -1,3 +1,60 @@
exec unity
#exec xterm
#exec /usr/bin/gnome-session --session=unity
#!/bin/sh
#Standard Stuff
. /etc/X11/xinit/xinitrc-common
if [ -f $HOME/.Xclients ]; then
exec $CK_XINIT_SESSION $SSH_AGENT $HOME/.Xclients || \
exec $CK_XINIT_SESSION $SSH_AGENT $HOME/.Xclients
elif [ -f /etc/X11/xinit/Xclients ]; then
exec $CK_XINIT_SESSION $SSH_AGENT /etc/X11/xinit/Xclients || \
exec $CK_XINIT_SESSION $SSH_AGENT /etc/X11/xinit/Xclients
else
# Failsafe settings. Although we should never get here
# (we provide fallbacks in Xclients as well) it can't hurt.
[ -x /usr/bin/xsetroot ] && /usr/bin/xsetroot -solid '#222E45'
[ -x /usr/bin/xclock ] && /usr/bin/xclock -geometry 100x100-5+5 &
[ -x /usr/bin/xterm ] && xterm -geometry 80x50-50+150 &
[ -x /usr/bin/twm ] && /usr/bin/twm
fi
# ---------------------------------------------------------------
# OWN
# ---------------------------------------------------------------
# Load session
DEFAULT_SESSION=awesome
XTERM=xterm
case $1 in
xfce4)
exec startxfce4
;;
awesome)
xscreensaver -nosplash &
nm-applet &
exec awesome >> $HOME/.cache/awesome/stdout 2>> $HOME/.cache/awesome/stderr
;;
enlightenment)
exec enlightenment_start
;;
openbox)
exec openbox
;;
cinnamon)
exec cinnamon
;;
kde)
exec startkde
;;
gnome)
exec gnome-session
;;
unity)
exec unity
;;
xterm)
exec xterm
;;
*)
exec $DEFAULT_SESSION
;;
esac