Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #This is in my /home/username folder (.xinitrc)
- #!/usr/bin/env bash
- # Load .Xresources
- xrdb -merge $HOME/.Xresources
- xrandr --output DVI-I-1 --mode 1680x1050 --pos 0x30 --rotate normal --output DVI-D-1 --mode 1920x1080 --pos 1680x0 --rotate normal
- # Set the default window manager
- DEFAULT=ck-launch-session dbus-launch dwm-startup
- # Start `Openbox`/`dwm`
- case $1 in
- openbox-session)
- exec openbox-session
- ;;
- dwm)
- exec ck-launch-session dbus-launch dwm-startup
- ;;
- *)
- exec $DEFAULT
- ;;
- esac
- #This is in my /usr/bin folder called dwm-startup
- #!/usr/bin/env bash
- #setting permissions
- /usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1 &
- # Set `feh` to change the wallpaper
- source $HOME/.fehbg
- # Set `unclutter` to hide the cursor after a second of inactivity
- unclutter -root -idle 1 &
- # Start `dwm` with a modified status bar
- while true; do
- xsetroot -name "| $(date '+%d %b %Y') | $(date '+%H:%M') |"
- sleep 10s
- done & exec dwm
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement