summaryrefslogtreecommitdiff
path: root/zsh/.zshenv
blob: 017e009a76a97d1455138e50e69923b8f75cd779 (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
export TZ=America/New_York
export ALTERNATE_EDITOR=vim
export EDITOR=emacsclient
export TERMINAL=urxvt
export LEDGER_FILE=$HOME/org/hledger/2021.journal
export CHEMACS_PROFILE=default
if [[ $(hostname) =~ pincer* || $(hostname) =~ dex* || $(hostname) =~ fedora || $(hostname) =~ firelink ]]; then
    export MOZ_ENABLE_WAYLAND=1
    export GDK_BACKEND=wayland
    export QT_QPA_PLATFORM=wayland
    #export GDK_SCALE=2
fi
if [[ $(hostname) =~ fedora ]]; then
    export SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)"
fi

PATH="$HOME/bin:$HOME/.local/bin:$HOME/build/doom-emacs/bin:$PATH:$HOME/.cargo/bin"

alias e="emacsclient -n"
alias dmenu=rofi
alias dmenu_run="rofi -show run"
source ~/.zshenv.local

export XKB_DEFAULT_LAYOUT="us(dvorak)"
export XKB_DEFAULT_OPTIONS="caps:ctrl_modifier,compose:ralt"

if [[ $(hostname) =~ dex* || $(hostname) =~ firelink ]]; then
    # US keyboard layout works better with the Corne keymap.
    export XKB_DEFAULT_LAYOUT="us"
fi