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
myStartUpHook = do | |
setWMName "LG3D" -- Java progs need this a jdk 1.6+ | |
mapM_ spawnOnce {b <- doesFileExist "~/.usewicd" ; if b then myStartupSpawns else myStartupSpawns ++ "sleep 2 && wicd --gtk-tray"} |
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
myStartUpHook = do | |
setWMName "LG3D" -- Java progs need this a jdk 1.6+ | |
mapM_ spawnOnce ( doesFileExist "~/.usewicd" >>= \b -> if b then myStartupSpawns else myStartupSpawns ++ ["sleep 2 && wicd --gtk-tray"]) | |
myStartupSpawns :: [String] | |
myStartupSpawns = [ | |
"xcompmgr" | |
,"xscreensaver -no-splash" | |
,"stalonetray" | |
,"feh --bg-fill ${WALLPAPER}" | |
,"sleep 2 && xfce4-power-manager" |
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
myStartUpHook = do | |
setWMName "LG3D" -- Java progs need this a jdk 1.6+ | |
useWicd <- io $ doesFileExist "/usr/bin/wicd-gtk" | |
mapM_ spawnOnce ([ head [ "sleep " ++ show b ++ " && "| b>0] ++ a |(a,b) <- myStartUpSpawns] ++ ["sleep 2 && wicd-gtk --tray" | useWicd] ) | |
myStartUpSpawns :: [(String,Int)] | |
myStartUpSpawns = [ | |
("xcompmgr",0) | |
,("xscreensaver -no-splash",0) | |
,("stalonetray",0) | |
,("feh --bg-fill ${WALLPAPER}",0) |
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
myStartUpHook = do | |
useWicd <- IO $ doesFileExist "/usr/bin/wicd-gtk" | |
setWMName "LG3D" -- Java progs need this a jdk 1.6+ | |
mapM_ spawnOnce [ if c then ((if b>0 then "sleep "++ show b ++" && " else []) ++ a)else [] |(a,b,c)<-myStartupSpawns] | |
where | |
useWicd = True | |
myStartupSpawns = [ | |
("xcompmgr",0,True) | |
,("xscreensaver -no-splash",0,True) | |
,("stalonetray",0,True) |
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
myStartUpHook = do | |
useWicd <- io $ doesFileExist "/usr/bin/wicd-gtk" | |
setWMName "LG3D" -- Java progs need this a jdk 1.6+ | |
mapM_ spawnOnce [ if c then ((if b>0 then "sleep "++ show b ++" && " else []) ++ a)else [] |(a,b,c)<-myStartupSpawns] | |
where | |
myStartupSpawns = [ | |
("xcompmgr",0,True) | |
,("xscreensaver -no-splash",0,True) | |
,("stalonetray",0,True) | |
,("feh --bg-fill ${WALLPAPER}",0,True) |
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
myStartUpHook = do | |
useWicd <- doesFileExist "/usr/bin/wicd-gtk" | |
setWMName "LG3D" -- Java progs need this a jdk 1.6+ | |
mapM_ spawnOnce [ if c then ((if b>0 then "sleep "++ show b ++" && " else []) ++ a)else [] |(a,b,c)<-myStartupSpawns] | |
where | |
myStartupSpawns = [ | |
("xcompmgr",0,True) | |
,("xscreensaver -no-splash",0,True) | |
,("stalonetray",0,True) |
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 | |
mountpoint="${1-/media/debianbackup}" | |
sudo mount "${mountpoint}" | |
mount | grep "${mountpoint}" >/dev/null | |
if [ "$?" -eq 0 ] | |
then | |
sudo rsync -aAXv /* "${1-"${mountpoint}"}" --exclude={"${HOME}"/.cache,/dev/*,/proc/*,/sys/*,/tmp/*,/run/*,/mnt/*,"${mountpoint}",/media/cdrom0,/lost+found} --delete | |
echo "Unmounting "${mountpoint}"" | |
sudo umount "${mountpoint}" | |
else |
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
export ANDROIDSDK="${HOME}"/thirdparty/android/sdk | |
export ANDROID_HOME="${HOME}"/thirdparty/android/sdk | |
PATH=${ANDROIDSDK}/tools:${ANDROIDSDK}/platform-tools:${PATH} |
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
export ANDROIDSDK="${HOME}"/thirdparty/android/sdk | |
export ANDROID_HOME="${HOME}"/thirdparty/android/sdk | |
PATH=${ANDROIDSDK}/tools:${ANDROIDSDK}/platform-tools:${PATH} |
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
buildscript { | |
repositories { | |
mavenCentral() | |
mavenLocal() | |
} | |
dependencies { | |
classpath 'com.android.tools.build:gradle:0.12.1' | |
} |