You are not logged in.

#1 2010-06-18 09:00:24

mishanya
Member
Registered: 2010-06-18
Posts: 32

2 newb questions (gtk, tint2) [solved]

I've recently installed Arch on my old laptop and spent some time configuring it to suit my concept of a perfect OS. By now I've got three questions that I was not able to figure out yet. Hope that some one would give me a tip or direct me in right direction.

1. I've copied the gtk2 theme from my previous system which was Crunchbang and installed it on my current Arch + Openbox system. However there is a problem: the browser and the file manager tabs as well as all the menus still have that awful default 3d-kinda looking style with shadows and light. I hate it but I do not know how to amend it and ive never dealt with gtk themes before.

2. this one is about tint2. basically it works fine, except for  one thing: when a program is in tray (pidgin for instance) each time I click on the screen area where tint is running the pidgin icon disappears. click once again and it appears again... and so on. both right and left buttons have same effect even the scroller does the trick. may be the problem is that I do not use any special tray program ?

tint config:

#---------------------------------------------
# MOUSE ACTION ON TASK
#---------------------------------------------
mouse_middle = none
mouse_right = none
mouse_scroll_up = toggle
mouse_scroll_down = iconify

Last edited by mishanya (2010-06-18 22:54:24)

Offline

#2 2010-06-18 10:00:01

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,092

Re: 2 newb questions (gtk, tint2) [solved]

1. Sounds like you didn't install whatever theme engine that the theme is based on.

You can find all the most used gtk2 theme engines in the repos.


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#3 2010-06-18 10:40:53

mishanya
Member
Registered: 2010-06-18
Posts: 32

Re: 2 newb questions (gtk, tint2) [solved]

thanks ill take a look at gtkrc for the engine reference as soon as im home

Offline

#4 2010-06-18 11:23:45

thil77
Member
Registered: 2008-08-29
Posts: 52

Re: 2 newb questions (gtk, tint2) [solved]

2. sound like you have 2 version of tint2 running.
run command "killall tint2" and then run tint2 on the command line.
if you can't reproduce the problem, then your problem is in the startup process (autostart.sh or other files).

Offline

#5 2010-06-18 11:37:59

mishanya
Member
Registered: 2010-06-18
Posts: 32

Re: 2 newb questions (gtk, tint2) [solved]

thanks thil77, good idea, ill take a look. i did put tint into autostart.sh file though i had to create it manually maybe there is something in xinit file as well

Offline

#6 2010-06-18 15:24:10

quigybo
Member
Registered: 2009-01-15
Posts: 223

Re: 2 newb questions (gtk, tint2) [solved]

"ps -e | grep tint" will tell you if you have 2 instances of tint running, tracking down why, now thats the fun part...

Offline

#7 2010-06-18 22:40:33

mishanya
Member
Registered: 2010-06-18
Posts: 32

Re: 2 newb questions (gtk, tint2) [solved]

i did in dead have two tint panels running at the same time )) one in .xinit: tint2 & the other in aurostart.sh:
if which tint2 >/dev/null 2>&1; then
  (sleep 2 && xcompmgr) &
  (sleep 2 && tint2) &
fi
sooo which one to remove..? i think ill leave the autostart one, although i do not quite understand what the first line is for, may be somebody could briefly enplane it to me?  anyway thanks for the tip! ill proceed to my gtk theme - engine issue now.

Offline

#8 2010-06-18 22:51:18

anonymous_user
Member
Registered: 2009-08-28
Posts: 3,059

Re: 2 newb questions (gtk, tint2) [solved]

I don't know why the wiki for tint2 suggests that code. I just use "tint2 &" in my autostart.sh. Also I would move xcompmgr into the Openbox autostart.sh as well.

Last edited by anonymous_user (2010-06-18 22:51:52)

Offline

#9 2010-06-18 22:51:30

mishanya
Member
Registered: 2010-06-18
Posts: 32

Re: 2 newb questions (gtk, tint2) [solved]

ive solved the gtk issue too )) turned out my theme uses "murrine" engine.
pacman -S gtk-engine-murrine murrine-themes-collection did the trick for me))

thanks everyone for quick response!

Offline

#10 2010-06-18 22:57:38

mishanya
Member
Registered: 2010-06-18
Posts: 32

Re: 2 newb questions (gtk, tint2) [solved]

as far as i can understand the code tells to wait for 2 second then load xcompmgr, wait 2 more seconds and load tint2,
why use the first line - have no idea

Offline

#11 2010-06-18 23:00:23

mishanya
Member
Registered: 2010-06-18
Posts: 32

Re: 2 newb questions (gtk, tint2) [solved]

ps

now im one step closer to my perfect desktop - a goal one could never achieve...

Offline

#12 2010-06-19 02:15:18

quigybo
Member
Registered: 2009-01-15
Posts: 223

Re: 2 newb questions (gtk, tint2) [solved]

As far as what that code does, it simply checks that tint2 is installed first, and if it is then executes xcompmgr and tint2. The command "which" is useful to see if something is installed, and if it is installed it will tell you where it is located. Try running "which tint2" in a terminal to see what I mean. The rest of that line simply redirects the output of which to /dev/null (nowhere), so that your shell isn't polluted with stuff you don't need to see. Read up on bash redirection here. You can also just use &>/dev/null to redirect both stdout and stderr to /dev/null, I find it a little more succinct.

For completeness I should mention that the 'if' command isn't reacting on the stdout or stderr of 'which', but to its exit code. Read up more on that here.

Since you may want to run xcompmgr even if tint2 isn't installed I would move that line outside the 'if' test.

Offline

#13 2010-06-19 02:38:26

quigybo
Member
Registered: 2009-01-15
Posts: 223

Re: 2 newb questions (gtk, tint2) [solved]

anonymous_user wrote:

I don't know why the wiki for tint2 suggests that code. I just use "tint2 &" in my autostart.sh. Also I would move xcompmgr into the Openbox autostart.sh as well.

As far as I understand using "tint2 &" in autostart.sh is fine, as it is just a script, and background processes are disowned on completion of a script. Your .xinitrc is executed differently though, it does not exit until the end of your X session (when whatever is started on the last line with "exec" exits). Thus all processes that do not exit immeadiately should be run in a different subshell (the "( tint2 )" bit).

Offline

#14 2010-06-19 08:14:20

mishanya
Member
Registered: 2010-06-18
Posts: 32

Re: 2 newb questions (gtk, tint2) [solved]

thanks for the links. ill stick to the xinit file, though all my previous experience with openbox in other distros was connected only with autostart.sh.
interesting topic, however, got to read more about these two!

Offline

#15 2010-06-19 10:40:45

thil77
Member
Registered: 2008-08-29
Posts: 52

Re: 2 newb questions (gtk, tint2) [solved]

it looks like the wiki is misleading...

A better solution could be :

If you want to run tint2 when starting Openbox, you will need to update ~/.config/openbox/autostart.sh by adding the following:

tint2 &

Another solution is to run tint2 when starting X. In this case, simply add this to ~/.xinitrc:

#!/bin/sh
#
# ~/.xinitrc
#
# Executed by startx (run your window manager from here)
tint2 &
exec ck-launch-session openbox-session

Offline

Board footer

Powered by FluxBB