HOWTO: JWM Basic Configuration

Configuring and tweaking your GhostBSD System.

HOWTO: JWM Basic Configuration

Postby macondo » Sat Jan 07, 2017 11:07 pm

HOWTO: JWM Basic Configuration

This is a very light, extremely fast window manager, one of my
favorites. Uses 3 mb ram.

First thing I do is copy the global config file
/usr/local/etc/system.jwmrc to my /home. You are NOT allowed to edit
the global file.

Code: Select all
$ cp /usr/local/etc/system.jwmrc .jwmrc


So, from now on I can access this file as USER.

Code: Select all
$ nano .jwmrc


We're faced with a long config file but the good news is that there is
only one file :)

Note that the window manager is very configurable and this is a
subjective matter, what is good for me, is not necessariy good for you;
there is a choice and it's all up to you.


In the first part I configure my apps to be launched full-sized,
maximized, I like it that way, easy for me to work. No dragging, no
resizing, just alt-tab to move from one to the other.

APPS OPTIONS
Code: Select all

 <Group>
   <Name>roxterm</Name>
   <Option>maximized</Option>
 </Group>
 
 <Group>
   <Name>firefox</Name>
   <Option>maximized</Option>
   <Option>notitle</Option>
 </Group>



And so on, I do the same for xfe, firefox, sylpheed, xchat, etc. Make
sure lines are aligned correctly IF you want your apps
maximized. If you want no titlebar add 'notitle'.

Otherwise, if you like your apps floating, ignore this section.

TASKBAR
For the regular look (taskbar at the bottom):

Code: Select all
<Tray x="0" y="-1"  autohide="off">
 


FOR THE TASKBAR ON TOP

Code: Select all
  <Tray x="0" y="+1"  autohide="off">
 


WITHOUT TITLEBAR

Code: Select all
    <!-- Visual Styles -->
   <WindowStyle>

      <Font>-*-fixed-*-r-*-*-10-*-*-*-*-*-*-*</Font>
      <Width>1</Width>
      <Height>2</Height>


Or add 'notitle' in the Options at the beginning of the file to your
apps.



TASKBAR IN AUTOHIDE (à la ratpoison)

Code: Select all
  <Tray x="0" y="+1"  autohide="top">


Depending wherever you have your taskbar. Put top or bottom.

WORKSPACES
By default it comes with several workspaces, one on top of each other,
I only use 2, one next to the other:

Code: Select all
     <!-- Virtual Desktops -->
   <!-- Desktop tags can be contained within Desktops for desktop names.
-->
   <Desktops width="2" height="1">


Needless to say, if you want more workspaces, change the number of
desktops in "width".

KEYBINDINGS

A = Alt
C = Control
4 = Windows key


Code: Select all
   <!-- Key bindings -->
   <Key key="Up">up</Key>
   <Key key="Down">down</Key>
   <Key key="Right">right</Key>
   <Key key="Left">left</Key>
   <Key key="h">left</Key>
   <Key key="j">down</Key>
   <Key key="k">up</Key>
   <Key key="l">right</Key>
   <Key key="Return">select</Key>
   <Key key="Escape">escape</Key>

   <Key mask="A" key="Tab">next</Key>
   <Key mask="" key="F4">close</Key>
   <Key mask="" key="F12">maximize</Key>
   <Key mask="C" key="Right">rdesktop</Key>
   <Key mask="C" key="Left">ldesktop</Key>

   <Key mask="" key="F1">exec:roxterm</Key>
   <Key mask="" key="F2">exec:xfe</Key>
   <Key mask="" key="F3">exec:firefox</Key>
   <Key mask="" key="F7">exec:mirage</Key>
   <Key mask="" key="F8">exec:hexchat</Key>
   <Key mask="" key="F9">exec:libreoffice</Key>
   <Key mask="" key="F10">exec:jwm -restart</Key>
   <Key mask="" key="Print">exec:roxterm -e scrot -cd 10</Key>
   <Key mask="" key="Super_L">root:1</Key>
   <Key mask="C" key="space">exec:gmrun</Key>

#Volume
   <Key mask="C" key="Down">>exec:amixer set Master 6%- </Key>
   <Key mask="C" key="Up">exec:amixer set Master 6%+ </Key>
   <Key mask="C" key="0">exec:amixer sset Master,0 toggle </Key>

</JWM>



HOW DOES IT WORK

