-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.zprofile
More file actions
47 lines (43 loc) · 1.87 KB
/
.zprofile
File metadata and controls
47 lines (43 loc) · 1.87 KB
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
# vi: ft=sh
# ly has no special init file for zsh on wayland like with x11
# https://github.com/fairyglade/ly/blob/master/res/setup.sh#L27-L37
# so to run only on init, set some var
if (( __LY_WAYLAND_INIT )); then
return
fi
export __LY_WAYLAND_INIT=1
#export QT_QPA_PLATFORMTHEME=qt5ct
export QT_QPA_PLATFORMTHEME=kde
export STEAM_FRAME_FORCE_CLOSE=1
export BROWSER=firefox
export DA_TEST_DISABLE_TELEMETRY=1
export GTK_USE_PORTAL=1
export DOTNET_CLI_TELEMETRY_OPTOUT=1
export PATH="$HOME/sbin:$PATH"
export XDG_SCREENSHOTS_DIR="$HOME/media/Pictures/Screenshots"
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
if [[ "$(hostname)" == "sandcastle" ]]; then
# TODO
# export __GL_SYNC_TO_VBLANK=1
# export CLUTTER_DEFAULT_FPS=240
# local dp_device hdmi_device
# dp_device="$(xrandr | grep -E 'DP-[0-9]+ connected' | cut -f1 -d ' ')"
# hdmi_device="$(xrandr | grep -E 'HDMI-[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 --off --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_device" --mode 1920x1080 --pos 0x0 --rotate normal --output "$dp_device" --primary --mode 1920x1080 --pos 1928x0 --rotate normal --rate 240
# export __GL_SYNC_DISPLAY_DEVICE="$dp_device"
# export VDPAU_NVIDIA_SYNC_DISPLAY_DEVICE="$dp_device"
# x11vnc -display :0 -usepw -forever -bg
export LIBVA_DRIVER_NAME=nvidia
else
# TODO
# not very portable
export LIBVA_DRIVER_NAME=iHD
fi