You are not logged in.

#1 2015-03-09 18:08:06

ralph_13
Member
Registered: 2015-02-06
Posts: 73

Autostarting tint2 in openbox [SOLVED]

Hey there, I use two tint2 panels, each with a different config file. The first one with the regular "~/.config/tint2/tint2rc" runs fine with openbox's autostart, but the -c option only seems to work when I run it in a terminal with "tint2 -c ~/.config/tint2/tint2rc2".

If I try running it from gmrun or from openbox's autostart.sh, nothing happens. How can I get tint2 to autostart using the specified config file?

Last edited by ralph_13 (2015-03-10 22:24:09)

Offline

#2 2015-03-09 19:18:44

Fixxer
Member
From: Poland
Registered: 2011-08-29
Posts: 217

Re: Autostarting tint2 in openbox [SOLVED]

Did you try?

.xinitrc

OR

.xprofile

Offline

#3 2015-03-09 20:03:21

thiagowfx
Member
Registered: 2013-07-09
Posts: 586

Re: Autostarting tint2 in openbox [SOLVED]

Post your $HOME/.config/openbox/autostart.

It should be a simple matter of adding a line such as

tint2 -c ~/.config/tint2/tint2rc2 &

to it.

@OP wrote:

If I try running it from gmrun or from openbox's autostart.sh, nothing happens.

What if you run another program? Say, a file manager or a web browser. Does it autostart if you put it in the autostart file?

Offline

#4 2015-03-10 00:38:07

ralph_13
Member
Registered: 2015-02-06
Posts: 73

Re: Autostarting tint2 in openbox [SOLVED]

Everything on autostart and gmrun works besides tint2 with the -c option. Here's my autostart.sh file:

## GNOME PolicyKit and Keyring
#eval $(gnome-keyring-daemon -s --components=pkcs11,secrets,ssh,gpg) &

## Set root window colour
#hsetroot -solid "#2E3436" &

## Group start:
## 1. nitrogen - restores wallpaper
## 2. compositor - start
## 3. sleep - give compositor time to start
## 4/5. tint2 panel
## 6. Automount usb drives

nitrogen --restore &
compton -cCfb -D 5 &
sleep 2s &
tint2 &
tint2 -c /home/ralph/.config/tint2/tint2rc2 &
udiskie &

## Volume control for systray
(sleep 2s && pnmixer) &

## Volume keys daemon
xfce4-volumed &

## Enable power management
xfce4-power-manager &

## Start Thunar Daemon
thunar --daemon &

## Detect and configure touchpad. See 'man synclient' for more info.
#if egrep -iq 'touchpad' /proc/bus/input/devices; then
#    synclient VertEdgeScroll=1 &
#    synclient TapButton1=1 &
#    synclient ClickPad=1
#    synclient RightButtonAreaLeft=1610
#    synclient RightButtonAreaRight=3140
#    synclient RightButtonAreaTop=1880
#    synclient RightButtonAreaBotton=2200
#    synclient HorizTwoFingerScroll=1
#fi

## Start xscreensaver
xscreensaver -no-splash &

## Start Clipboard manager
(sleep 3s && clipit) &

## Set keyboard settings - 250 ms delay and 25 cps (characters per second) repeat rate.
## Adjust the values according to your preferances.
xset r rate 250 25 &

## Turn on/off system beep
xset b off &

## Run the conky
#conky -q & 

Also, fixxer, I'm trying to keep everything on autostart.sh for now, but if there's no other way I'll try that, thanks.

Last edited by ralph_13 (2015-03-10 00:38:48)

Offline

#5 2015-03-10 00:56:12

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,565
Website

Re: Autostarting tint2 in openbox [SOLVED]

As is, that sleep command does absolutely nothing other than spawn a useless process.  I don't use openbox's autostart file and just use xinitrc because the autostart allegedly requires sleep before most of the commands.  You could try adding a sleep before each of the tint2 commands:

( sleep 2; tint2 ) &
( sleep 3; tint2 -c /path/to/whatever ) &

Or better yet, just set these up in xinitrc.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#6 2015-03-10 22:23:46

ralph_13
Member
Registered: 2015-02-06
Posts: 73

Re: Autostarting tint2 in openbox [SOLVED]

As commented out, the sleep process is there so tint2 starts after compton. Anyway, it started working after a system update, marking as solved.

Offline

#7 2015-03-10 22:29:18

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,903
Website

Re: Autostarting tint2 in openbox [SOLVED]

ralph_13 wrote:

As commented out, the sleep process is there so tint2 starts after compton.

It doesn't work like that though, because you background the sleep process with an ampersand. tint2 will start after the sleep process starts, rather than after it ends, which is what you are expecting. Trilby's suggestion is the best way of doing what you want to do.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

Board footer

Powered by FluxBB