How to configure apps to autostart in a minimal WM?

Everything about X, Gnome, KDE, ... and everything running on it

Re: How to configure apps to autostart in a minimal WM?

Postby None1975 » 2018-01-29 15:50

Here mine .xsessionrc
Code: Select all

# Load resources

xrdb -merge .Xresources

# Fire up apps
xautolock -time 10 -locker 'slock' &
setxkbmap -layout "us,lt,ru" -option "grp:alt_shift_toggle" &
nitrogen --restore &
compton -b &

if [ -x /usr/bin/nm-applet ] ; then
   nm-applet --sm-disable &

exec herbstluftwm --locked
OS: Debian Stretch / WM: FVWM
Debian Wiki | DontBreakDebian, My config files in github
User avatar
Posts: 746
Joined: 2015-11-29 18:23
Location: Lithuania, Vilnius

Re: How to configure apps to autostart in a minimal WM?

Postby bedtime » 2018-01-29 17:40

For the curious :)

I can't attest to understanding all of what this article said, but what I did understand, was useful.

Thank you guys for posting your configs. :)

* EDIT *

Might as well post mine since I finally got it working:

Code: Select all
# Statusbar loop
while true; do
xsetroot -name \
"$(date +"%a, %b %d, %H.%M.%S") \
Vol: $(amixer get Master | awk '$0~/%/{print $4}' | tr -d '[]') \
Mem: $(free -m | grep Mem | awk '{print $3"mb"}') \
CPU: $[100 - $(vmstat 1 2 | tail -1 | awk '{print $15}')]%"

#vmstat is set to wait 1 second to take its cpu reading
done &

#Rearrange moniters so they make sense
xrandr --output LVDS-1 --auto --output VGA-1 --auto --left-of LVDS-1

#Allow to copy in st term
xclip -in &

#Check email
st -g 54x10 -e ./ &

#A script to start dwm (can be seen below)
exec startdwm

Status bar will look something like:

Wed, Jan 31, 12.48.11 Vol: 70% Mem: 100mb CPU: 0%

Code: Select all
# dwm can now be restarted without destroying other X windows by pressing the usual Mod-Shift-Q com$
# It is a good idea to place the above startup script into a separate file, ~/bin/startdwm for inst$

while true;
    # Log stderror to a file
    #dwm 2> ~/.dwm.log

    # No error logging
    dwm >/dev/null 2>&1
OS: Debian GNU/Linux (Buster—testing); Kernel: 4.16.0-2-amd64; Shell: sh; WM: i3
Machine: HP ProDesk 600 G3—i7-7700, 8GB RAM, 256 SSD, Intel HD Graphics 630

Posts: 93
Joined: 2012-12-16 19:34


Return to Desktop & Multimedia

Who is online

Users browsing this forum: No registered users and 2 guests