Skip to content

Instantly share code, notes, and snippets.

# screen config file; ~/.screenrc
# put all our main screen settings like
# term, shell, vbell, hardstatus whatever
#
# then add this:
# sources environment-specific apps
source "$SCREEN_CONF_DIR/$SCREEN_CONF"
# dynamically choose which tabs load in screen
export SCREEN_CONF_DIR="$HOME/.screen/configs"
export SCREEN_CONF="main"
# example: screen -t [name] [command]
screen -t mail mutt
screen -t music ncmpcpp
# example: screen -t [name] [command]
screen -t torrents rtorrent
alias irssi='SCREEN_CONF=irssi screen -S irssi -D -R irssi'
alias rtorrent='SCREEN_CONF=rtorrent screen -S rtorrent -D -R rtorrent'
#!/bin/bash
if [[ $# -lt 2 ]]; then
echo "usage: $0 [number] [some message]"
exit 1
fi
number="$1"; shift
echo "$*" | mail "$number@vtext.com"
<menu id="root-menu" label="Openbox 3">
<menu id="pipe-wifi" label="Wifi" execute="sudo /home/USERNAME/.config/openbox/wifi-pipe INTERFACE" />
<menu id="term-menu"/>
<item label="Run...">
<action name="Execute">
<command>gmrun</command>
<!-- ... -->
-- imports
import Dzen -- my module
import XMonad.Hooks.DynamicLog
import XMonad.UrgencyHook
main = do
d <- spawnDzen myLeftBar
spawn $ "conky -c ~/.dzen_conkyrc | " ++ show myRightBar
--
-- Loghook
--
-- note: some of these colors may differ from what's in the
-- screenshot, it changes daily
--
myLogHook h = dynamicLogWithPP $ defaultPP -- the h here...
-- display current workspace as darkgrey on light grey (opposite of default colors)
{ ppCurrent = dzenColor "#303030" "#909090" . pad
--
-- StatusBars
--
-- See http://pbrisbin.com/xmonad/docs/Dzen.html
--
myLeftBar :: DzenConf
myLeftBar = defaultDzen
-- use the default as a base and override width and
-- colors
{ width = 1000