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
configuration:xmonad [2012/10/31 16:21]
sjorge [Configuration files]
configuration:xmonad [2012/10/31 16:25]
sjorge [/usr/local/bin/xmonad-cdm-wrapper]
Line 285: Line 285:
 </​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.txt · Last modified: 2014/10/09 22:02 (external edit)