You are not logged in.
Pages: 1
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
Did you try?
.xinitrc
OR
.xprofile
Offline
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.
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
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
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
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
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
Pages: 1