]> git.friedersdorff.com Git - max/saltfiles.git/blob - states/i3/files/xprofile.jinja
Set keymap to qwerty on machines that use fancy keyboard
[max/saltfiles.git] / states / i3 / files / xprofile.jinja
1 #!/bin/sh
2 # Load .Xresources
3 xrdb -merge ~/.Xresources &> /dev/null
4 if [ -f ~/.Xresources.$HOSTNAME ]; then
5   xrdb -merge ~/.Xresources.$HOSTNAME &> /dev/null
6 fi
7
8 # Set keyboard layout
9 case $HOSTNAME in
10   barium)
11     layout-qwerty_gb
12     ;;
13   dubnium)
14     layout-qwerty_gb
15     ;;
16   *)
17     layout-colemak_gb
18     ;;
19 esac
20
21 # Set screen layout
22 case $HOSTNAME in
23   barium)
24     xrandr --output DP-1 --mode 1920x1080 --pos 0x540
25     xrandr --output HDMI-1 --mode 3840x2160 --pos 1920x0
26     xrandr --output eDP-1 --mode 1920x1080 --pos 0x540
27     ;;
28   dubnium)
29     xrandr --output DVI-D-0 --mode 1920x1080 --pos 0x540
30     xrandr --output DP-2 --mode 3840x2160 --pos 1920x0
31     xrandr --output DP-2 --primary
32     ;;
33   *)
34     ;;
35 esac
36
37 # Set java font option
38 export _JAVA_OPTIONS="-Dawt.useSystemAAFontSettings=on"
39
40 feh --bg-scale ~/Pictures/background_1080_1.png&
41
42 xset -b
43
44 export QT_QPA_PLATFORM="xcb"
45
46 # vim: set expandtab tabstop=2 smarttab: