Navigation Menu

Skip to content

Commit

Permalink
Multiple Jnana additions
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim DuBois committed Jan 6, 2016
1 parent 89afc9c commit 2a4da46
Show file tree
Hide file tree
Showing 6 changed files with 59 additions and 11 deletions.
10 changes: 7 additions & 3 deletions includes/Jnana/bashrc
Expand Up @@ -3,9 +3,13 @@ source <(envoy -p)

source ~/bin/git-prompt.sh

#Texlive
export PATH=$PATH:/usr/local/texlive/2015/bin/x86_64-linux
#Texlive and Ruby gems
export PATH=$PATH:/usr/local/texlive/2015/bin/x86_64-linux:/home/tim/.gem/ruby/2.3.0/bin

alias matlab-dt='matlab -desktop'
alias fehsvg='feh --magick-timeout 1'
alias pcat='pygmentize -f terminal -O style=native -g'
alias svnaddall="svn status | grep '?' | sed 's/^.* /svn add /' | bash"

export keyboard=qwerty

eval "$(thefuck --alias)"
2 changes: 1 addition & 1 deletion includes/Jnana/xinitrc
Expand Up @@ -8,7 +8,7 @@ if [ -d /etc/X11/xinit/xinitrc.d ] ; then
fi

# systemctl --user start bgchange.timer & #Start wallpaper changer
trayer --width 5 --transparent true --alpha 0 --tint 0x000000 --edge bottom --expand false --SetDockType false --distance 50 &
# trayer --width 5 --transparent true --alpha 0 --tint 0x000000 --edge bottom --expand false --SetDockType false --distance 50 &

xmodmap -e "remove mod1 = Super_L" # make sure X keeps it out of the mod1 group

Expand Down
4 changes: 3 additions & 1 deletion includes/Jnana/xprofile
@@ -1,2 +1,4 @@
~/.scripts/wpchanger
systemctl --user start bgchange.timer & #Start wallpaper changer
trayer --width 5 --transparent true --alpha 0 --tint 0x000000 --edge bottom --expand false --SetDockType false --distance 50 &
# trayer --width 5 --transparent true --alpha 0 --tint 0x000000 --edge bottom --expand false --SetDockType false --distance 20 &
export _JAVA_AWT_WM_NONREPARENTING=1
18 changes: 18 additions & 0 deletions scripts/clip.py
@@ -0,0 +1,18 @@
#!/usr/bin/env python2
import gtk
import sys

count = 0
def handle_owner_change(clipboard, event):
global count
print 'clipboard.owner-change(%r, %r)' % (clipboard, event)
count += 1
if count > 1:
sys.exit(0)

image = gtk.gdk.pixbuf_new_from_file(sys.argv[1])
clipboard = gtk.clipboard_get()
clipboard.connect('owner-change', handle_owner_change)
clipboard.set_image(image)
clipboard.store()
gtk.main()
33 changes: 27 additions & 6 deletions scripts/wpchanger
@@ -1,9 +1,30 @@
#!/bin/bash
WALLPAPERS="/home/tim/Images/Wallpaper"

sd=$(($RANDOM%2))

if [ $sd -eq 1 ]
then
WALLPAPERS="/home/tim/Images/Wallpaper/Single"
else
WALLPAPERS="/home/tim/Images/Wallpaper/Dual"
fi

ALIST=( `ls -w1 $WALLPAPERS` )
RANGE=${#ALIST[@]}
let "number = $RANDOM"
let LASTNUM="`cat $WALLPAPERS/.last` + $number"
let "number = $LASTNUM % $RANGE"
echo $number > $WALLPAPERS/.last
nitrogen --set-scaled --save $WALLPAPERS/${ALIST[$number]}
let "number0 = $RANDOM"
let LASTNUM0="`cat $WALLPAPERS/.last0` + $number0"
let "number0 = $LASTNUM0 % $RANGE"
echo $number0 > $WALLPAPERS/.last0

if [ $sd -eq 1 ]
then
let "number1 = $RANDOM"
let LASTNUM1="`cat $WALLPAPERS/.last1` + $number1"
let "number1 = $LASTNUM1 % $RANGE"
echo $number1 > $WALLPAPERS/.last1
#It'd be nice not to call twice, but I don't think this is a possibility at the moment.
nitrogen --set-scaled --head=0 --save $WALLPAPERS/${ALIST[$number0]}
nitrogen --set-scaled --head=1 --save $WALLPAPERS/${ALIST[$number1]}
else
nitrogen --set-scaled --save $WALLPAPERS/${ALIST[$number0]}
fi
3 changes: 3 additions & 0 deletions vimrc
Expand Up @@ -420,3 +420,6 @@ if filereadable(expand("~/.vimrc.local"))
source ~/.vimrc.local
endif


set encoding=utf-8
let &termencoding=&encoding

0 comments on commit 2a4da46

Please sign in to comment.