You are not logged in.

#1 2016-04-28 18:14:01

CRLin
Member
Registered: 2016-04-20
Posts: 4
Website

Usefull settings (theme, random wallpaper)

Hi! guys. Rotate wallpaper randomly, take me long time to test. Hope these settings helpful to you!
Althoug Geany text editor is best, recommend L3afpad.

$ sudo pacman -S l3afpad
  1. Autologin and NumLock (Autologin boot system quickly)

    sudo l3afpad /etc/lxdm/lxdm.conf

    Find

    autologin=ablive

    substituting the target user instead of ablive.
    Replace

    # numlock=0

    with

    numlock=1

    Reboot.

  2. Change theme

    $ obconf

    and

    $ lxappearance

    More Openbox Themes

  3. Change Wallpaper
    Method 1:

    $ l3afpad ~/.config/openbox/autostart

    Replace

    /usr/share/wallpapers/springbeach.jpg

    with your image file.
    Log Out. Login!

    Method 2:
    Random background image

    $ l3afpad ~/.config/openbox/autostart

    Replace

    (sleep 1s && feh --bg-scale /usr/share/wallpapers/springbeach.jpg) &

    with (Note: Change the ~/.wallpaper directory to fit your setup)

    #(sleep 1s && feh --bg-scale /usr/share/wallpapers/springbeach.jpg) &
    (sleep 1s && feh --randomize --bg-scale ~/.wallpaper) &

    Method 3:
    Rotate the wallpaper randomly

    $ l3afpad ~/.config/openbox/autostart

    Find

    (sleep 1s && feh --bg-scale /usr/share/wallpapers/springbeach.jpg) &

    Comment (add '#') this line.
    Add following script to the bottom. (Note: Change the ~/.wallpaper directory to fit your setup and the 15m delay as you please)

    # Set wallpaper
    while true; do
    	find ~/.wallpaper -type f \( -name '*.jpg' -o -name '*.png' \) -print0 |
    		shuf -n1 -z | xargs -0 feh --bg-scale
    	sleep 15m
    done

FEH features

  1. Slideshow

    feh -rF -D 3 ~/Pictures

    -r: recursive in that you only have to specify the parent directory, it will go through all the sub directories aswell
    -F: fullscreen
    -D 3: show each photo for 3 seconds before moving to the next one.

    Now.......
    right arrow (->) will go to the next image
    left arrow (<-) will go back
    H will pause (if you need a beer)

  2. Thumbnail

    feh -t ~/Pictures

    -t: thumbnails, list files as clickable thumbnails

Last edited by CRLin (2016-05-11 00:05:29)

Offline

#2 2016-04-28 23:01:03

Mr Green
Administrator
Registered: 2010-11-07
Posts: 6,798

Re: Usefull settings (theme, random wallpaper)

Another great guide wink


Comments, suggestions, donations please feel free to contact me mrgreen(at)archbang(dot)org

Offline

Board footer

Powered by FluxBB