summaryrefslogtreecommitdiffstats
path: root/bashrc/common
diff options
context:
space:
mode:
authorAlexander Sulfrian <alexander@sulfrian.net>2008-12-09 01:08:29 +0100
committerAlexander Sulfrian <alexander@sulfrian.net>2008-12-09 01:08:29 +0100
commit403d88f9db6038492bcdf4caafea8f3b6b69f191 (patch)
tree271d2b909e44c2282c8784dd0935ac9f898b9e48 /bashrc/common
parentcb44894f097b1cae9945e77fff857e16fe7ddad4 (diff)
downloaddotfiles-403d88f9db6038492bcdf4caafea8f3b6b69f191.tar.gz
dotfiles-403d88f9db6038492bcdf4caafea8f3b6b69f191.tar.xz
dotfiles-403d88f9db6038492bcdf4caafea8f3b6b69f191.zip
set AWT_TOOLKIT if xmonad is running to fix some poor java bugs
Diffstat (limited to 'bashrc/common')
-rw-r--r--bashrc/common/env.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/bashrc/common/env.sh b/bashrc/common/env.sh
index e02e6ad..9396b53 100644
--- a/bashrc/common/env.sh
+++ b/bashrc/common/env.sh
@@ -3,3 +3,6 @@ export EDITOR=/usr/bin/nano
# set timezone if needed
[[ -z "$TZ" ]] && export TZ=Europe/Berlin
+
+# fix for java gui toolkit to work properly with xmonad
+[[ -n "$(ps x | grep xmonad)" ]] && export AWT_TOOLKIT="MToolkit"