Signed-off-by: Marcin Woźniak <y0rune@aol.com>
This commit is contained in:
2020-11-05 23:58:06 +01:00
parent 131f61128c
commit 61034bc1eb
130 changed files with 131 additions and 922 deletions

View File

@@ -28,10 +28,17 @@ mega-cmd-server --debug-full > /var/log/megacmd/megacmd.log&
setxkbmap pl&
dwmstatusbar&
# Two monitors are enabled?
if [[ $(mons | awk '/Monitors/{print $2}') = 2 ]]
then
xrandr --output eDP-1 --mode 1920x1080 --pos 1920x0 --rotate normal --output HDMI-1 --primary --mode 1920x1080 --pos 0x0 --rotate normal
fi
# Seetings of LID
while true
do
if [[ $(< /proc/acpi/button/lid/LID0/state ) = *closed ]]
if [[ $(< /proc/acpi/button/lid/LID0/state ) = *closed ]] && [[ $(mons | awk '/Monitors/{print $2}') = 1 ]]
then
case $(< /sys/class/power_supply/ADP0/online) in
1) ( [[ ! "$(pidof slock)" ]] && slock ) ;;