Advertisement
cirrus

autostart/misc

Sep 17th, 2012
375
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 8.21 KB | None | 0 0
  1. ------------------Arch--Start----------------
  2. #always append & to end of command otherwisecommands will fail to run.
  3. # curl-F sprunge=@/etc/fstab sprunge.us
  4. # lftp -e 'pget http://mirror.anl.gov/pub/centos/6.3/isos/x86_64/CentOS-6.3-x86_64-LiveCD.iso; exit; '
  5.  
  6. /home/cirrus/.screenlayout/screen.sh &
  7. hsetroot -solid #000066
  8. compton -cGb -i 0.7 -e 0.7 -m 0.7 -fF &
  9. sleep 1s &
  10. nitrogen --restore &
  11. tint2 &
  12. sleep 1s &
  13. #compton -cC  -I 0.7 -O 2.7 -D 50 -m 2.0 -G -i 0.7 -e 0.7 -fF &
  14. #compton -cC -i 0.7 -e 0.7 -D 50 -m 0.7 -G -b -fF &
  15. conky -q &
  16. #/usr/bin/cairo-dock -o &
  17. dclock -bg black -fg turquoise -led_off black -geometry 169x69 &
  18. volumeicon &
  19. #(sleep 3 && /usr/bin/nm-applet --sm-disable) &
  20. #volwheel &
  21. /usr/bin/checkgmail &
  22. /usr/bin/tilda &
  23. /usr/bin/turpial &
  24. xset s off &
  25. xset -dpms &
  26. setterm -blank 0 -powerdown 0 &
  27.  
  28. #drun
  29. ----------------Arch--End-------------------
  30. obapps                 (config where certain apps open on your desktop)
  31. obkey                  (config keybinds for any task,launcher)
  32. obconf                 (config openbox)
  33. obmenu                 (config menu in openbox)
  34. drun                   (run box)
  35. dclock                 (digital clock widgit for desktop)
  36. spacefm                (full feature file manager)
  37. mplayer                (media player)
  38. smplayer               (front end for mplayer , play you tube vids without flash)
  39. mcplay                 (CLI MP3 Player)
  40. termite -e weechat-curses irc://Cirrus_Minor@irc.FreenodeSSL.net/#archlinux-offtopic,#archlinux,#hackerhaven,#darkfox,#r/linux,#linuxjournal,#techrights
  41.  
  42.  
  43. ----------------Archbang--Start--------------
  44. #(sleep 3 && /usr/bin/nm-applet --sm-disable) &
  45. /home/cirrus/.screenlayout/default.sh
  46. nitrogen --restore &
  47. ~/.config/openbox/scripts/xcompmgr.sh setshadowshade
  48. tint2 &
  49. conky -q &
  50. dclock &
  51. volumeicon -b &
  52. xcompmgr -CcFf &
  53. #xbacklight -set 100 &
  54. #/usr/bin/synclient TouchpadOff=1 &
  55. /usr/bin/checkgmail &
  56. /usr/bin/tilda &
  57. #batti &
  58. #fbxkb &
  59. xset s off &
  60. xset -dpms &
  61. setterm -blank 0 -powerdown 0 &
  62. ------------------Archbang--End-----------------
  63. scrot commands/misc
  64. now    scrot '%Y-%m-%d--%s_$wx$h_scrot.png' -e 'mv $f ~/ & shotwell ~/$f'
  65. 5 seconds   scrot -d 5 '%Y-%m-%d--%s_$wx$h_scrot.png' -e 'mv $f ~/ & shotwell ~/$f'
  66. selected area   scrot -s '%Y-%m-%d--%s_$wx$h_scrot.png' -e 'mv $f ~/ & shotwell ~/$f'
  67. tint2       leafpad ~/.config/tint2/tint2rc
  68. autostart   leafpad ~/.config/openbox/autostart
  69. .conkyrc    leafpad /home/cirrus/.conkyrc  
  70. .logs       leafpad ~/.logs/zhistory
  71. reboot  sudo systemctl reboot
  72. exit   sudo systemctl poweroff
  73. ----------------------------------------------------------------------------
  74. # ~/.bashrc
  75. #
  76. cat /etc/motd  
  77. command cowthink -f tux $(fortune all)
  78. # If not running interactively, don't do anything
  79. [[ $- != *i* ]] && return
  80. alias ls='ls --color=auto'
  81. PS1="$sq_color\342\224\214\342\224\200\$([[ \$? != 0 ]] && echo \"[\[\033[01;36m\]\342\234\227$sq_color]\342\224\200\")[\[\033[01;31m\]\t$sq_color]\342\224\200[\[\033[01;36m\]\u@\h$sq_color]\n\342\224\224\342\224\200\342\224\200> \[\033[01;35m\]\W$sq_color $ \[\033[01;32m\]>>\\[\\033[0m\\] "
  82. #PS1='[\u@\h \W]\$ '
  83. #PS1='\[\e[0;31m\]\u\[\e[m\] \[\e[1;31m\]\w\[\e[m\] \[\e[0;31m\]\$ \[\e[m\]\[\e[0;36m\] '
  84. PS1='\[\e[1;31m\][\u@\h \W]\$\[\e[1;36m\] '
  85. if [[ -z "$DISPLAY" ]] && [[ $(tty) = /dev/tty1 ]]; then
  86.   . startx
  87.   logout
  88. fi
  89. #shell profile file
  90. setxkbmap -layout gb
  91. #mount ufs BSD fs
  92. sudo mount -t ufs -o ufstype=ufs2,ro /dev/sde2 /mnt/sde2    
  93. To copy a file called /mnt/usr/home/cirrus/data/resume.pdf, enter:
  94. # cp /mnt/usr/home/cirrus/data/resume.pdf /home/cirrus/
  95. ----------------------------------------------------------------------------
  96. wget download
  97. wget -O /home/cirrus/cent.iso http://mirror.anl.gov/pub/centos/6.3/isos/x86_64/CentOS-6.3-x86_64-LiveCD.iso
  98.  
  99. autoload -U promptinit && prompt gtmanfred    # command for best zsh prompt
  100.  
  101. ------------------------------------------------------------------------------
  102. .xinitrc
  103. #!/bin/bash
  104. export BROWSER=firefox
  105. export DE=openbox
  106. exec  dbus-launch openbox-session
  107. ------------------------------------------------------------------
  108. compton-git compositing manager examples
  109. compton -cC -G -b       (basic)
  110. compton -cC -i 0.6 -e 0.6
  111. compton -cC -i 0.6 -e 0.6 -fF
  112. compton -cC -fF -I 0.065 -O 0.065 -D 6 -m 0.8 -i 0.6 -e 0.6
  113. compton -cC -fF -I 0.065 -O 0.065 -D 6 -m 0.8 -G -b -i 0.5 -e 0.75   (bling)
  114. compton -cC  -I 0.7 -O 2.7 -D 390 -m 0.7 -G -b -i 0.9 -e 0.9 -fF &  
  115. compton -cC  -I 0.7 -O 2.7 -D 390 -m 0.7 -G -b -i 0.5 -e 0.5 -fF &  
  116. compton -cGb -i 0.7 -e 0.7 -m 0.7 -fF & *
  117. The comptonrc goes in ~/.config/compton
  118. Here is my comptonrc: (Basic is the default setting in Waldorf)
  119.                  ---------Start----------
  120.  
  121. # compton start-up command used by CrunchBang's compositing pipemenu.
  122. # See 'man compton' for details about how to modify these settings.
  123.  
  124. ## Basic
  125. #EXECXCOMP='compton -cC -G -b'
  126.  
  127. ## Less basic - tip: uncomment below and comment out above, then restart
  128. EXECXCOMP='compton -cC -fF -I 0.065 -O 0.065 -D 6 -m 0.8 -G -b -i 0.5 -e 0.75'
  129.                     --------End-------------
  130.                
  131. ------------------------------------------------------
  132. /etc/adjtime
  133. 0.000000 1345312980 0.000000
  134. 1345312980
  135. UTC
  136. ----------------------------------------------
  137. console clock
  138.  
  139. yes 'clear;printf "\n\n\n\n\t\t\t`date`\n";sleep 1' | sh
  140.  
  141. cclock -n
  142. cmatrix -C cyan
  143. ----------------------------------------------------------
  144. format usb stick to fat16 in CLI
  145. sudo fdisk -l                (find usb device s**)
  146. mkdosfs -F 16 -I /dev/s**    ( -F 32 -I for fat32, recomended if usb device is over 4GB )
  147. umount /dev/s**
  148. write iso to formatted usb
  149. as root cd to dir where iso resides
  150. dd if=full-name-of.iso of=/dev/s**
  151. dd if=/dev/urandom | pv | dd of=/dev/null
  152. ----------------------------------------------------------------
  153. screencast
  154. ffmpeg -v 1 -r 4 -f x11grab -s 1920x1080 -i :0.0+0,0 -vcodec libx264 cast1.mkv
  155. sleep 2; ffmpeg -f x11grab -r 4 -s 598x686 -i :0.0+764,0 -vcodec libx264 cast1.mkv
  156. sleep 2; ffmpeg -f x11grab -r 4 -s 1920x1080 -i :0.0+0,0 -vcodec libx264 cast1.mkv
  157. sleep 2; ffmpeg -f x11grab -r 4 -s 3840x1080 -i :0.0+0,0 -vcodec libx264 cast1.mkv
  158. sleep 2; ffmpeg -f x11grab -r 4 -s 1919x1028 -i :0.0+0,0 -vcodec libx264 cast1.mkv
  159. ffmpeg -f alsa -i default -itsoffset 00:00:00 -f video4linux2 -s 1280x720 -r 25 -i /dev/video0 out.avi
  160. ffmpeg -v 1 -r 25 -f x11grab -s 3840x1080 -i :0.0+0,0 -vcodec libx264 cast1.mkv
  161. ffmpeg -v 1 -r 30 -f x11grab -s 640x480 -i :0.0 -vcodec libx264 -preset ultrafast -crf 0 -threads 0 cast.mkv
  162. ffmpeg -f alsa -ac 2 -i hw:1,0 -f x11grab -r 30 -s $1x$2 -i :0.0+$3,$4 -acodec pcm_s16le
  163. -vcodec libx264 -vpre lossless_ultrafast -threads 0 $5.mkv
  164. ffmpeg -f alsa -i hw:0 -itsoffset 00:00:00 -f video4linux2 -s 1280x720 -r 25 -i /dev/video0 out.avi
  165.  
  166. The easiest way to get Yaourt would be this.. copy/paste in terminal:
  167. =====
  168. sudo su -c 'echo "[archlinuxfr]
  169. Server = http://repo.archlinux.fr/$arch" >> /etc/pacman.conf'
  170. =====
  171.  
  172. and then do a...
  173. ====
  174. sudo pacman -Sy yaourt
  175. ====
  176.  
  177. Done!.. after that just Yaourt. Remember that you should never build as root. So no sudo for Yourt unless it is asked.
  178. ix tempfile.txt
  179. transmission blocklist
  180. http://list.iblocklist.com/?list=bt_microsoft&fileformat=p2p&archiveformat=gz
  181. ............................................................................................
  182. #hsetroot -solid #000066 &
  183. /home/cirrus/.screenlayout/screen.sh &
  184. compton -CGb -i 0.7 -e 0.7 -m 0.7 -fF &
  185. nitrogen --restore &
  186. tint2 &
  187. conky -q &
  188. #dclock -bg black -fg turquoise -led_off black -geometry 169x69 &
  189. volumeicon &
  190. /usr/bin/checkgmail -no_cookies &
  191. /usr/bin/tilda &
  192. termite &
  193. /usr/bin/turpial &
  194. xset s off &
  195. xset -dpms &
  196. setterm -blank 0 -powerdown 0 &
  197. #sleep 1s &
  198. #(sleep 3 && /usr/bin/nm-applet --sm-disable) &
  199. #/usr/bin/cairo-dock -o &
  200. #compton -cC  -I 0.7 -O 2.7 -D 50 -m 2.0 -G -i 0.7 -e 0.7 -fF &
  201. #compton -cC -i 0.7 -e 0.7 -D 50 -m 0.7 -G -b -fF &
  202. noip2 &
  203.  
  204. echo $(($(($(date +%s) - $(date -d "$(head -1 /var/log/pacman.log | cut -d ' ' -f 1,2 | tr -d '[]')" +%s))) / 86400)) days
  205.  
  206. Unfortunately, IMG images cannot be burnt directly, so we convert them to ISO. There is a nice tool called ccd2iso to accomplish this task.
  207.  
  208.     $ ccd2iso <IMG input file> <ISO output file>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement