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:16]
sjorge [/usr/local/bin/xmonad-cdm-wrapper]
configuration:xmonad [2012/10/31 16:25]
sjorge [/usr/local/bin/xmonad-cdm-wrapper]
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 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)