-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.xprofile
38 lines (34 loc) · 1.44 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
# vi: ft=sh
export QT_QPA_PLATFORMTHEME=qt5ct
export STEAM_FRAME_FORCE_CLOSE=1
export BROWSER=firefox
export DA_TEST_DISABLE_TELEMETRY=1
export UNA_NO_CONTAINER_SSH=1
export GTK_USE_PORTAL=1
export PATH="$HOME/sbin:$PATH"
if [[ -z "$SSH_AUTH_SOCK" ]]; then
export SSH_AUTH_SOCK="$XDG_RUNTIME_DIR"/ssh-agent.socket
ssh-add "$HOME"/.ssh/id_ed25519
find "$HOME"/.ssh/ -type f -name "*@$(hostname)" | xargs -n1 ssh-add
find "$HOME"/.ssh/ -type f -name "*@keychain*" ! -name "*.pub" | xargs -n1 ssh-add
fi
# just to not break stuff
if [[ "$(hostname)" == "sandcastle" ]]; then
export __GL_SYNC_TO_VBLANK=1
local device
device="$(xrandr | grep -E 'DP-[0-9]+ connected' | cut -f1 -d ' ')"
# turn em all off
xrandr --output HDMI-0 --off --output DP-0 --off --output DP-1 --off --output HDMI-1 --mode 1920x1080 --pos 0x0 --rotate normal --output DP-2 --off --output DP-3 --off --output HDMI-1-3 --off --output DP-1-3 --off --output DP-1-4 --off --output DP-1-5 --off
# just now turn them on properly
xrandr --output HDMI-1 --mode 1920x1080 --pos 0x0 --rotate normal --output DP-2 --primary --mode 1920x1080 --pos 1928x0 --rotate normal --rate 240
export __GL_SYNC_DISPLAY_DEVICE="$device"
export VDPAU_NVIDIA_SYNC_DISPLAY_DEVICE="$device"
x11vnc -display :0 -usepw -forever -bg
else
# TODO
# not very portable
export LIBVA_DRIVER_NAME=iHD
fi
/usr/lib/polkit-kde-authentication-agent-1 &
xset r on
xset r rate 200 35