Posts: 215
macondo
Joined: 14 Sep 2007
#1
My IceWM Configuration in antiX

Obviously, this is a subjective matter.

IceWM comes by default with alt-tab to switch windows, alt-F10 to maximize,
alt-F9 to minimize the screen, the Windows key will give you the main menu.
In the main menu click on Settings > Focus and choose your favorite, (i like"Sloppy").
Do it again, and click on Themes and choose.

NOTE: winkey (Windows key) + space bar will give a 'run box' at the taskbar by default.
from where you can launch apps, sudo reboot, etc a la fbrun.

If you go to the icewm site icewm.org -> IceWM Manual you get all
the keybinds and mouse commands.
It's a very worthwile read, it will teach you how to lock your screen
(xtrlock), move a window to another workspace, screensavers, and so forth, how to start
an app in a different workspace when you enter the X system, etc.

Congratulations! you're ready for prime time. Just point and click.

But if you want to increase your speed, if you're a geek wannabe, if the Windows-eske way
of working bring tears to your eyes then KEYBINDINGS are for you.

My configuration uses 4 files: preferences, keys, winoptions, and prefoverride.

Preferences deals with the wm behavior.
Keys with keybinds.
Winoptions with options that alter the windows.
Prefoverride changes the default keybinds for the ones you like.

CREATING SOME FILES
$ mkdir -p .icewm
$ touch .icewm/preferences
$ touch .icewm/keys
$ touch .icewm/winoptions
$ touch .icewm/prefoverride

PREFERENCES

The global preference are in /usr/share/icewm/preferences
you CAN NOT edit this file.

Every preference consists of 2 lines, both of which are comented (#),
uncomment (erase the hash mark) on the second line of the preference,
and add 1 or 0 (zero) at the end.

1 = enables the preference
0 = disables it.

save/exit and RESTART icewm - Menu >Logout >Restart icewm for it to take
effect. The usual Ctrl+Alt+Delete +r has a bug, doesn't work.

Clear as mud?

Example:

Code: Select all

# Hide title bar when maximized
# HideTitleBarWhenMaximized=0 # 0/1
After editing it, it should look like this if you wanted enabled:

Code: Select all

# Hide title bar when maximized
HideTitleBarWhenMaximized=1
Restart icewm, restart icewm, restart icewm __{{emoticon}}__

Me? I copied/pasted my personal preferences i stored in my icewm config
folder in my web mail. It takes me 5 minutes to config icewm.

Here's my .icewm/preferences:

Code: Select all


    OpaqueMove=0
    OpaqueResize=0
    SmartPlacement=1
    MenuMouseTracking=1
    ModSuperIsCtrlAlt=1
    UseMouseWheel=1
    QuickSwitch=1
    AutoReloadMenus=1
    ShowProgramsMenu=1
    ShowThemesMenu=1
    ShowHelp=1
    TerminalCommand="lxterminal"
    ShutdownCommand="sudo halt -p"
    RebootCommand="sudo reboot"
    WorkspaceNames=" 1"," 2"

    TaskBarAutoHide=0
    TaskBarShowClock=1
    TaskBarShowAPMStatus=0
    TaskBarAtTop=0
    TaskBarShowAPMStatus=0
    TaskBarShowAPMTime=0
    TaskBarShowMailboxStatus=0
    TaskBarShowWindows=1
    TaskBarShowShowDesktopButton=0
    TaskBarShowTray=1
    TaskBarShowWindowIcons=0
    TaskBarShowCPUStatus=1
    TaskBarShowNetStatus=0
    TaskBarShowCollapseButton=1
    TaskBarWorkspacesLeft=1
    TimeFormat="%R"
    TaskBarShowShowDesktopButton=0
    TaskBarShowWindowListMenu=1
    TaskBarShowMailboxStatus=0
    TaskBarMailboxStatusBeepOnNewMail=0
    NormalTaskBarFontName="-*-sans-medium-r-*-*-*-100-*-*-*-*-*- *"
    NormalTaskBarFontNameXft="sans-serif:size=10"
    ActiveTaskBarFontName="-*-sans-r-*-*-*-100-*-*-*-*-*-*"
    ActiveTaskBarFontNameXft="sans-serif:size=10"
    HideTitleBarWhenMaximized=0

KEYS

Code: Select all

$ nano .icewm/keys
and paste this:

Code: Select all

    key"F1" lxterminal
    key"F2" xfe
    key"F3" iceweasel
    key"F5" chromium
    key"F6" qupzilla
    key"F7" geeqie
    key"F8" xchat
    key"F9" libreoffice
    key"Print" lxterminal -e scrot -cd 10
    key"F10" sh -c 'kill -s HUP $(pgrep -u `whoami` '\''icewm$'\'')' # restarts icewm
    key"Ctrl+u" antixcc.sh

    #Sound volume
    key"Ctrl+Down" amixer -q set PCM 6- unmute # lower volume
    key"Ctrl+Up" amixer -q set PCM 6+ unmute #increase volume
    key"Ctrl+0"  amixer sset Master,0 toggle #mutes sound
