#!/bin/sh # How2bind??? #setxkbmap -layout us,no -option grp:ctrl_alt_toggle #setxkbmap -layout no picom --vsync --no-fading-openclose --shadow-opacity=1.0 --dbus & xrandr --output HDMI1 --auto --same-as eDP1 --mode 1920x1080 & # Uncomment below to extend screen to the right of the laptop screen # xrandr --output HDMI-1 --auto --right-of eDP1 feh --auto-reload --bg-fill /usr/share/backgrounds/background.png & # Set up touchpad controls # Libinput TID=$(xinput | sed -n 's/.*Touchpad.*id=\([0-9]*\).*/\1/p') #xinput --set-prop $TID 'libinput Accel Speed' 0.5 xinput --set-prop $TID 'libinput Tapping Enabled' 1 & xinput --set-prop $TID 'libinput Natural Scrolling Enabled' 1 & # Synapse #TID=`xinput list | grep "SynPS/2 Synaptics TouchPad" | sed 's/.*id=\([0-9]*\).*/\1/g'` #PROP_NO=`xinput list-props ${TID} | grep "Synaptics Scrolling Distance" | sed 's/.*(\([0-9]*\)).*/\1/g'` #xinput --set-prop $TID 'Synaptics Tap Action' 1 #xinput set-prop ${TID} ${PROP_NO} -106 -106 # run bar script and dwm ( do not remove this ) SYMLINKDIR=$(readlink -f "$0") BASEDIR=$(dirname "$SYMLINKDIR") $BASEDIR/bar/./bar.sh & xrdb merge $HOME/.config/xresources & dunst & nm-applet & blueman-applet & light-locker --lock-on-suspend & thunar --daemon & # see https://unix.stackexchange.com/a/295652/332452 source /etc/X11/xinit/xinitrc.d/50-systemd-user.sh # init keyring eval $(gnome-keyring-daemon --start --components=gpg,pkcs11,secrets,ssh) # export keyring export GNOME_KEYRING_CONTROL GNOME_KEYRING_PID GPG_AGENT_INFO SSH_AUTH_SOCK # see https://github.com/NixOS/nixpkgs/issues/14966#issuecomment-520083836 mkdir -p "$HOME"/.local/share/keyrings dbus-run-session dwm