You are not logged in.

#1 2015-02-02 16:30:46

Dun
Member
Registered: 2014-12-28
Posts: 98

[SOLVED].xinitrc - some entries doesn't work

Hey. There are problems with my .xinitrc. I tried to turn off the DPMS with it (configuring xorg.conf never changed the behaviour of dpms) by inserting the line "xset s off && xset -dpms". But it just doesn't do what I expecting from it, DPMS is still active and I don't know how to use the line without the terminal. I also tried to use "killall xfce4-panel" in the .xinitrc but it just doesn't execute it.
So how do I execute those commands when I'm starting Xorg?

Here's my .xinitrc.

#!/bin/sh
#
# ~/.xinitrc
#
# Executed by startx (run your window manager from here)

if [ -d /etc/X11/xinit/xinitrc.d ]; then
  for f in /etc/X11/xinit/xinitrc.d/*; do
    [ -x "$f" ] && . "$f"
  done
  unset f
fi

xset s off
xset -dpms
xsetroot -cursor_name left_ptr
#setxkbmap -layout de
xbindkeys
numlockx &
exec startxfce4
killall xfce4-panel
#exec xfwm4 xfdesktop xfce4-session
exec xmonad

Xorg is started by .bash_profile after login:

# ~/.bash_profile
#
[[ -z $DISPLAY && $XDG_VTNR -eq 1 ]] && exec startx

[[ -f ~/.bashrc ]] && . ~/.bashrc

Last edited by Dun (2015-02-02 22:10:22)

Offline

#2 2015-02-02 16:37:14

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

Re: [SOLVED].xinitrc - some entries doesn't work

Nothing will ever execute after an "exec" command.  See `man exec`, that command replaces the current process with the specified one, so parsing of the file stops right there.

Why are you even trying to kill xfce4-panel?  Just configure xfce the way you want in the first place and it will never start the panel.


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

Offline

#3 2015-02-02 17:10:37

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 7,732
Website

Re: [SOLVED].xinitrc - some entries doesn't work

I'm pretty sure XFCE over-rides any configuration made using the `xset` command in favour of xfce4-power-manager's options.

As Trilby says, just remove the panel from within XFCE and it will not re-appear.

EDIT: Actually, try going to Settings → Settings Manager → Power Manager → Display and make sure the "Handle display power management" box is un-checked -- your `xset` command may work then.

Last edited by Head_on_a_Stick (2015-02-02 17:16:06)

Offline

#4 2015-02-02 22:09:42

Dun
Member
Registered: 2014-12-28
Posts: 98

Re: [SOLVED].xinitrc - some entries doesn't work

Thank you very much guys, I cleaned the messed up .xinitrc and deactivated DPMS and the panel over xfce4-settings which I didn't checked at all. Feeling a little bit dumb now :>

#!/bin/sh
#
# ~/.xinitrc
#
# Executed by startx (run your window manager from here)

if [ -d /etc/X11/xinit/xinitrc.d ]; then
  for f in /etc/X11/xinit/xinitrc.d/*; do
    [ -x "$f" ] && . "$f"
  done
  unset f
fi
#sudo ntpdate -u 0.de.pool.ntp.org

xsetroot -cursor_name left_ptr
xbindkeys
numlockx &
exec startxfce4

Offline

Board footer

Powered by FluxBB