summaryrefslogtreecommitdiffstats
path: root/lib/Phi/X11/AtomList.hs
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Phi/X11/AtomList.hs')
-rw-r--r--lib/Phi/X11/AtomList.hs19
1 files changed, 18 insertions, 1 deletions
diff --git a/lib/Phi/X11/AtomList.hs b/lib/Phi/X11/AtomList.hs
index d18be71..b91ae3e 100644
--- a/lib/Phi/X11/AtomList.hs
+++ b/lib/Phi/X11/AtomList.hs
@@ -1,8 +1,16 @@
+{-# LANGUAGE TemplateHaskell #-}
+
module Phi.X11.AtomList ( atoms
+ , specialAtoms
) where
+import Language.Haskell.TH
+
+import Graphics.X11.Xlib
+
+atoms :: [String]
atoms = [ "UTF8_STRING"
- , "WM_NAME"
+ , "MANAGER"
, "_NET_WM_NAME"
, "_NET_WM_WINDOW_TYPE"
, "_NET_WM_WINDOW_TYPE_NORMAL"
@@ -20,6 +28,10 @@ atoms = [ "UTF8_STRING"
, "_NET_WM_STATE_BELOW"
, "_NET_WM_STRUT"
, "_NET_WM_STRUT_PARTIAL"
+ , "_NET_WM_PID"
+ , "_NET_SYSTEM_TRAY_OPCODE"
+ , "_NET_SYSTEM_TRAY_ORIENTATION"
+ , "_NET_SYSTEM_TRAY_VISUAL"
, "_NET_ACTIVE_WINDOW"
, "_NET_NUMBER_OF_DESKTOPS"
, "_NET_CURRENT_DESKTOP"
@@ -28,3 +40,8 @@ atoms = [ "UTF8_STRING"
, "_XROOTPMAP_ID"
, "_XROOTMAP_ID"
]
+
+-- the expression must have the type (Display -> String)
+specialAtoms :: [(String, Q Exp)]
+specialAtoms = [ ("_NET_SYSTEM_TRAY_SCREEN", [|("_NET_SYSTEM_TRAY_S" ++) . show . defaultScreen|])
+ ] \ No newline at end of file