ambevar-dotfiles/.xprofile

41 lines
1.4 KiB
Plaintext
Raw Normal View History

#!/bin/sh
## This file is sourced by some DM and should not contain any desktop execution.
2016-10-11 05:53:33 +02:00
## Internet browsers that need X to run.
2015-10-19 15:15:12 +02:00
for i in qutebrowser dwb luakit chromium google-chrome; do
command -v $i >/dev/null 2>&1 && export BROWSER=$i && break
done
## X resources for xterm, rxvt et al.
## Some DM merge this automatically; merge it for manual logins.
[ -f "$HOME/.Xresources" ] && xrdb -merge "$HOME/.Xresources"
2015-10-19 15:15:12 +02:00
## Dynamic values. We could have defined the value from a variable in
## .Xresources which we would have set with the preprocessor. But the login
## manager may merge after sourcing this file without setting the preprocessor
## variable, thus overwriting the value with the variable name.
cat <<EOF | xrdb -merge
*VT100*translations: #override Ctrl Meta <KeyPress> U: exec-formatted("$BROWSER '%t'", CLIPBOARD) \n\
Shift <KeyPress> Up:scroll-back(1,line,m) \n\
Shift <KeyPress> Down:scroll-forw(1,line,m)
EOF
2015-10-19 15:15:12 +02:00
## Load custom keymap and configure input devices.
## Some login managers don't like output hence the redirection.
setxkbmap -layout us -variant ""
xkbcomp -I"$HOME/.xkb" "$HOME/.xkb/usim.xkb" $DISPLAY 2>/dev/null
2017-05-27 16:41:36 +02:00
xcape -e 'Control_L=Escape'
2015-10-19 15:15:12 +02:00
numlockx on
# xinput disable "SynPS/2 Synaptics TouchPad"
2018-02-08 12:54:45 +01:00
xbindkeys
2018-04-24 08:05:54 +02:00
## Turn off the bell.
xset -b
2018-01-15 20:31:29 +01:00
## Lock screen on sleep.
2018-05-18 15:05:23 +02:00
xss-lock slock &
2018-02-08 23:55:32 +01:00
## PulseAudio
start-pulseaudio-x11 &
2018-01-15 20:31:29 +01:00
2015-10-19 15:15:12 +02:00
## Hook. Should be sourced last.
2013-09-07 19:18:14 +02:00
[ -f ~/.xprofile_hook ] && . ~/.xprofile_hook