aboutsummaryrefslogtreecommitdiff
path: root/config/zsh/zprofile
blob: ce033dca7e70509941ca4d8ce43b22dd4bcc4d88 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/zsh

# shellcheck source=/dev/null
. "$HOME/.config/zsh/.zshenv"

if [ "$(uname)" = 'Linux' ] && [ "$(tty)" = '/dev/tty1' ]
then
    # https://wiki.archlinux.org/title/Xorg/Keyboard_configuration
    # setting the keyrepeat delay and interval here as the default ones
    # since some applications reset the those if we use xset r rate 200 30 instead
    startx "$XDG_CONFIG_HOME/x11/xinitrc" -- -ardelay 200 -arinterval 30
    poweroff
fi