ambevar-dotfiles/.xprofile

53 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.
2018-12-02 12:30:38 +01:00
export BROWSER=next
2015-10-19 15:15:12 +02:00
## ~/.local/share/applications/mimeapps.list shoud symlink to ~/.config/mimeapps.list.
cat<<EOF > ~/.config/mimeapps.list
[Added Associations]
image/jpeg=sxiv.desktop
video/H264=mpv.desktop
2019-03-22 12:39:43 +01:00
video/mpeg=mpv.desktop
2018-12-02 12:30:38 +01:00
text/html=$BROWSER.desktop
application/pdf=$BROWSER.desktop
[Default Applications]
image/jpeg=sxiv.desktop
image/png=sxiv.desktop
2019-04-18 21:29:01 +02:00
video/mpeg=mpv.desktop
2018-12-02 12:30:38 +01:00
text/html=$BROWSER.desktop
application/pdf=zathura.desktop
2018-12-02 12:30:38 +01:00
x-scheme-handler/http=$BROWSER.desktop
x-scheme-handler/https=$BROWSER.desktop
2019-03-20 11:14:39 +01:00
x-scheme-handler/mailto=emacs-mail.desktop
EOF
## X resources for xterm.
## Some DM merge this automatically; we merge it for TTY logins.
[ -f "$HOME/.Xresources" ] && xrdb -merge "$HOME/.Xresources"
2015-10-19 15:15:12 +02:00
## Set custom keymap and configure input devices.
setxkbmap -layout us -variant "altgr-intl" -option "ctrl:swapcaps,nodeadkeys,nbsp:level3"
2017-05-27 16:41:36 +02:00
xcape -e 'Control_L=Escape'
2015-10-19 15:15:12 +02:00
numlockx on
2018-02-08 12:54:45 +01:00
xbindkeys
## Disable the touchpad. There might be better ways to do this.
# xinput disable "SynPS/2 Synaptics TouchPad"
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. It should start automatically.
# start-pulseaudio-x11 &
2018-01-15 20:31:29 +01:00
2019-02-27 16:01:09 +01:00
## Privoxy
privoxy --no-daemon ~/.config/privoxy/config &
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