Skip to content

Commit

Permalink
various tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
kaihendry committed Oct 28, 2012
1 parent 3b51c07 commit b37fc34
Show file tree
Hide file tree
Showing 9 changed files with 374 additions and 28 deletions.
1 change: 0 additions & 1 deletion .Xdefaults
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
! x11-ssh-askpass ------------------------------------------------------------
x11-ssh-askpass*font: -*-terminus-*-*-*-*-*-*-*-*-*-*-*-*
x11-ssh-askpass*background: #000000
x11-ssh-askpass*foreground: #ffffff
Expand Down
16 changes: 16 additions & 0 deletions .Xresources
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
UXTerm*utf8: 1
UXTerm*scrollBar: False
UXTerm*title: term
UXTerm*saveLines: 10000
UXTerm*termName: xterm

UXTerm*background: black
UXTerm*foreground: gray
UXTerm*cursorColor: yellow
UXTerm*pointerColor: white
XTerm*vt100.metaSendsEscape: true

UXTerm*faceName: xft:Terminus:size=12:hinting=true

UXTerm*VT100.translations: #override <Btn1Up>: select-end(PRIMARY, CLIPBOARD, CUT_BUFFER0)
UXTerm*sessionMgt: False
7 changes: 6 additions & 1 deletion .bash_profile
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
. ~/.bashrc
#
# ~/.bash_profile
#

[[ -f ~/.bashrc ]] && . ~/.bashrc
[[ $(fgconsole 2>/dev/null) == 1 ]] && exec startx -- vt1
10 changes: 4 additions & 6 deletions .bashrc
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,15 @@ complete -cf sudo

PS1='\[\e[1m\]\h:\w\$\[\e[0m\] '

# Trying to get a history that works... (might be BS)
HISTSIZE=20000
PROMPT_COMMAND="history -a"
export HISTCONTROL=ignoredups
export HISTSIZE PROMPT_COMMAND
unset HISTFILESIZE
export HISTSIZE=10000
export HISTCONTROL="ignoreboth"

umask 002

alias ll='ls -alh --group-directories-first --color=always'
alias ac='vim ~/private/personal/accounts'
alias suspend='sudo pm-suspend'
alias suspend='sudo systemctl suspend'
alias feh="sxiv"

alias grep='GREP_COLOR="1;33;40" LANG=C grep --color=auto'
Expand Down
17 changes: 5 additions & 12 deletions .xinitrc
Original file line number Diff line number Diff line change
@@ -1,23 +1,18 @@
#!/bin/bash
exec >/tmp/startx$$.log 2>&1
set -x

[ -f ~/.xprofile ] && . ~/.xprofile

# for terminus font in Archlinux :(
xset +fp /usr/share/fonts/local
xset fp rehash

xset -b # disable bell

eval `/usr/bin/ssh-agent`

xset -dpms
xset s off

if test -f /usr/lib/openssh/x11-ssh-askpass # Archlinux
then
SSH_ASKPASS=/usr/lib/openssh/x11-ssh-askpass ssh-add < /dev/null
fi

if test -f /usr/lib/ssh/x11-ssh-askpass # Debian
if test -f /usr/lib/ssh/x11-ssh-askpass
then
SSH_ASKPASS=/usr/lib/ssh/x11-ssh-askpass ssh-add < /dev/null
fi
Expand All @@ -32,7 +27,6 @@ setxkbmap -layout gb -option ctrl:nocaps
hash conky && conky &
hash chromium && chromium &

# AutoCutSel.
autocutsel -fork &
autocutsel -selection PRIMARY -fork &

Expand All @@ -44,7 +38,6 @@ done &
while true
do
localtime=$(date +%Z\=%Y-%m-%dT%H:%M)
bandwidth=$(grep $(ip route | egrep '^default' | sed -nr 's/.*dev (\S+).*/\1/p') /proc/net/dev | awk '{printf("Down %.2f Up %.2f", $2 / 1048576, $10 / 1048576);}')
xsetroot -name "$localtime $bandwidth"
xsetroot -name "$localtime"
sleep 20s
done
5 changes: 0 additions & 5 deletions .xprofile

This file was deleted.

2 changes: 0 additions & 2 deletions .xsession

This file was deleted.

Loading

0 comments on commit b37fc34

Please sign in to comment.