2019-03-15 17:58:36 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
2019-03-24 16:27:40 +00:00
|
|
|
# Set screen orientation if second monitor is connected
|
|
|
|
SCREENCOUNT=$(xrandr | grep -c "\*")
|
|
|
|
|
2019-03-28 12:07:38 +00:00
|
|
|
# If multi screen add special mode for monitor so it supports 1440p over HDMI
|
2019-03-24 16:27:40 +00:00
|
|
|
if [ "$SCREENCOUNT" -eq 2 ]
|
|
|
|
then
|
2019-05-31 11:10:48 +00:00
|
|
|
if [ -f "$HOME/.local/bin/screen_desktop" ]
|
2019-03-28 12:07:38 +00:00
|
|
|
then
|
2019-05-31 11:10:48 +00:00
|
|
|
screen_desktop
|
2019-03-28 12:07:38 +00:00
|
|
|
# Make sure mouse is on main screen so windows are launched there
|
|
|
|
xdotool mousemove 3360 1080
|
|
|
|
fi
|
|
|
|
else
|
2019-05-31 11:10:48 +00:00
|
|
|
if [ -f "$HOME/.local/bin/screen" ]
|
2019-03-28 12:07:38 +00:00
|
|
|
then
|
2019-05-31 11:10:48 +00:00
|
|
|
screen
|
2019-03-28 12:07:38 +00:00
|
|
|
fi
|
2019-03-24 16:27:40 +00:00
|
|
|
fi
|
|
|
|
|
2019-03-22 09:39:59 +00:00
|
|
|
# lock screen after x minutes and on laptop close lid
|
2019-03-22 15:26:15 +00:00
|
|
|
xautolock -time 10 -locker lock &
|
|
|
|
xss-lock lock &
|
2019-05-30 19:19:32 +00:00
|
|
|
xcompmgr &
|
2019-05-31 15:26:09 +00:00
|
|
|
sxhkd &
|
2019-03-24 16:27:40 +00:00
|
|
|
|
|
|
|
if [ -e ~/.cache/wall1.png ] && [ -e ~/.cache/wall2.png ]
|
|
|
|
then
|
2019-05-30 19:37:29 +00:00
|
|
|
xwallpaper --output HDMI-2 --zoom ~/.cache/wall2.png --output DP-1 --zoom ~/.cache/wall1.png &
|
2019-03-24 16:27:40 +00:00
|
|
|
elif [ -e ~/.cache/wall1.png ]
|
|
|
|
then
|
2019-05-30 19:37:29 +00:00
|
|
|
xwallpaper --output eDP1 --zoom ~/.cache/wall1.png &
|
2019-03-24 16:27:40 +00:00
|
|
|
fi
|
|
|
|
|
2019-04-02 09:54:39 +00:00
|
|
|
# switch off microphones
|
|
|
|
amixer -c 2 set Mic nocap
|
|
|
|
amixer -c 3 set Mic nocap
|
|
|
|
|
2019-03-15 17:58:36 +00:00
|
|
|
unclutter &
|
|
|
|
redshift-gtk &
|
|
|
|
dunst &
|
|
|
|
slstatus &
|
|
|
|
|
2019-03-17 16:23:52 +00:00
|
|
|
exec st -c tmux -e tmux &
|
2019-03-15 17:58:36 +00:00
|
|
|
exec spotify &
|
2019-03-22 17:29:36 +00:00
|
|
|
|
|
|
|
if [ -e /usr/bin/firefox ]
|
|
|
|
then
|
|
|
|
exec firefox &
|
|
|
|
elif [ -e /usr/bin/iceweasel ]
|
|
|
|
then
|
|
|
|
exec iceweasel &
|
|
|
|
fi
|