Advertisement
Guest User

Untitled

a guest
Dec 7th, 2013
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.00 KB | None | 0 0
  1. #This is in my /home/username folder (.xinitrc)
  2.  
  3. #!/usr/bin/env bash
  4.  
  5. # Load .Xresources
  6. xrdb -merge $HOME/.Xresources
  7. xrandr --output DVI-I-1 --mode 1680x1050 --pos 0x30 --rotate normal --output DVI-D-1 --mode 1920x1080 --pos 1680x0 --rotate normal
  8. # Set the default window manager
  9. DEFAULT=ck-launch-session dbus-launch dwm-startup
  10.  
  11. # Start `Openbox`/`dwm`
  12. case $1 in
  13.   openbox-session)
  14.     exec openbox-session
  15.   ;;
  16.   dwm)
  17.     exec ck-launch-session dbus-launch dwm-startup
  18.   ;;
  19.   *)
  20.     exec $DEFAULT
  21.   ;;
  22. esac
  23.  
  24. #This is in my /usr/bin folder called dwm-startup
  25.  
  26. #!/usr/bin/env bash
  27.  
  28. #setting permissions
  29. /usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1 &
  30.  
  31. # Set `feh` to change the wallpaper
  32. source $HOME/.fehbg
  33.  
  34. # Set `unclutter` to hide the cursor after a second of inactivity
  35. unclutter -root -idle 1 &
  36.  
  37. # Start `dwm` with a modified status bar
  38. while true; do
  39.   xsetroot -name "| $(date '+%d %b %Y') | $(date '+%H:%M') |"
  40.   sleep 10s
  41.  
  42. done & exec dwm
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement