-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprofile_hosts.symlink
58 lines (43 loc) · 1.72 KB
/
profile_hosts.symlink
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
48
49
50
51
52
53
54
55
56
57
58
#!/bin/bash
# custom profile options for different hosts
HOSTNAME=`hostname`
USER=`whoami`
if [ "$HOSTNAME" = "glaux-clio" ]; then
# soft notification sound
export BEEP=$HOME/.dotfiles/files/soft_beep.way
export TERM="xterm-256color"
# if running from tty1 start sway -> desktop session
if [ $(tty) = "/dev/tty1" ]; then
export XKB_DEFAULT_LAYOUT=us,de
export XKB_DEFAULT_OPTIONS=grp:alt_shift_toggle
exec env MESA_LOADER_DRIVER_OVERRIDE=i965 QT_WAYLAND_FORCE_DPI=physical QT_QPA_PLATFORM=wayland-egl QT_WAYLAND_DISABLE_WINDOWDECORATION=1 QT_QPA_PLATFORMTHEME=qt5ct ECORE_EVAS_ENGINE=wayland_egl ELM_ENGINE=wayland_egl CLUTTER_BACKEND=wayland SDL_VIDEODRIVER=wayland BEMENU_BACKEND=wayland MOZ_ENABLE_WAYLAND=1 dbus-run-session sway
# exec sway
fi
elif [ "$HOSTNAME" = "eu*" ]; then
echo "HELLO WORLD"
fi
elif [ "$HOSTNAME" = "nm14cs004273" ]; then
# fix CURL certificates path
export CURL_CA_BUNDLE=/etc/ssl/certs/ca-certificates.crt
# export cuda
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/lib"
export CUDA_HOME=/usr/
# ZSH shell
export SHELL=`which zsh`
[ -z "$ZSH_VERSION" ] && exec "$SHELL" -l
set -o ignoreeof
export IGNOREEOF=100
export HOME="/home/$(whoami)"
# use different backup script
# unalias jour
# unalias doremi
# alias doremi="apt-mark showhold && daily-cal && daily-quote"
# alias jour="bash $HOME/.backup/borg-backup-desktop.sh && sleep 5 && doremi"
ulimit -s 16384
# if [[ -z "$DISPLAY" ]] && [[ "$(tty)" = "/dev/tty1" ]]; then
if [ "$(tty)" = "/dev/tty1" ]; then
export XKB_DEFAULT_LAYOUT="us,de"
export XKB_DEFAULT_OPTIONS="grp:alt_shift_toggle"
exec startx
fi
fi