2020-03-22 10:27:06 +00:00
|
|
|
#!/bin/sh -u
|
2018-11-04 00:23:34 +00:00
|
|
|
|
|
|
|
# Graphical-specific environment variables
|
2020-03-22 11:10:14 +00:00
|
|
|
export TERMINAL="alacritty"
|
2020-03-22 10:44:09 +00:00
|
|
|
export BROWSER="firefox"
|
2020-03-22 10:27:06 +00:00
|
|
|
|
2022-06-20 18:53:41 +00:00
|
|
|
export GTK_THEME="$(grep gtk-theme-name "${XDG_CONFIG_HOME:-$HOME/.config}/gtk-3.0/settings.ini" | sed 's/.*\s*=\s*//')"
|
2020-03-22 10:27:06 +00:00
|
|
|
export GTK2_RC_FILES="$XDG_CONFIG_HOME/gtk-2.0/settings.ini"
|
2020-06-21 10:00:28 +00:00
|
|
|
export QT_QPA_PLATFORMTHEME=qt5ct
|
2021-01-24 11:37:37 +00:00
|
|
|
export XDG_CURRENT_DESKTOP="GNOME" # Fixes xdg-open
|
|
|
|
|
2022-06-20 18:53:41 +00:00
|
|
|
export _JAVA_OPTIONS="-Dawt.useSystemAAFontSettings=on -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel"
|
|
|
|
|
2020-03-22 10:37:42 +00:00
|
|
|
# https://www.reddit.com/r/linux/comments/72mfv8/psa_for_firefox_users_set_moz_use_xinput21_to/
|
|
|
|
export MOZ_USE_XINPUT2=1 # enable pixel-accurate scrolling in firefox
|
2018-11-04 00:23:34 +00:00
|
|
|
|
|
|
|
|
|
|
|
# Load Xorg resources and set the DPI
|
2022-10-23 23:17:44 +00:00
|
|
|
xrdb -merge "$XDG_CONFIG_HOME/X11/xresources"
|
|
|
|
#"$XDG_CONFIG_HOME/scripts/dpi" "$(xrdb -query | grep -i xft.dpi | cut -d: -f2 | xargs)"
|
2018-11-04 00:23:34 +00:00
|
|
|
|
|
|
|
setxkbmap -option caps:none
|
|
|
|
xset r rate 200 18
|
2020-03-22 12:35:16 +00:00
|
|
|
|
|
|
|
test -f "$XDG_CONFIG_HOME"/X11/xmodmap && \
|
|
|
|
xmodmap "$XDG_CONFIG_HOME"/X11/xmodmap
|