Difference between revisions of "Spectrwm"

From ArchWiki
Jump to: navigation, search
(Created page with '{{DISPLAYTITLE:scrotwm}} Category:Desktop environments (English) Category:HOWTOs (English) ==Introduction== [http://scrotwm.org/ scrotwm] is a small dynamic tiling window…')
 
m
Line 1: Line 1:
 
{{DISPLAYTITLE:scrotwm}}
 
{{DISPLAYTITLE:scrotwm}}
 +
{{expansion}}
 
[[Category:Desktop environments (English)]]
 
[[Category:Desktop environments (English)]]
 
[[Category:HOWTOs (English)]]
 
[[Category:HOWTOs (English)]]
==Introduction==
 
[http://scrotwm.org/ scrotwm] is a small dynamic tiling window manager for X11. It tries to stay out of the way so that valuable screen real estate can be used for much more important stuff. It has sane defaults and does not require one to learn a language to do any configuration. It was written by hackers for hackers and it strives to be small, compact and fast.
 
  
It is written in C (as any self-respecting window manager should be) and configured with a text configuration file (ditto). It is not the poster-boy for any minority language, either for programming
+
[http://scrotwm.org/ scrotwm] is a small dynamic tiling window manager for X11. It tries to stay out of the way so that valuable screen real estate can be used for much more important content. It has sane defaults and does not require one to learn a language to do any configuration. It was written by hackers for hackers and it strives to be small, compact and fast.
or configuration.
+
 
 +
It is written in C and configured with a text configuration file. It is not the poster-boy for any minority language, either for programming or configuration.
  
 
==Installation==
 
==Installation==
Line 12: Line 12:
 
It is not yet available in the main repositories.
 
It is not yet available in the main repositories.
  
A PKGBUILD is available in AUR (http://aur.archlinux.org/packages.php?ID=23487).
+
A PKGBUILD is available in AUR (http://aur.archlinux.org/packages.php?ID=23487). This sets the modkey to Mod 4 (usually the Windows key).
This sets the modkey to Mod 4 (usually the Windows key).
+
  
It can make use of the dmenu package, so install that too
+
It can make use of the dmenu package, so install that too:
  pacman -S dmenu
+
  # pacman -S dmenu
  
 
==Configuration==
 
==Configuration==
  
scrotwm first tries to open the user specific file, ~/.scrotwm.conf.  If that file is unavailable, it then tries to open the global configuration file /etc/scrotwm.conf.
+
scrotwm first tries to open the user specific file, {{Filename|~/.scrotwm.conf}}.  If that file is unavailable, it tries to open the global configuration file, {{Filename|/etc/scrotwm.conf}}. The initial configuration provides a good set of defaults.
The initial configuration provides a good set of defaults.
+
  
Optionally scrotwm can call baraction.sh (in the user's path), which should output
+
Optionally, scrotwm can call {{Filename|baraction.sh}} (in the user's path), which should output a text status message to stdout for the status bar at the top of the screen.
a text status message to stdout for the status bar at the top of the screen.
+
  
 
==Starting scrotwm==
 
==Starting scrotwm==
To start scrotwm via <tt>startx</tt> or the [[SLIM]] login manager, simply append the following to ~/.xinitrc:  
+
 
 +
To start scrotwm via <tt>startx</tt> or the [[SLIM]] login manager, simply append the following to {{Filename|~/.xinitrc}}:
 
  exec scrotwm
 
  exec scrotwm
  
 
===Starting scrotwm with KDM===
 
===Starting scrotwm with KDM===
For [[KDM]], place a file scrotwm.desktop in /usr/share/apps/kdm/sessions
+
 
 +
For [[KDM]], place a file scrotwm.desktop in {{Filename|/usr/share/apps/kdm/sessions}}:
  
 
  [Desktop Entry]
 
  [Desktop Entry]
Line 40: Line 39:
 
  Comment=The scrotwm window manager
 
  Comment=The scrotwm window manager
  
And then in /home/user/.xsession_scrotwm
+
And then in {{Filename|/home/user/.xsession_scrotwm}}:
  
 
  logger "Starting scrotwm from ~/.xsession_scrotwm."
 
  logger "Starting scrotwm from ~/.xsession_scrotwm."
Line 50: Line 49:
 
==Statusbar configuration==
 
==Statusbar configuration==
  
Here is an example baraction.sh
+
Here is an example baraction.sh:
  
 
<pre>
 
<pre>
 
 
#!/bin/bash
 
#!/bin/bash
 
# baraction.sh script for scrotwm status bar
 
# baraction.sh script for scrotwm status bar
Line 83: Line 81:
  
  
== Tips & Tricks ==
+
==Tips & Tricks==
 +
 
 +
<small>To do...</small>
  
 
==More Resources==
 
==More Resources==
* [http://www.scrotwm.org scrotwm] -- the official website of scrotwm
+
 
* [[dmenu]] -- a simple application launcher from the developers of dwm
+
* [http://www.scrotwm.org scrotwm]
 +
:scrotwm's official website
 +
 
 +
* [[dmenu]]
 +
:Simple application launcher from the developers of [[dwm]]

Revision as of 00:38, 28 October 2009

Tango-view-fullscreen.pngThis article or section needs expansion.Tango-view-fullscreen.png

Reason: please use the first argument of the template to provide a brief explanation. (Discuss in Talk:Spectrwm#)

scrotwm is a small dynamic tiling window manager for X11. It tries to stay out of the way so that valuable screen real estate can be used for much more important content. It has sane defaults and does not require one to learn a language to do any configuration. It was written by hackers for hackers and it strives to be small, compact and fast.

It is written in C and configured with a text configuration file. It is not the poster-boy for any minority language, either for programming or configuration.

Installation

It is not yet available in the main repositories.

A PKGBUILD is available in AUR (http://aur.archlinux.org/packages.php?ID=23487). This sets the modkey to Mod 4 (usually the Windows key).

It can make use of the dmenu package, so install that too:

# pacman -S dmenu

Configuration

scrotwm first tries to open the user specific file, Template:Filename. If that file is unavailable, it tries to open the global configuration file, Template:Filename. The initial configuration provides a good set of defaults.

Optionally, scrotwm can call Template:Filename (in the user's path), which should output a text status message to stdout for the status bar at the top of the screen.

Starting scrotwm

To start scrotwm via startx or the SLIM login manager, simply append the following to Template:Filename:

exec scrotwm

Starting scrotwm with KDM

For KDM, place a file scrotwm.desktop in Template:Filename:

[Desktop Entry]
Type=XSession
Exec=/home/user/.xsession_scrotwm
TryExec=/home/user/.xsession_scrotwm
Name=Scrotwm
Comment=The scrotwm window manager

And then in Template:Filename:

logger "Starting scrotwm from ~/.xsession_scrotwm."
xrandr --dpi 96
xscreensaver -no-splash &
# and start the window manager
exec scrotwm

Statusbar configuration

Here is an example baraction.sh:

#!/bin/bash
# baraction.sh script for scrotwm status bar
# This shows CPU temps, fan speed and wifi signal

SLEEP_SEC=5  # set bar_delay = 5 in /etc/scrotwm.conf
#loops forever outputting a line every SLEEP_SEC secs
while :; do

        #note: scrotwm bar_print can't handle UTF-8 characters, such as the degree symbol
        #Core 0:      +67.0°C  (crit = +100.0°C)
        CORE0TEMP=`sensors 2>/dev/null | grep "Core 0" | sed s/[°+]//g | awk {'print $3'}`
        CORE1TEMP=`sensors 2>/dev/null | grep "Core 1" | sed s/[°+]//g | awk {'print $3'}`
           FANSPD=`sensors 2>/dev/null | grep "fan1"                   | awk {'print $2'}`
        TEMP_STR="Tcpu=$CORE0TEMP,$CORE1TEMP F=$FANSPD"

        WLAN_QULTY=`cat /proc/net/wireless| grep "wlan0"| awk {'print $3'}|sed s/[.]//g`
        BCSCRIPT="scale=0;a=100*$WLAN_QULTY/70;print a"
        WLAN_QPCT=`echo $BCSCRIPT | bc -l`
        WLAN_SIGNL=`cat /proc/net/wireless| grep "wlan0"| awk {'print $4'}|sed s/[.]//g`
        WLAN_NOISE=`cat /proc/net/wireless| grep "wlan0"| awk {'print $5'}|sed s/[.]//g`
        WLAN_POWER=`iwconfig 2>/dev/null| grep "Tx-Power"| awk {'print $4'}|sed s/Tx-Power=//`
        WLAN_STR="wlan0: Q=$WLAN_QPCT% S/N="$WLAN_SIGNL"/"$WLAN_NOISE"dBm T="$WLAN_POWER"dBm"

        echo -e "         $TEMP_STR        $WLAN_STR"
        sleep $SLEEP_SEC
done


Tips & Tricks

To do...

More Resources

scrotwm's official website
Simple application launcher from the developers of dwm