-
Notifications
You must be signed in to change notification settings - Fork 1
/
.profile
44 lines (36 loc) · 1.04 KB
/
.profile
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
#!/bin/sh
# make default editor
export EDITOR=micro
export VISUAL=micro
export MICRO_TRUECOLOR=1
#Electron
export XDG_CONFIG_HOME=$HOME/.config/
#Java theme
export _JAVA_AWT_WM_NONREPARENTING=1
# Most pure GTK3 apps use wayland by default, but some,
# like Firefox, need the backend to be explicitely selected.
export MOZ_ENABLE_WAYLAND=1
export MOZ_DBUS_REMOTE=1
export GTK_CSD=0
# QT wayland
export QT_QPA_PLATFORMTHEME=qt5ct
export QT_WAYLAND_DISABLE_WINDOWDECORATION="1"
export QT_QPA_PLATFORM="wayland"
#export QT_SCREEN_SCALE_FACTORS="2;1"
#export QT_QPA_PLATFORM="xcb"
#export QT_SCALE_FACTOR="2"
# fix for VMSVGA graphics controller
#export WLR_NO_HARDWARE_CURSORS=1
# Hardware token
export GPG_TTY="$(tty)"
export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket)
source ~/.password-store
# launch WM
if [ "$(tty)" = "/dev/tty1" ] && [ "$XDG_SESSION_TYPE" = "tty" ] && [ "$XDG_SESSION_ID" = "1" ]; ;
then
light -S 60
export GTK_THEME=Matcha-dark-sea
export XDG_SESSION_DESKTOP=sway
export XDG_CURRENT_DESKTOP=sway
dbus-run-session sway
fi