-
Notifications
You must be signed in to change notification settings - Fork 0
/
dot_zshenv
67 lines (52 loc) · 2.39 KB
/
dot_zshenv
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
###############################################################################
# FILE ORDER
# .zshenv → .zprofile → .zshrc → .zlogin → .zlogout
#
# This is read first and read every time, regardless of the shell being login,
# interactive, or none.
#
# This is the recommended place to set environment variables, though I still
# prefer to set my environment variables in .zprofile
#
# Why would you need it? Because, for example, if you have a script that gets
# called by launchd, it will run under non-interactive non-login shell, so
# neither .zshrc nor .zprofile will get loaded.
###############################################################################
export ZDOTDIR=$HOME/.config/zsh
## FIREFOX STUFF
# enable wayland mode for mozilla
export MOZ_ENABLE_WAYLAND=1
## QT STUFF
#NEEDS: qt5-wayland
# To run a Qt 5 application with the Wayland plugin [3], use -platform wayland
# or QT_QPA_PLATFORM=wayland environment variable. To force the usage of X11 on
# a Wayland session, use QT_QPA_PLATFORM=xcb. This might be necessary for some
# proprietary applications that do not use the system's implementation of Qt,
# such as zoom.
export QT_QPA_PLATFORM="wayland"
export QT_AUTO_SCREEN_SCALE_FACTOR=1
export QT_WAYLAND_FORCE_DPI="physical"
export QT_WAYLAND_DISABLE_WINDOWDECORATION=1
#NEEDS: qt5ct
# On some compositors, for example sway, Qt applications running natively might
# have missing functionality. For example, KeepassXC will be unable to minimize
# to tray. This can be solved by installing qt5ct and setting
# QT_QPA_PLATFORMTHEME=qt5ct before running the application.
export QT_QPA_PLATFORMTHEME="qt5ct"
## JAVA STUFF
# https://github.com/swaywm/sway/issues/595
# https://wiki.archlinux.org/title/Java#Gray_window,_applications_not_resizing_with_WM,_menus_immediately_closing
export _JAVA_AWT_WM_NONREPARENTING="1"
export AWT_TOOLKIT="MToolkit"
# use system anti-aliased fonts
# https://wiki.archlinux.org/title/Java#Better_font_rendering
export _JAVA_OPTIONS="-Dawt.useSystemAAFontSettings=on -Dswing.aatext=true"
export JDK_JAVA_OPTIONS="-Dawt.useSystemAAFontSettings=on -Dswing.aatext=true"
## STUFF
export HOSTNAME=$HOST
## PYTHON STUFF
## Start a stratup Python Script before any interactive shell is launched
#export PYTHONSTARTUP=${XDG_CONFIG_HOME}/python/pythonstartup.py
## ZSH STUFF
## https://blog.patshead.com/2011/04/improve-your-oh-my-zsh-startup-time-maybe.html
skip_global_compinit=1