#!/bin/bash export PATH="$PATH":~/.go/bin:~/bin xrdb -merge .Xresources mate-session-daemon # Tray applets trayer --edge bottom --align right --SetDockType true --SetPartialStrut true --expand true --width 10 --transparent true --tint 0x000000 --alpha 0 --height 17 --monitor primary& xscreensaver -no-splash& nm-applet --sm-disable& # Fix for java applications export _JAVA_AWT_WM_NONREPARENTING=1 # Fix for openoffice export OOO_FORCE_DESKTOP=gnome # Fix touch screen for firefox export MOZ_USE_XINPUT2=1 # Import environment in systemd systemctl --user import-environment PATH systemctl --user import-environment DISPLAY dbus-update-activation-environment --systemd SSH_AUTH_SOCK # Restart tl auto suspend to have the correct path systemctl --user restart tl-auto-suspend.service systemctl --user restart battery-monitor.service systemctl --user restart action-manager.service # Remove _NET_WORKAREA to fix some apps # https://github.com/xmonad/xmonad/issues/42#issuecomment-243422400 sh -c 'while true; do xprop -root -remove _NET_WORKAREA; sleep 1; done'& # Auto-start applications gajim& keepass2 ~/Nextcloud/passwords.kdbx& thunderbird& mate-terminal -e ssh-add ~/.ssh/id_rsa& dropbox start& nextcloud& slack&