85 lines
2.1 KiB
Plaintext
85 lines
2.1 KiB
Plaintext
# samsung S27C450: res opt 1920x1080 avec dpi opt 76
|
|
# FIXME ne fonctionne pas en 2560x1440
|
|
xrandr --output HDMI-1-1 --primary --mode 1920x1080
|
|
# DELL U2722D
|
|
xrandr --output DP-3 --mode 1920x1080 --right-of HDMI-1-1
|
|
|
|
# my 2 monitors / lege
|
|
# samsung S27C450: res opt 1920x1080 avec dpi opt 76
|
|
#xrandr --output DVI-D-1 --primary --mode 1920x1080 --scale 1x1
|
|
#+ with samsung 3840x2160 en hidpi
|
|
#xrandr --output HDMI-1-1 --mode 3840x2160 --scale 0.5x0.5 --right-of DVI-D-1
|
|
|
|
# only HDMI-0 (droite)
|
|
# xrandr --output HDMI-0 --mode 3840x2160 --scale 1x1
|
|
|
|
# onfly disable screen
|
|
# xrandr --output HDMI-0 --off
|
|
|
|
# new dvi
|
|
# xrandr --output DVI-D-0 --mode 1920x1080 ---scale 1x1 --right-of HDMI-0
|
|
# xrandr --output DVI-D-0 --off
|
|
|
|
|
|
# notify
|
|
dunst --startup_notification &
|
|
notify-send "Running dunst" "notification daemon"
|
|
|
|
# dwm status -- compilé
|
|
# notify-send "Running slstatus" "status bar"
|
|
slstatus &
|
|
|
|
# pulse audio
|
|
# notify-send "Running pasystray" "Pulse Audio tray"
|
|
pasystray &
|
|
|
|
# udiskie - automount
|
|
# notify-send "Running udiskie" "auto-mount tool"
|
|
udiskie &
|
|
|
|
# key binding daemon
|
|
# see ~/.dxhd.sh
|
|
dxhd -b -c ~/.dxhd.sh
|
|
|
|
# autolock
|
|
# notify-send "Running xsidle.sh" "auto-lock tool"
|
|
# xsidle.sh slock &
|
|
|
|
# Xresources
|
|
# hiDPI
|
|
test -f $HOME/.Xresources-leger && xrdb -merge $HOME/.Xresources-leger
|
|
|
|
# ssh-agent
|
|
eval $(ssh-agent)
|
|
|
|
if test -f /usr/lib/ssh/x11-ssh-askpass # Archlinux
|
|
then
|
|
SSH_ASKPASS=/usr/lib/ssh/x11-ssh-askpass ssh-add < /dev/null
|
|
notify-send "set SSH_ASKPASS to /usr/lib/ssh/x11-ssh-askpass"
|
|
fi
|
|
|
|
# background
|
|
test -f $HOME/.fehbg && { notify-send .fehbg; source $HOME/.fehbg; }
|
|
|
|
# xclock
|
|
# xclock -d -update 1 -strftime '%T %d %b %Y' -face 'Noto Sans-60' &
|
|
# xclock -update 1 &
|
|
|
|
## restart with Alt-Shift-Q
|
|
## (only in debug process because make dwm slow not using exec)
|
|
# while true
|
|
# do
|
|
# dwm 2> $HOME/.dwm.log
|
|
# done
|
|
|
|
# my keyboards:
|
|
# - keyboard 1 = us
|
|
# - keyboard 2 = us international
|
|
# - use right_ctrl + right_shft to change it
|
|
setxkbmap -layout us,us -variant ,intl -option grp:rctrl_rshift_toggle
|
|
|
|
## or do a simple exec
|
|
# eval $(gpg-agent --daemon) #DONT NEED TO LAUNCH IT
|
|
exec dwm 2>> $HOME/.dwm.log
|
|
|