WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: [Solved] xsession xorg file queries  (Read 2209 times)

aus9

  • Guest
[Solved] xsession xorg file queries
« on: June 19, 2020, 02:50:50 AM »
Hi

looking at contents of ~/.xsession for an (2d) Xorg setup I see
Quote
/usr/local/bin/Xorg -nolisten tcp &
export XPID=$!
waitforX || ! echo failed in waitforX || exit
"$DESKTOP" 2>/tmp/wm_errors &
export WM_PID=$!
[ -x $HOME/.setbackground ] && $HOME/.setbackground
[ -x $HOME/.mouse_config ] && $HOME/.mouse_config &
[ $(which "$ICONS".sh) ] && ${ICONS}.sh &
[ -d "/usr/local/etc/X.d" ] && find "/usr/local/etc/X.d" -type f -o -type l | while read F; do . "$F"; done
[ -d "$HOME/.X.d" ] && find "$HOME/.X.d" -type f | while read F; do . "$F"; done


questions.
Am I supposed to have /usr/local/etc/X.d or ICONS.sh?

I know I have $HOME/.X.d but do not have $HOME/.mouse_config.
Running mousetool does not appear to create it.

any clues?
« Last Edit: June 19, 2020, 10:37:13 PM by Rich »

Online Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11178
Re: xsession xorg file queries
« Reply #1 on: June 19, 2020, 05:31:01 AM »
Hi aus9
... questions.
Am I supposed to have /usr/local/etc/X.d ...
See this:
http://forum.tinycorelinux.net/index.php/topic,22312.0.html

Quote
... or ICONS.sh? ...
ICONS is an environmental variable:
Code: [Select]
tc@box:~$ env | grep ICONS
ICONS=wbar
tc@box:~$
So in this case,  "$ICONS".sh  becomes  wbar.sh.

Quote
... but do not have $HOME/.mouse_config. ...
MouseTool  should create it if you click the  Apply  button. If you click the  Exit  button, it will exit without creating anything.

aus9

  • Guest
Re: xsession xorg file queries
« Reply #2 on: June 19, 2020, 04:22:03 PM »
@Rich

ahh well I don't have wbar loaded as I run openbox with an uncluttered pane with maxed apps like firefox.

I forgot to mention I have a working mouse but mousetool hangs for me. So I lied in early comments.
It never gets back to prompt as per image

https://imgur.com/KzhMBbn
« Last Edit: June 19, 2020, 04:40:31 PM by aus9 »

Online Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11178
Re: xsession xorg file queries
« Reply #3 on: June 19, 2020, 04:47:44 PM »
Hi aus9
... MouseTool  should create it if you click the  Apply  button. If you click the  Exit  button, it will exit without creating anything.
If you click  Apply  and then  Exit  it should create  .mouse_config  and then return to the prompt.

aus9

  • Guest
Re: xsession xorg file queries
« Reply #4 on: June 19, 2020, 04:58:52 PM »
well blow me down me a feather....my only excuse I just woke up

file exists

Please mark as solved

Code: [Select]
cat .mouse_config
xset m 3/1 0
xmodmap -e 'pointer = 1 2 3 4 5'

Its possible....but I do not remember....my past effort I may have searched for file
and killed the terminal without going thru exit?

Online Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11178
Re: xsession xorg file queries
« Reply #5 on: June 19, 2020, 05:10:28 PM »
Hi aus9
As long as you clicked  Apply  first, it should have been created.

aus9

  • Guest
Re: xsession xorg file queries
« Reply #6 on: June 19, 2020, 10:34:00 PM »
@Rich
all good please mark as solved

Online Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11178
Re: [Solved] xsession xorg file queries
« Reply #7 on: June 19, 2020, 10:37:31 PM »
Hi aus9
Done.