:: Re: [DNG] Recovering startx
Top Page
Delete this message
Reply to this message
Author: viverna
Date:  
To: dng
Subject: Re: [DNG] Recovering startx
il devuanizzato Joel Roth via Dng <dng@???> il 24-09-24
21:25:09 ha scritto:
>Looks convenient, although from the README one is left
>wondering if ax creating .xinitrc would clobber an existing
>.xinitrc. (Side note, I see I have duplicate setup code
>in .xinitrc and .xsession.)

If ax takes an argument (WM/DE) in the command line, it will search
WM/DE and if it finds the executable will overwrite .xinitrc.

I don't use .xsession.
If you want to run several programmes at start-up, you can insert in:
/usr/local/etc/ax/script.sh (global)
or
$HOME/.ax/script.sh (local)

If the files are present, ax make .xinitrc with a call to one (or both)
files passing a string with the name of a configured WM/DE.

In those files, simply posix shell script, it is possibile applications
can be launched conditionally depending on the WM/DE, for example in my
pc (I use lxde+openbox, only openbox, other WM/DE to experiment):

# taskbar and volume icon for openbox, lxde already has them
if [ "$1" = "openbox" ]; then
    tint2 &
    volumeicon &
fi


# notification-daemon for lxde and openbox
if [ "$1" = "lxde" -o "$1" = "openbox" ]; then
    dunst &
fi


It is convenient when you also have to try out different WM/DE and I
do/did it often in the past.

-- 
  _________
< Viverna >
  ---------
        \                    ^    /^
         \                  / \  // \
          \   |\___/|      /   \//  .\
           \  /0  0  \__  /    //  | \ \           *----*
             /     /  \/_/    //   |  \  \          \   |
             @_^_@`/   \/_   //    |   \   \         \/\ \
             //_^_/     \/_ //     |    \    \         \  \
          ( //) |        \///      |     \     \       |  |
        ( / /)  |         //       |      \     _\     |  /
      ( // /)   |          ; -.    |    _ _\.-~       /   /
    (( / / ))   |        _      *-.|.-~-.           .~    ~
   (( // / ))    \      /                 ~-. _ .-~      /
   (( /// ))      `.   }            {                   /
    (( / ))      .----~-.\        \-`                 .~
                 ///.----..<        \             _ -~
                    ///-._ _ _ _ _ _ _{^ - - - - ~