.xinitrc: Annotate, do monitor assignment, disable wpgen
This commit is contained in:
parent
a12840336a
commit
8ce2a3654c
23
.xinitrc
23
.xinitrc
@ -1,21 +1,32 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Nest protection
|
||||||
if [ -n "$FIRESTARTER" ]; then
|
if [ -n "$FIRESTARTER" ]; then
|
||||||
echo "Firestarter is already running in this session"
|
echo "Firestarter is already running in this session"
|
||||||
exit 50
|
exit 50
|
||||||
fi
|
fi
|
||||||
|
# Find our terminal
|
||||||
for term in mate-terminal lxterminal xfce4-terminal konsole urxvt xterm; do
|
for term in mate-terminal lxterminal xfce4-terminal konsole urxvt xterm; do
|
||||||
if command -v "$term" > /dev/null 2>&1; then
|
if command -v "$term" > /dev/null 2>&1; then
|
||||||
export TERMINAL="$term"
|
export TERMINAL="$term"
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
if [ -x "$HOME/.wpgen/wpgen" ]; then
|
# Monitor setup
|
||||||
resolutions=($(xrandr -q | grep '*' | awk '{print $1}'))
|
case $(hostname) in
|
||||||
for res in ${resolutions[@]}; do
|
dsk-cstm-0)
|
||||||
"$HOME/.wpgen/wpgen" "$res"
|
xrandr --output DisplayPort-1 --mode 2560x1440 --rate 144 --primary
|
||||||
done
|
xrandr --output HDMI-A-0 --mode 1920x1080 --rate 60 --pos 2560x360
|
||||||
fi
|
;;
|
||||||
|
esac
|
||||||
|
# Wallpaper generation because why not
|
||||||
|
#if [ -x "$HOME/.wpgen/wpgen" ]; then
|
||||||
|
# resolutions=($(xrandr -q | grep '*' | awk '{print $1}'))
|
||||||
|
# for res in ${resolutions[@]}; do
|
||||||
|
# "$HOME/.wpgen/wpgen" "$res"
|
||||||
|
# done
|
||||||
|
#fi
|
||||||
|
# Session execution
|
||||||
if [ -x "$HOME/.config/conky/gen.sh" ]; then
|
if [ -x "$HOME/.config/conky/gen.sh" ]; then
|
||||||
"$HOME/.config/conky/gen.sh"
|
"$HOME/.config/conky/gen.sh"
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user