summaryrefslogtreecommitdiff
path: root/xsession/.xsession
blob: 9ed6739c6b3dfc91841205d2a60a2b398ffbe0dd (plain)
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
# vim: set ft=sh:

#### XRESOURCES #####

userresources=$HOME/.Xresources
if [ -f "$userresources" ]; then
    xrdb -load "$userresources"
fi

#### XRANDR #######

# This section depends on modeset=1:
# vi /etc/modprobe.d/nvidia-drm-nomodeset.conf
# options nvidia-drm modeset=1
# sudo update-initramfs -u
# cat /sys/module/nvidia_drm/parameters/modeset

xrandr --setprovideroutputsource modesetting NVIDIA-0
xrandr --auto
xrandr --output DP-5      --scale 2x2     --pos     0x0    # SHARP TV             (3840x2160)
xrandr --output HDMI-0    --scale 1.7x1.7 --pos     3840x0 # LG                   (3264x2040)
xrandr --output DP-0      --primary       --pos     7680x0 # ASUS 4K              (3840x2160)

##### WALLPAPER ######

xsetroot -solid DarkSlateGray
#feh --bg-tile temp/bigblue.jpg --no-fehbg
#xsetroot -cursor_name top_left_arrow # does not work!?

#### TRAYER #######
trayer   --edge top --align right --SetDockType true --SetPartialStrut true --expand true --width 5 --transparent true --alpha 0 --tint 0x002b36 --height 40 --monitor 2 &

##### XMONAD #####
xmonad