View previous topic :: View next topic |
Author |
Message |
FRiO n00b
Joined: 30 Jun 2003 Posts: 45
|
Posted: Sun Oct 26, 2003 9:11 am Post subject: XFce4: Making apps default to a certain workspace |
|
|
Right,
I'll start off with the usual asskissing. In this case, however, it's not just flattery - Xfce4 is a very, very nice environment. I've moved to it from fluxbox... at least, until Fluxbox 1.0 is released.
Anyway, I've made my Desktop/Autostart folder, and have shoved a few bash scripts in there, and all is well. Apart from one thing. You see, I'm spawning around 6 different apps on startup, and if I started them manually, I'd shove them across various workspaces. As it is, I'm rightclicking each and sending it to it's workspace, however, I'd like to know if there's an automated way of doing this, similar to in Flux 0.9.6 (the feature has been there since 0.9.4). I thought it might be something I could set in .Xdefaults, however I'm not sure.
Any help on this'd be much appreciated, and I've created an identical thread at the XFce4 forums .
Cheers,
FRiO |
|
Back to top |
|
|
andersbk n00b
Joined: 16 Aug 2003 Posts: 35
|
Posted: Fri Nov 21, 2003 9:15 pm Post subject: |
|
|
I'm replying here (and not the xfce4 forums, as I don't have the will to create an account over there...yet.)
Anyway, I too was wondering why .Xdefaults did nothing in xfce4.
The answer is:
Look at /usr/bin/startxfce4
The script calls /etc/xfce4/xinitrc
Looking at this xinitrc and comparing it to the generic XFree version, you quickly notice that they don't "xrdb" the .Xdefaults file! Why? I don't know. Perhaps an xfce4 developer can answer.
Anyway following is the head of my "edited" /etc/xfce4/xinitrc file to make .Xdefaults work:
Code: |
#!/bin/sh
userresources=$HOME/.Xresources
userdefaults=$HOME/.Xdefaults
xsetroot -solid black -cursor_name watch
# fix broken $UID on some system...
if test "x$UID" = "x"; then
UID=`id -u`
fi
# Those are my settings, change them as appropriate...
# Xft DPI: 96
# Xft.hintstyle: hintnone/hintslight/hintmedium/hintfull
# Xft hinting: 1/0
xrdb -merge - << EOF
Xft.dpi: 96
Xft.hinting: 1
Xft.hintstyle: hintmedium
EOF
if [ -f $userresources ]; then
xrdb -merge $userresources
fi
if [ -f $userdefaults ]; then
xrdb -merge $userdefaults
fi
|
Now, I need to understand why it does not set PS1 from the PROMPT_COMMAND.
-anders. |
|
Back to top |
|
|
tsuru Tux's lil' helper
Joined: 19 Apr 2002 Posts: 99 Location: Nashville, Tennessee, USA
|
Posted: Sat Nov 22, 2003 2:10 am Post subject: a possible easier .Xdefaults + XFCE4 solution... |
|
|
I had this problem too... it's been a while but I think I found the answer in the man page somewhere. Anyhow the only thing I had to do was to name .Xdefaults as such:
Code: | .Xdefaults-hostname.domainname |
so as an example my file was
Code: | .Xdefaults-monolith.myisp.com |
That seemed to fix it all right up.
Hope that helps |
|
Back to top |
|
|
Jimboberella Guru
Joined: 19 Jun 2002 Posts: 358 Location: Brisbane/Australia
|
Posted: Sat Nov 22, 2003 2:35 am Post subject: |
|
|
xfce4-session seems to remember workspaces for session aware apps.
It's maksed in portage, as its alpha code nut it works quite well here. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|