-
Notifications
You must be signed in to change notification settings - Fork 1
/
.xprofile
executable file
·57 lines (45 loc) · 1.88 KB
/
.xprofile
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
#!/bin/sh
export XDG_CONFIG_HOME="$HOME/.config"
export TERM=xterm-256color
export QT_QPA_PLATFORMTHEME=qt5ct
# export TERMINAL="mlterm --fontsize=$((GDK_SCALE*15))"
export TERMINAL="konsole"
# export ROFI_THEME=$HOME/.config/rofi/themes/dracula.rasi
export EDITOR='emacsclient -a "" -c'
export RTV_EDITOR='emacsclient -a "" -c'
# my scripts and flutter executables
export PATH=$PATH:$HOME/.local/bin
export PATH=$HOME/.local/bin/flutter/bin:$PATH
export PATH=$HOME/.local/bin/flutter/bin/cache/dart-sdk/bin:$PATH
export PATH=$HOME/.pub-cache/bin/:$PATH
export NODE_PATH=$NODE_PATH:$(npm root -g)
# for java applications
export AWT_TOOLKIT=MToolkit
# [[ -f ~/.bashrc ]] && source .bashrc
# bspwm
# since .xinit is no longer ran when logging in from lightdm
if [ "$GDK_SCALE" -eq 2 ]; then
xrandr --dpi 200
fi
# 280 ms before repeat, 20 letters per second
xset r rate 400 30
xset s off
# from https://dt.iki.fi/unclutter-home-dir to declutter the home directory
# XDG directories
export XDG_CONFIG_HOME="$HOME/.config"
export XDG_CONFIG_DIR="$HOME/.config"
export XDG_CACHE_HOME="$HOME/.cache"
export XDG_CACHE_DIR="$HOME/.cache"
export XDG_DATA_HOME="$HOME/.local/share"
export XDG_DATA_DIR="$HOME/.local/share"
export XDG_MUSIC_DIR="$HOME/Music"
export XDG_MUSIC_HOME="$HOME/Music"
export GNUPGHOME="$XDG_DATA_HOME/gnupg"
# jetbrains.com/help/go/configuring-goroot-and-gopath.html
export GOPATH="$XDG_CACHE_HOME/go"
# doc.rust-lang.org/cargo/reference/environment-variables.html
export CARGO_HOME="$XDG_CACHE_HOME/cargo"
export NPM_CONFIG_USERCONFIG='$XDG_CONFIG_HOME/npm/rc'
export JDK_JAVA_OPTIONS="-Dawt.useSystemAAFontSettings=on -Dswing.aatext=true -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel -Dsun.java2d.opengl=true -Duser.home=$XDG_DATA_HOME/java"
export WINEPREFIX="$XDG_DATA_HOME/wine"
dbus-update-activation-environment --systemd DBUS_SESSION_BUS_ADDRESS DISPLAY XAUTHORITY