/usr/share/doc/icewm-common/FAQ/IceWM-FAQ-7.html is in icewm-common 1.3.7-5.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<META NAME="GENERATOR" CONTENT="LinuxDoc-Tools 0.9.21">
<TITLE>IceWM FAQ and Howto: Using IceWM With The Keyboard</TITLE>
<LINK HREF="IceWM-FAQ-8.html" REL=next>
<LINK HREF="IceWM-FAQ-6.html" REL=previous>
<LINK HREF="IceWM-FAQ.html#toc7" REL=contents>
</HEAD>
<BODY>
<A HREF="IceWM-FAQ-8.html">Next</A>
<A HREF="IceWM-FAQ-6.html">Previous</A>
<A HREF="IceWM-FAQ.html#toc7">Contents</A>
<HR>
<H2><A NAME="s7">7.</A> <A HREF="IceWM-FAQ.html#toc7">Using IceWM With The Keyboard</A></H2>
<P>It should be possible to control everything by keyboard. Here we show some
of the not so obvious ways to achieve important window managing tasks only
with keystrokes.</P>
<H2><A NAME="ss7.1">7.1</A> <A HREF="IceWM-FAQ.html#toc7.1">Basic predefined keyboard shortcuts</A>
</H2>
<P>
<PRE>
Alt-Tab = Switches between the open windows
Alt-F4 = Closes a window
Alt-F9 = Minimizes a window
Alt-F10 = Maximizes a window
Alt-F12 = Rolls the window up
(leaving only the titlebar visible, press Alt-F12 again and the window rolls back down)
Alt-Shift-F10 = Maximizes the window vertically
Alt-Ctrl-arrow left = Changes workspaces from 1-12
Alt-Ctrl-arrow right = Changes workspaces from 12-1
Alt-Ctrl-Esc = Opens the window list
Ctrl-Esc = Opens the menu
</PRE>
</P>
<H2><A NAME="ss7.2">7.2</A> <A HREF="IceWM-FAQ.html#toc7.2">Switching Desktop using keyboard</A>
</H2>
<P>You are accustomed to a window manager that allows you to switch
between virtual desktops using your keyboard? IceWM allows for this,
too.</P>
<P>Before I describe how to switch between virtual desktops I want to
describe how to control their number. Imagine that your
<CODE>$HOME/.icewm/preferences</CODE> has a row reading</P>
<P>
<BLOCKQUOTE><CODE>
<PRE>
WorkspaceNames="1","2","3","4","5","6","7","8","9","0"
</PRE>
</CODE></BLOCKQUOTE>
</P>
<P>This setting results in ten virtual desktops and ten buttons in your
taskbar looking like this:</P>
<P>
<BLOCKQUOTE><CODE>
<PRE>
+---+---+---+---+---+---+---+---+---+---+
| 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 |
+---+---+---+---+---+---+---+---+---+---+
</PRE>
</CODE></BLOCKQUOTE>
</P>
<P>If you name less desktops you obtain less if you name more you get
more.</P>
<P>For understanding how switching virtual desktops works in IceWM you
should imagine that the buttons represent your virtual desktops and
that these desktops are arranged in one long row.</P>
<P>You can imagine two ways of switching between desktops:</P>
<P>
<UL>
<LI>Switching to desktop number seven</LI>
<LI>Switching to the desktop on the left/right of the present one</LI>
</UL>
</P>
<P>IceWM has both ways:</P>
<P>
<UL>
<LI> To switch to desktop number <EM>n</EM> you simply press
<CODE>"Ctrl-Alt-n"</CODE></LI>
<LI> To switch one desktop to the left you press
<CODE>"Ctrl-Alt-Cursor_Left"</CODE></LI>
<LI> To switch one desktop to the right you press
<CODE>"Ctrl-Alt-Cursor_Right"</CODE></LI>
</UL>
</P>
<P><CODE>"Cursor_Left"</CODE> <CODE>("Cursor_Right")</CODE>
represents the key that moves your cursor one character to the left
(right).</P>
<P>If you are using <CODE>"Ctrl-Alt-Cursor_Right"</CODE> on the
rightmost desktop you switch to the leftmost desktop. From here,
<CODE>"Ctrl-Alt-Cursor_Left"</CODE> brings you back to the
rightmost desktop.</P>
<P><EM>What if you have more than ten virtual desktops?</EM> In this
case <CODE>"Ctrl-Alt-n"</CODE> will only work for the first ten
desktops while switching to the left or right still works for all
desktops.</P>
<P>IceWM has another feature to offer: You may not only use your
keyboard to switch desktops, you can also use it to move windows from
one desktop to another. The next section is on this (you should read
it, too).</P>
<P><B>Note:</B> To switch desktops when moving mouse on desktop edges use preference:
<BLOCKQUOTE><CODE>
<PRE>
EdgeSwitch=1
</PRE>
</CODE></BLOCKQUOTE>
then you can change workspaces automatically by moving your cursor to the left/right edges of your screen.</P>
<H2><A NAME="ss7.3">7.3</A> <A HREF="IceWM-FAQ.html#toc7.3">Moving windows between desktops using keyboard</A>
</H2>
<P>In the previous section I explained how to switch between desktops.
If you didn't already read it you should do it now because moving the
active window to another desktop works almost the same like switching
to a certain desktop. All you have to do is pressing the
<CODE>"Shift"</CODE> while switching to the desktop:</P>
<P>
<UL>
<LI> To move a window to desktop number <EM>n</EM> you simply
press <CODE>"Ctrl-Alt-Shift-n"</CODE></LI>
<LI> To move a window one desktop to the left you press
<CODE>"Ctrl-Alt-Shift-Cursor_Left"</CODE></LI>
<LI> To move a window one desktop to the right you press
<CODE>"Ctrl-Alt-Shift-Cursor_Right"</CODE></LI>
</UL>
</P>
<H2><A NAME="ss7.4">7.4</A> <A HREF="IceWM-FAQ.html#toc7.4">Using the CLI (command line interface)</A>
</H2>
<P>You should run IceWM with <CODE>"TaskBarDoubleHeigth=1"</CODE>
because that will enable the CLI (see <EM>
<A HREF="IceWM-FAQ-9.html#CLI">What is the blank bar in the task bar good for?</A></EM> for some
more information).</P>
<P>The CLI is especially useful if you rather frequently need to access
man pages and don't want to have xman hang around all the time.</P>
<P>If you enter <CODE>man perl</CODE> and press
<CODE>"Ctrl-ENTER"</CODE> an XTerm will pop up displaying the
main Perl man page. If you press <CODE>"q"</CODE> not only the
man page no longer is displayed but the XTerm will terminate, too.</P>
<P>This only is <EM>one</EM> example of how to use the CLI. You can use
it to issue any other command as well. A problem that might occur is
that the XTerm will terminate before you had time to read the output
of a command (it terminates as soon as the command is done).</P>
<P>In most such cases it is sufficient to pipe the output through
<CODE>less</CODE> (this is one of the rare cases you cannot
use <CODE>more</CODE> because it terminates after displaying
the last line). However, there are cases (mainly programs that write
colorful output such as <CODE>ls</CODE>) that may result in
trouble with <CODE>less</CODE>.</P>
<P>Fortunately Linux (any Unix version?) offers a solution to these
cases, too: The <CODE>sleep</CODE> command. It sleeps some
time, then terminates. So you could use</P>
<P>
<BLOCKQUOTE><CODE>
<PRE>
ls $HOME/bin --color ; sleep 1m
</PRE>
</CODE></BLOCKQUOTE>
</P>
<P>to list all programs in your <CODE>$HOME/bin</CODE>
directory. The <CODE>sleep</CODE> command will wait the given
period of time (in this case a minute) before the XTerm automatically
will close (you can use <CODE>"Ctrl-C"</CODE> to abort the
<CODE>sleep</CODE> command before that time went by).</P>
<HR>
<A HREF="IceWM-FAQ-8.html">Next</A>
<A HREF="IceWM-FAQ-6.html">Previous</A>
<A HREF="IceWM-FAQ.html#toc7">Contents</A>
</BODY>
</HTML>
|