LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 11-05-2012, 10:46 AM   #16
michijo
Member
 
Registered: Apr 2011
Posts: 162

Original Poster
Rep: Reputation: 0

Quote:
Originally Posted by sycamorex View Post
That was just an example. i3 is just a window manager, similar to xmonad. Can you post your .xinitrc?
This is the code I now. I just added the new rules for i3 but changed it to xmonad. Previously it said

"exec /usr/bin/xmonad"

and that was enough. I havent tried the this new xinitrc yet.

Code:
#!/bin/sh

xrandr -s 0

setxkbmap -option compose:menu
# Load resources
xrdb -merge .Xresources
xsetroot -solid black   
xsetroot -cursor_name left_ptr 
setxkbmap dvorak &

if [ -f $HOME/.Xdefaults ]; then
  xrdb -merge $HOME/.Xdefaults
fi

# xset fp rehash
xset b 100 0 0
xset r rate 140 40

PATH=/home/michijo/bin:$PATH

# exec 

# Start the window manager:
if [ -z "$DESKTOP_SESSION" -a -x /usr/bin/ck-launch-session ]; then
  exec ck-launch-session dbus-launch --exit-with-session /usr/bin/xmonad
else
  exec /usr/bin/xmonad
fi
 
Old 11-05-2012, 10:49 AM   #17
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,561
Blog Entries: 1

Rep: Reputation: 1023Reputation: 1023Reputation: 1023Reputation: 1023Reputation: 1023Reputation: 1023Reputation: 1023Reputation: 1023
Quote:
Originally Posted by michijo View Post
This is the code I now. I just added the new rules for i3 but changed it to xmonad. Previously it said

"exec /usr/bin/xmonad"

and that was enough. I havent tried the this new xinitrc yet.

Code:
#!/bin/sh

xrandr -s 0

setxkbmap -option compose:menu
# Load resources
xrdb -merge .Xresources
xsetroot -solid black   
xsetroot -cursor_name left_ptr 
setxkbmap dvorak &

if [ -f $HOME/.Xdefaults ]; then
  xrdb -merge $HOME/.Xdefaults
fi

# xset fp rehash
xset b 100 0 0
xset r rate 140 40

PATH=/home/michijo/bin:$PATH

# exec 

# Start the window manager:
if [ -z "$DESKTOP_SESSION" -a -x /usr/bin/ck-launch-session ]; then
  exec ck-launch-session dbus-launch --exit-with-session /usr/bin/xmonad
else
  exec /usr/bin/xmonad
fi
Yes, that's what I meant. So does it work now?
 
Old 11-05-2012, 10:50 AM   #18
michijo
Member
 
Registered: Apr 2011
Posts: 162

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by sycamorex View Post
Yes, that's what I meant. So does it work now?
I just restarted x and now it works! Thanks for that. Seems strange that one cant just exec xmonad anymore, but whatever.
 
Old 11-05-2012, 10:55 AM   #19
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,561
Blog Entries: 1

Rep: Reputation: 1023Reputation: 1023Reputation: 1023Reputation: 1023Reputation: 1023Reputation: 1023Reputation: 1023Reputation: 1023
Glad it works. Bear in mind that if you just add it to ~/.xinitrc it will get overwritten if you change a window manager with xwmconfig. To avoid it, you also need to update /etc/X11/xinit/xinitrc.xmonad
 
Old 11-05-2012, 11:05 AM   #20
michijo
Member
 
Registered: Apr 2011
Posts: 162

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by sycamorex View Post
Glad it works. Bear in mind that if you just add it to ~/.xinitrc it will get overwritten if you change a window manager with xwmconfig. To avoid it, you also need to update /etc/X11/xinit/xinitrc.xmonad
Thanks, this was a rough upgrade to 14, but everything seems squared away now.
 
Old 11-05-2012, 11:07 AM   #21
michijo
Member
 
Registered: Apr 2011
Posts: 162

Original Poster
Rep: Reputation: 0
Actually, in /etc/X11/xinit/xinitrc.xmonad it is already as it should be. It seems my own created xinitrc file was overriding what was automatically added to /etc/X11/xinit/xinitrc.xmonad.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Slackware 11 + Fluxbox + Thunar?? juboba Linux - Software 5 10-20-2010 07:57 AM
[SOLVED] no icons in thunar when using fluxbox in slackware 12.1 hoodooman Linux - Software 3 09-20-2008 11:53 AM
Thunar slackware 11 millionknives Linux - Software 5 04-04-2007 10:30 PM
Thunar install on Slackware 10.2 kernel 2.6.16.19 brooky9999 Slackware 12 06-06-2006 01:46 AM
Slackware and automounting jfallon Slackware 2 02-09-2004 01:55 PM


All times are GMT -5. The time now is 07:17 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration