parent
005226fd85
commit
ccd7263b63
@ -0,0 +1,6 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
killall -q dunst
|
||||||
|
while pgrep -x dunst >/dev/null; do sleep 0.1; done
|
||||||
|
|
||||||
|
dunst -config ~/.config/dunst/dunstrc
|
@ -0,0 +1,6 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
i3lock-fancy -f 'Pragmata Pro' -t 'Type Password To Unlock';
|
||||||
|
|
||||||
|
if [ "$1" = "SUSPEND" ]; then
|
||||||
|
systemctl suspend;
|
||||||
|
if
|
@ -1,21 +1,22 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
PRIMARY=$(xrandr | grep primary | awk '{ print $1 }')
|
PRIMARY=$(xrandr | grep primary | awk '{ print $1 }')
|
||||||
SECONDARY=$(xrandr | grep "DVI.*disconnected" | awk '{ print $1 }')
|
SECONDARY=$(xrandr | grep "DVI.*" | awk '{ print $1 }')
|
||||||
BACKGROUND=${BG:~/Pictures/Wallpapers/retro.jpg}
|
BACKGROUND=~/Pictures/Wallpapers/retro.jpg
|
||||||
|
|
||||||
if [ "$1" = "CONNECT" ]; then
|
if [ "$1" = "CONNECT" ]; then
|
||||||
xrandr --output ${SECONDARY} --auto --above ${PRIMARY} --dpi 165 --filter bilinear;
|
xrandr --output ${SECONDARY} --auto --above ${PRIMARY} --dpi 165;
|
||||||
nitrogen --head=1 --save --set-scaled ${BACKGROUND};
|
nitrogen --head=1 --save --set-scaled "${BACKGROUND}";
|
||||||
elif [ "$1" = "DISCONNECT" ]; then
|
elif [ "$1" = "DISCONNECT" ]; then
|
||||||
xrandr --output ${SECONDARY} --off;
|
xrandr --output ${SECONDARY} --off;
|
||||||
elif [ "$1" = "RECONNECT_PRIMARY" ]; then
|
elif [ "$1" = "RECONNECT_PRIMARY" ]; then
|
||||||
xrandr --output ${PRIMARY} --off;
|
xrandr --output ${PRIMARY} --off;
|
||||||
else
|
else
|
||||||
|
set +x;
|
||||||
exit -1;
|
exit -1;
|
||||||
fi
|
fi
|
||||||
|
|
||||||
sleep 1;
|
sleep .5;
|
||||||
xrandr --output ${PRIMARY} --auto --primary --preferred --filter bilinear;
|
xrandr --output ${PRIMARY} --auto --primary --preferred --dpi 100 --filter bilinear;
|
||||||
nitrogen --head=0 --save --set-scaled ${BACKGROUND};
|
nitrogen --head=0 --save --set-scaled ${BACKGROUND};
|
||||||
|
|
||||||
|
Loading…
Reference in new issue