aboutsummaryrefslogblamecommitdiff
path: root/.xinitrc
blob: 24e7b7a128bc96eb5a678bc099cc5d709e45a599 (plain) (tree)
1
2
3
4
5
6
7
8
9


                 

                                                                        
                                                       
 
                                                           
                      



                          



                                                                 

         





                                                                                                        




                                               

                              





                                                                
 
#!/usr/bin/env sh
# vi: ft=sh

picom --vsync --no-fading-openclose --shadow-opacity=1.0 --dbus --daemon

feh --auto-reload --bg-fill "$HOME/Pictures/wall.png" &

/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 &
xss-lock xsecurelock &

# 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

setxkbmap no

#bspc monitor -d I II III IV V VI VII VIII IX X
xrandr --output eDP1 --primary --auto
xrandr --output HDMI1 --same-as eDP1 --auto

xrdb -merge .config/xresources

: ${TURNSTILE_ENV_DIR:="${HOME}/.config/service-env"}
echo "${DISPLAY}" > "${TURNSTILE_ENV_DIR}/DISPLAY"

# exec chpst -e "${TURNSTILE_ENV_DIR}" i3
chpst -e "${TURNSTILE_ENV_DIR}" ./dotfiles/dwm/.dwm/bar/bar.sh &
exec chpst -e "${TURNSTILE_ENV_DIR}" dwm