L2 Cache

Behold the power of |!

User Tools

Site Tools


Sidebar

configuration:xmonad

This is an old revision of the document!


XMonad

Introduction

I revided my netbook, needed something minimal and every pixel counts!

Screenshot

Packages

My netbook runs on Arch Linux, I will list the packages I needed. The names can be different on your system.

  • XMonad
  • XMonad Contrib
  • Trayer
  • dzen2
  • conky

If you run arch like me, you can use the following to install them all: sudo pacman -S xmonad xmonad-contrib trayer dzen2 conky

Configuration files

My setup uses a few configuration files, most are located withing ~/.xmonad

path description
~/.xmonad/xmonad.hs main configuration file
~/.xmonad/apps apps to launch on xmonad start
~/.xmonad/.conky_dzen conky configuration for use with dzen
~/.xmonad/dzen2/* pixmap images used in my status bar
/usr/local/bin/xmonad-cdm-wrapper wrapper for xmobad for use with cdm, tigervnc,…

~/.xmonad/.conky_dzen

background yes
out_to_console yes
out_to_x no
# Update interval in seconds
update_interval 3

TEXT
${if_empty ${exec ifconfig wlan0 | grep 'inet '}}^i(/home/sjorge/.xmonad/dzen2/net-wired.xbm)${else}^i(/home/sjorge/.xmonad/dzen2/wifi_01.xbm) ${exec iwconfig wlan0 | grep 'Signal level' | cut -d= -f3 | awk '{print 100+$1 "%"}'} ${exec iwgetid | cut -d\" -f2 | awk '{print  $1}'}${endif} ${if_match ${exec cat /sys/class/power_supply/ADP1/online} == 1}^i(/home/sjorge/.xmonad/dzen2/ac_01.xbm)${else}^i(/home/sjorge/.xmonad/dzen2/bat_full_01.xbm)${endif} ${battery_percent BAT1}% | ^fg(\#B9EE85)${time %a %H:%M}

note: use sed or simular to replace my username sed 's/sjorge/YOURUSER/gi' < .conky_dzen

/usr/local/bin/xmonad-cdm-wrapper

#!/bin/sh
## apps
[ -e ~/.xmonad/apps ] && ~/.xmonad/apps &

## xmonad
exec ck-launch-session dbus-launch xmonad

~/.xmonad/dzen2/

dzen2.tar

USER
yami ~# mkdir -p ~/.xmonad yami ~# tar xvf dzen2.tar -C ~/.xmonad

configuration/xmonad.1346602594.txt.gz · Last modified: 2014/10/09 22:02 (external edit)