L2 Cache

Behold the power of |!

User Tools

Site Tools


configuration:xmonad

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
configuration:xmonad [2012/10/31 16:15]
sjorge [~/.xmonad/apps]
configuration:xmonad [2014/10/09 22:02] (current)
Line 26: Line 26:
 | ~/​.xmonad/​.conky_dzen ​            | conky configuration for use with dzen             | | ~/​.xmonad/​.conky_dzen ​            | conky configuration for use with dzen             |
 | ~/​.xmonad/​dzen2/​* ​                | pixmap images used in my status bar               | | ~/​.xmonad/​dzen2/​* ​                | pixmap images used in my status bar               |
 +| ~/​.xmonad/​bin/​* ​                  | helper scripts and binries ​                       |
 | /​usr/​local/​bin/​xmonad-cdm-wrapper | wrapper for xmobad for use with cdm, tigervnc,​... | | /​usr/​local/​bin/​xmonad-cdm-wrapper | wrapper for xmobad for use with cdm, tigervnc,​... |
- 
 ==== ~/​.xmonad/​xmonad.hs ==== ==== ~/​.xmonad/​xmonad.hs ====
 <​code>​ <​code>​
Line 272: Line 272:
  
 TEXT 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}+${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 ​BAT0}% | ^fg(\#​B9EE85)${time %a %H:%M}
 </​code>​ </​code>​
  
Line 281: Line 281:
 ## apps ## apps
 [ -e ~/​.xmonad/​apps ] && ~/​.xmonad/​apps & [ -e ~/​.xmonad/​apps ] && ~/​.xmonad/​apps &
- 
 ## xmonad ## xmonad
 exec ck-launch-session dbus-launch xmonad exec ck-launch-session dbus-launch xmonad
 </​code>​ </​code>​
  
 +==== ~/​.xmonad/​bin/​xmonad-windows-run ==== 
 +<​code>​
 +#!/bin/sh
 +
 +if [ "​$(VBoxManage list runningvms | grep -ci hikari)"​ -lt 1 ]; then
 + exec Xephyr -screen 1366x752 -terminate -title "​VirtualBox - Windows 7" :4 &
 + xdotool search --classname "​Xephyr"​ windowmove 0 16
 + xdotool search --classname "​Xephyr"​ windowsize 1366 752
 + DISPLAY=:4 exec VirtualBox --startvm Hikari &
 +fi
 +</​code>​
 +
 +==== ~/​.xmonad/​bin/​xmonad-xephyr-run ==== 
 +<​code>​
 +#!/bin/sh
 +
 +if [ "$(ps aux | grep Xephyr | grep -v grep | grep -vi virtualbox | wc -l)" -lt 1 ]; then
 + exec Xephyr -screen 1366x752 -terminate -title "​Xmonad Classic"​ :3 &
 + xdotool search --classname "​Xephyr"​ windowmove 0 16
 + xdotool search --classname "​Xephyr"​ windowsize 1366 752
 + sleep 1
 + export DISPLAY=:3
 + exec xfce4-session
 + sleep 1
 + exe=`dmenu_run_xephyr -nb black -sb black -nf "#​555753"​ -sf "#​8AE234"​`
 + eval "exec $exe"
 +else
 + export DISPLAY=:3
 + exe=`dmenu_run_xephyr -nb black -sb black -nf "#​555753"​ -sf "#​8AE234"​`
 + eval "exec $exe"
 +
 +fi
 +</​code>​
 +
 +==== ~/​.xmonad/​bin/​xmonad-xephyr-kill ==== 
 +<​code>​
 +#!/bin/sh
 +
 +PID=$(ps aux | grep Xephyr | grep :3 | grep -v grep | awk '{ print $2 }')
 +
 +if [ ! -z $PID ]; then
 + kill $PID
 +fi
 +</​code>​
 ==== ~/​.xmonad/​dzen2/​ ====  ==== ~/​.xmonad/​dzen2/​ ==== 
 {{:​configuration:​dzen2.tar|}} {{:​configuration:​dzen2.tar|}}
configuration/xmonad.1351696537.txt.gz · Last modified: 2014/10/09 22:02 (external edit)