From 5bf095d466ade8695e2b99beb41f99b99a6bdc5a Mon Sep 17 00:00:00 2001 From: Correl Roush Date: Mon, 17 Oct 2011 10:54:07 -0400 Subject: [PATCH] Adding additional configuration files --- gnome-session/xmonad.session | 8 ++++++++ xmobarrc | 17 +++++++++++++++++ xmonad.standalone.hs | 3 +-- xmonad.start | 28 ++++++++++++++++++++++++++++ xsessions/xmonad-gnome.desktop | 7 +++++++ xsessions/xmonad.desktop | 7 +++++++ 6 files changed, 68 insertions(+), 2 deletions(-) create mode 100644 gnome-session/xmonad.session create mode 100644 xmobarrc create mode 100755 xmonad.start create mode 100644 xsessions/xmonad-gnome.desktop create mode 100644 xsessions/xmonad.desktop diff --git a/gnome-session/xmonad.session b/gnome-session/xmonad.session new file mode 100644 index 0000000..6f6c1fa --- /dev/null +++ b/gnome-session/xmonad.session @@ -0,0 +1,8 @@ +[GNOME Session] +Name=Xmonad +RequiredComponents=gnome-panel;gnome-settings-daemon; +RequiredProviders=windowmanager; +DefaultProvider-windowmanager=xmonad +DefaultProvider-notifications=notify-osd + +DesktopName=Xmonad diff --git a/xmobarrc b/xmobarrc new file mode 100644 index 0000000..efa7b29 --- /dev/null +++ b/xmobarrc @@ -0,0 +1,17 @@ +Config { font = "-*-Fixed-Bold-R-Normal-*-13-*-*-*-*-*-*-*" + , bgColor = "black" + , fgColor = "grey" + , position = TopW L 90 + , lowerOnStart = True + , commands = [ Run Weather "KNXX" ["-t"," F","-L","64","-H","77","--normal","green","--high","red","--low","lightblue"] 36000 + , Run Cpu ["-L","3","-H","50","--normal","green","--high","red"] 10 + , Run Memory ["-t","Mem: %"] 10 + , Run Swap [] 10 + , Run Battery ["-L", "15", "-H", "50", "--low", "red", "--high", "green", "--normal", "yellow"] 10 + , Run Date "%a %b %_d %l:%M" "date" 10 + , Run StdinReader + ] + , sepChar = "%" + , alignSep = "}{" + , template = "%StdinReader% }{ %cpu% | %memory% * %swap% | %battery% %date% | %KNXX%" + } diff --git a/xmonad.standalone.hs b/xmonad.standalone.hs index e05c2a1..7c3456d 100644 --- a/xmonad.standalone.hs +++ b/xmonad.standalone.hs @@ -1,7 +1,6 @@ import XMonad import XMonad.Hooks.DynamicLog import XMonad.Hooks.ManageDocks -import XMonad.Hooks.EwmhDesktops import XMonad.Util.Run(spawnPipe) import XMonad.Util.EZConfig(additionalKeys) import System.IO @@ -15,7 +14,7 @@ myManageHook = composeAll myBorderWidth = 2 main = do - xmproc <- spawnPipe "xmobar" + xmproc <- spawnPipe "xmobar ~/.xmonad/xmobarrc" xmonad $ defaultConfig { manageHook = manageDocks <+> myManageHook -- make sure to include myManageHook definition from above <+> manageHook defaultConfig diff --git a/xmonad.start b/xmonad.start new file mode 100755 index 0000000..bba8d77 --- /dev/null +++ b/xmonad.start @@ -0,0 +1,28 @@ +#!/bin/bash + +xrdb -merge .Xresources + +#trayer --edge top --align right --SetDockType true --SetPartialStrut true --expand true --width 15 --height 12 --transparent true --tint 0x000000 & +trayer --edge top --align right --SetDockType true --SetPartialStrut true \ + --expand true --width 10 --transparent true --tint 0x191970 --height 12 & + +gnome-screensaver& + +gnome-settings-daemon& + +if [ -x /usr/bin/gnome-power-manager ] ; then + sleep 1 + gnome-power-manager& +fi + +if [ -x /usr/bin/nm-applet ] ; then + nm-applet --sm-disable & +fi + +kmix --keepvisibility +ubuntuone-launch +dropbox start + +#xcompmgr -c & + +exec xmonad diff --git a/xsessions/xmonad-gnome.desktop b/xsessions/xmonad-gnome.desktop new file mode 100644 index 0000000..d120e41 --- /dev/null +++ b/xsessions/xmonad-gnome.desktop @@ -0,0 +1,7 @@ +[Desktop Entry] +Encoding=UTF-8 +Name=GNOME/xmonad hybrid of amazingness +Comment=GNOME + XMonad tiling window manager +Exec=gnome-session --session=xmonad +Icon=xmonad.png +Type=XSession diff --git a/xsessions/xmonad.desktop b/xsessions/xmonad.desktop new file mode 100644 index 0000000..75c3f3b --- /dev/null +++ b/xsessions/xmonad.desktop @@ -0,0 +1,7 @@ +[Desktop Entry] +Encoding=UTF-8 +Name=XMonad +Comment=Lightweight tiling window manager +Exec=xmonad.start +Icon=xmonad.png +Type=XSession