43 lines
1.5 KiB
Bash
Executable file
43 lines
1.5 KiB
Bash
Executable file
#!/bin/bash
|
|
|
|
SCRIPTPATH="$( cd "$(dirname "$0")" ; pwd -P )"
|
|
$SCRIPTPATH/down
|
|
|
|
xrandr --output DP-2 --set "max bpc" 10 --dpi 157 --scale 1x1 --pos 0x0 --primary --output DP-3 --pos 3840x1392 --dpi 72 --scale 1x1
|
|
/home/alexander/bin/wallpaper
|
|
|
|
#boot compton if it exists
|
|
if [ -x "$(command -v picom)" ]; then
|
|
picom &> /dev/null &
|
|
#xrdb -load /home/alexander/.Xresources
|
|
xrdb -merge $SCRIPTPATH/Xresources
|
|
fi
|
|
if [ -x "$(command -v clipmenud)" ]; then
|
|
#setxkbmap -layout 'us,ru' -option 'lv3:ralt_switch,grp:caps_toggle,misc:typo,grp_led:scroll,compose:rctrl' &> /dev/null
|
|
#xmodmap ~/.xmodmaprc &> /dev/null &
|
|
systemctl --user start kbdsetup
|
|
systemctl --user start clipmenud
|
|
fi
|
|
|
|
#set background
|
|
#if [ -x "$(command -v xwinwrap)" ]; then
|
|
# xwinwrap -ov -g 1920x1080+0+0 -- mpv -wid WID $SCRIPTPATH/background.mp4 --no-osc --no-osd-bar --loop-file --player-operation-mode=cplayer --no-audio --panscan=1.0 --no-input-default-bindings &
|
|
#fi
|
|
|
|
echo "LoadTheme $SCRIPTPATH/theme.toml" > $XDG_RUNTIME_DIR/leftwm/command-0.pipe
|
|
# leftwm command "LoadTheme $SCRIPTPATH"
|
|
|
|
#boot polybar based on the number of monitors found
|
|
if [ -x "$(command -v polybar)" ]; then
|
|
pkill polybar
|
|
#monitors="$(polybar -m | sed s/:.*// | tac)"
|
|
polybar -c "$HOME/.config/polybar/polybar.config" mainbar &> /dev/null &
|
|
#while read -r display; do
|
|
# MONITOR=$display polybar -c "$SCRIPTPATH/polybar.config" mainbar &> /dev/null &
|
|
#done <<< "$monitors"
|
|
exit 0
|
|
fi
|
|
|
|
systemctl --user start wired || true
|
|
leftwm-command "SoftReload"
|