Alt-tab for moving btwn screens
Ctrl+ arrow right/left for changing workspaces
F4 closes apps
F12 maximizes screen
F3 launches browser
Print key takes a picture with scrot
F1 launches terminal
F2 launches file manager
F4 closes app
F8 launches xchat
F10 restarts jwm
Windows key gives you the main menu
Ctrl + spacebar gives you gmrun
Ctrl + Up/Down arrow to increase/decrease volume
And so forth...

SUDO
As ROOT, edit /user/local/etc/sudoers and put this at the bottom:

Code: Select all
 your_user_name    ALL=NOPASSWD:ALL


I have no use for the Fn keys, but if you do, you can add Alt, Ctrl
or the Windows key to the Fn keys or any letter you feel confortable
with. A+Fn key or C+Fn key or 4+Fn key, C-f for firefox, C-m for
mirage, you get the idea.

The thing is to increase your speed, by the time you point and
click with the mouse, you could be already working, with your keybinds.

To start jwm automatically as you enter X, edit the file .xinitrc as
user:

Code: Select all
# nano /home/user_name/.xinitrc


Here's mine:

Code: Select all
 
#!/bin/sh

firefox &
setxkbmap -option terminate:ctrl_alt_bksp
xsetroot -solid black
unclutter -idle 2 &
numlockx &

exec jwm


Or just put 'exec jwm'


save/exit from the editor,RESTART from the menu,
next time you can restart with F10.

Code: Select all
$ jwm -p (to see if there any parsing errors)


#reboot

When you come back, you'll be at the console:
login: (username)
passwd: (userpassword) Enter
$ startx

OR
If this is too much of a PITA, use gdm and voilà! You're in, like Flynn.

Image Image Image
Image

Taskbar at top/bottom/autohide whatever you like... Sorry, I'm bad with images.

Good luck,
macondo aka Lou, bobo, cerealkiller

Documentation: http://joewing.net/projects/jwm/config.shtml
Last edited by macondo on Thu Jan 12, 2017 12:43 pm, edited 2 times in total.
Desktop Celeron with 4 gigs RAM - icewm/jwm/ratpoison - FreeBSD 11.1/GhostBSD 11.1
KISS - Keep It Simple, Stupid
User avatar
macondo
 
Posts: 47
Joined: Fri Jan 06, 2017 1:04 pm
Location: PANAMA
Has thanked: 5 times
Been thanked: 4 times

HOWTO: JWM Basic Configuration


Re: HOWTO: JWM Basic Configuration

Postby ASX » Sun Jan 08, 2017 3:44 am

Thanks, if one day will will have a minimal/reduced/small ISO, that will be using JWM by default ;)
ASX
Developer
 
Posts: 968
Joined: Wed May 06, 2015 11:46 am
Has thanked: 57 times
Been thanked: 128 times

Re: HOWTO: JWM Basic Configuration

Postby macondo » Sun Jan 08, 2017 10:03 am

ASX wrote:Thanks, if one day will will have a minimal/reduced/small ISO, that will be using JWM by default ;)


My grandaughter has a lappy (Atom/1 gig Ram), I installed ghostbd/JWM on it, and it moves quick. She loves it, she think I'm a genius, of course I don't tell her the truth. Before, she could barely move Windows.
Desktop Celeron with 4 gigs RAM - icewm/jwm/ratpoison - FreeBSD 11.1/GhostBSD 11.1
KISS - Keep It Simple, Stupid
User avatar
macondo
 
Posts: 47
Joined: Fri Jan 06, 2017 1:04 pm
Location: PANAMA
Has thanked: 5 times
Been thanked: 4 times

Re: HOWTO: JWM Basic Configuration

Postby ASX » Sun Jan 08, 2017 10:56 am

In the thread below:
viewtopic.php?f=62&t=66&p=2627&hilit=xdgmenumaker#p2627

you wrote:
xdgmenumaker - includes menus for JWM, menumaker does not

an info which I have found interesting and I think belong to this thread. ;)
ASX
Developer
 
Posts: 968
Joined: Wed May 06, 2015 11:46 am
Has thanked: 57 times
Been thanked: 128 times

Re: HOWTO: JWM Basic Configuration

Postby ASX » Mon Jan 09, 2017 4:55 pm

On a further note, I though xdgmenumaker was available in ports, but it is not.
ASX
Developer
 
Posts: 968
Joined: Wed May 06, 2015 11:46 am
Has thanked: 57 times
Been thanked: 128 times


Return to Tips and Tricks

Who is online

Users browsing this forum: No registered users and 1 guest