diff options
Diffstat (limited to 'dwm/.dwm/autostart')
-rwxr-xr-x | dwm/.dwm/autostart | 39 |
1 files changed, 27 insertions, 12 deletions
diff --git a/dwm/.dwm/autostart b/dwm/.dwm/autostart index 71595cc..fa49455 100755 --- a/dwm/.dwm/autostart +++ b/dwm/.dwm/autostart @@ -1,26 +1,28 @@ #!/bin/sh # How2bind??? -#setxkbmap -layout us,no -option grp:ctrl_win_l_toggle -setxkbmap -layout no -picom --vsync --no-fading-openclose --refresh-rate "59.96" & -xrdb merge ~/Public/xresources/forest/.Xresources & -feh --auto-reload --bg-fill ~/Pictures/wall.jpg & +#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 +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'` +#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 +#xinput set-prop ${TID} ${PROP_NO} -106 -106 # run bar script and dwm ( do not remove this ) SYMLINKDIR=$(readlink -f "$0") @@ -30,6 +32,19 @@ xrdb merge $BASEDIR/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 |