dotfiles/.xinitrc

30 lines
648 B
Bash

#!/bin/sh
# keyboard
numlockx
# display
(
LAPTOP_SCREEN="$(xrandr --listmonitors | grep eDP | awk '{print $4}')"
xrandr --output "${LAPTOP_SCREEN}" --mode 1920x1080 --rate 60 --primary
)
xrandr \
--output DisplayPort-1-1 --pos 1920x0 --auto \
--output DisplayPort-1-2 --pos 3840x0 --auto
# startup
/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 &
picom &
redshift &
feh --bg-tile "$XDG_CONFIG_HOME/wallpapers/landscape.png" --no-fehbg
dunst &
xset dpms 300 15 # dim 5m, lock 5m15s
xss-lock lock &
#bar
(conky | while read LINE; do xsetroot -name "$LINE"; done) &
exec dwm