diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2015-11-26 06:58:59 +0000 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2015-11-26 06:58:59 +0000 |
commit | 7041a9939e8b015d372f3bfd1b3503860fde6c06 (patch) | |
tree | 7b40992c973a476a8014d2d51311ec3113b9e683 | |
parent | 4acc7c935e32c5e31b403b90d315cd7f8c0e7140 (diff) | |
download | dotfiles-7041a9939e8b015d372f3bfd1b3503860fde6c06.tar dotfiles-7041a9939e8b015d372f3bfd1b3503860fde6c06.tar.gz dotfiles-7041a9939e8b015d372f3bfd1b3503860fde6c06.tar.bz2 dotfiles-7041a9939e8b015d372f3bfd1b3503860fde6c06.tar.xz dotfiles-7041a9939e8b015d372f3bfd1b3503860fde6c06.zip |
support for java awt in xmonad
-rw-r--r-- | .xmonad/xmonad.hs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/.xmonad/xmonad.hs b/.xmonad/xmonad.hs index c5ef0cc..7594cd0 100644 --- a/.xmonad/xmonad.hs +++ b/.xmonad/xmonad.hs | |||
@@ -183,15 +183,16 @@ main = do | |||
183 | } | 183 | } |
184 | xmonad $ myConfig | 184 | xmonad $ myConfig |
185 | 185 | ||
186 | autostart = [ spawnKeychain | 186 | autostart = [ spawnOnce "urxvtd -o" |
187 | , spawnOnce "urxvtd -o" | 187 | , spawnKeychain |
188 | , liftIO $ setEnv "_JAVA_AWT_WM_NONREPARENTING" "1" | ||
188 | ] | 189 | ] |
189 | 190 | ||
190 | spawnKeychain = do | 191 | spawnKeychain = do |
191 | home <- liftIO getHomeDirectory | 192 | home <- liftIO getHomeDirectory |
192 | let keys = map ((home </>) . ("/.ssh/id_" ++)) ["ed25519", "ecdsa", "rsa"] | 193 | let keys = map ((home </>) . ("/.ssh/id_" ++)) ["ed25519", "ecdsa", "rsa"] |
193 | keys' <- filterM (liftIO . doesFileExist) keys | 194 | keys' <- filterM (liftIO . doesFileExist) keys |
194 | safeSpawn "urxvt" $ ["-title", "keysetup", "-e", "keychain"] ++ keys' | 195 | safeSpawn "urxvtc" $ ["-title", "keysetup", "-e", "keychain"] ++ keys' |
195 | 196 | ||
196 | assimilateKeychain :: X () | 197 | assimilateKeychain :: X () |
197 | assimilateKeychain = liftIO $ assimilateKeychain' >> return () | 198 | assimilateKeychain = liftIO $ assimilateKeychain' >> return () |