Use XCB backend
This commit is contained in:
parent
456f9fb6e6
commit
33cd402ae9
10 changed files with 80 additions and 131 deletions
|
@ -48,9 +48,9 @@ main = do
|
|||
|
||||
--theSystray = systray
|
||||
|
||||
theClock = clock defaultClockConfig { clockFormat = "<span font='Sans 8'>%R</span>\n<span font='Sans 6'>%A %d %B</span>"
|
||||
theClock = clock defaultClockConfig { clockFormat = "<span font='Sans 8'>%R</span>\n<span font='Sans 6'>%a, %b %d</span>"
|
||||
, lineSpacing = (-3)
|
||||
, clockSize = 75
|
||||
, clockSize = 60
|
||||
}
|
||||
brightBorder :: (Widget w s c d) => w -> Border w s c d
|
||||
brightBorder = border normalDesktopBorder
|
||||
|
|
|
@ -3,9 +3,8 @@ import Control.Monad
|
|||
import Data.Maybe
|
||||
|
||||
import Graphics.XHB
|
||||
import Graphics.XHB.Connection
|
||||
import Graphics.XHB.Connection.XCB
|
||||
import Graphics.XHB.Gen.Xproto
|
||||
import qualified Graphics.XHB.Connection.Open as CO
|
||||
|
||||
import System.Exit
|
||||
|
||||
|
@ -31,8 +30,7 @@ main = do
|
|||
conn <- liftM fromJust connect
|
||||
atoms <- initAtoms conn
|
||||
|
||||
let dispname = displayInfo conn
|
||||
screen = (roots_Setup . connectionSetup $ conn) !! CO.screen dispname
|
||||
let screen = (roots_Setup . connectionSetup $ conn) !! connectionScreen conn
|
||||
|
||||
xembedWindow <- initSystray conn atoms screen
|
||||
|
||||
|
|
Reference in a new issue