Substitute my apps for yours.

NOTE: the first time you need to restart do it from the menu, after that
you can use F10.

I have no use for the Fn keys, but if you do, just add Alt or Ctrl or Super (winkey)
example:

Code: Select all

key"Alt+ l" leafpad
The sound is simple:,

Control + Up arrow increases volume
Control + Down arrow,decreases volume
Control + 0 (zero) mutes the sound, hit the combo again and the sound returns.

If you get no sound go to alsamixer as USER and unmute with M key.

Code: Select all

$ alsamixer
NOTE: If nothing works, do as ROOT:

Code: Select all

# alsactl init
Do the alsamixer config and then:
#alsactl store
# reboot



WINOPTIONS

I'm only interested in maximizing my windows:

Code: Select all


lxterminal.startMaximized: 1
xchat.startMaximized: 1
iceweasel.startMaximized: 1
xfe.startMaximized: 1
chromium.startMaximized: 1
qupzilla.startMaximized: 1

PREFOVERRIDE

I edit .icewm/prefoverride and leave it looking like this:

Code: Select all

KeyWinClose="F4"
KeyWinMaximize="F12"
So now i close apps with F4 (boom! gone)
and maximize the window with one key (F12), instead of the default Alt+F10.


THEMES
I'm not much for themes and eye-candy, my thing is simplicity and speed.


Go to
========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"http://www.box-look.org"
linktext was:"http://www.box-look.org"
====================================
, click on"icewm themes" in the left column,
if you know the name, click on"alphabetical", i find Narciso on page 14,
click on Download.

I launch xfe (my file manager) and as ROOT, i find the theme in
Downloads (home/macondo/Downloads), click on it and choose"Extract to"
in the next screen at the bottom i type the location where to be
extracted, (/usr/share/icewm/themes) press Enter, restart icewm, and
that's it, the new theme appears in Settings> Themes from the main menu.

NOTE: Restart icewm every time you do changes on the wm.

Have fun,
macondo aka bobo, Lou, cerealkiller

Image Image Image

From left to right:
taskbar on top - no titlebar
taskbar on top in Autohide
Regular look
Last edited by macondo on 25 Jan 2016, 18:55, edited 1 time in total.
Posts: 2,238
dolphin_oracle
Joined: 16 Dec 2007
#2
nice write up!
Posts: 215
macondo
Joined: 14 Sep 2007
#3
Thanks, pal
Posts: 215
macondo
Joined: 14 Sep 2007
#4
My original keybinds do not work in antix (Ctrl + up/down arrows __{{emoticon}}__
They work fine in JWM though.

After googling I found this and put it in my .icewm/keys in the sound section:

Code: Select all

#Sound volume
    key"Ctrl+KP_Divide"   amixer set Front 5%-  # lower volume of sound
    key"Ctrl+KP_Multiply" amixer set Front 5%+  # raise volume of sound
    key"Ctrl+0"  amixer sset Master,0 toggle #mutes sound
IOW, Ctrl + * (asterisk sign) increases volume
Ctrl + / (forward slash) decreases volume
(in the numerical pad to your right in the keyboard.)

It works flawlessly __{{emoticon}}__