Add better laptop configs

This commit is contained in:
Tobias Reisinger 2021-04-07 12:39:01 +02:00
parent 9ca659dbe7
commit e3392c682a
5 changed files with 44 additions and 14 deletions

View file

@ -1,4 +1,4 @@
source $HOME/.config/environment
. $HOME/.config/environment
xcompmgr -n -f -D3 &
numlockx on
@ -6,7 +6,6 @@ numlockx on
setxkbmap de
setxkbmap -option caps:none
if [ -x "$(command -v gpgconf)" ]
then
export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket)
@ -14,11 +13,20 @@ then
gpg2 --card-status > /dev/null
fi
_autostart_on_launch()
_autostart_portalo()
{
xrandr --output DVI-D-0 --left-of HDMI-A-0
xrandr --output HDMI-A-0 --mode 2560x1440 --refresh 144
}
_autostart_laptop()
{
xrandr --output eDP-1 --auto
xrandr --output HDMI-2 --left-of eDP-1 --auto
}
_autostart_defaults()
{
dunst &
ckb-next --background &
parcellite &
@ -67,6 +75,13 @@ _autostart_on_launch()
mopidy &
}
_autostart_on_launch &
host_name=$(cat /proc/sys/kernel/hostname)
if [[ $host_name == "portalo" ]]; then
_autostart_portalo &
elif [[ $host_name == *"laptop"* ]]; then
_autostart_laptop &
fi
_autostart_defaults &
# vim: ft=sh