diff --git a/.config/dwm/autostart.sh b/.config/dwm/autostart.sh index 1be0bf2..7f06a63 100755 --- a/.config/dwm/autostart.sh +++ b/.config/dwm/autostart.sh @@ -11,7 +11,7 @@ nm-applet & pnmixer -t & # Configure screens and resolution -#~/.config/dwm/startxrandr.sh & +~/.config/dwm/startxrandr.sh & # Load compton or picom #compton & @@ -22,7 +22,7 @@ kitty & # Configure wallpaper sleep 3 && nitrogen --head=0 --set-scaled ~/wallpapers/archlinux2.jpg & -nitrogen --head=1 --set-zoom-fill ~/wallpapers/archlinux2.jpg & +sleep 3 && nitrogen --head=1 --set-zoom-fill ~/wallpapers/archlinux2.jpg & # Configure screensaver ~/.config/dwm/startscreensaver.sh & diff --git a/.config/dwm/config.h b/.config/dwm/config.h index 51a58b0..69dc0af 100644 --- a/.config/dwm/config.h +++ b/.config/dwm/config.h @@ -211,7 +211,7 @@ static Key keys[] = { { MODKEY|ShiftMask, XK_m, spawn, SHCMD("rofi -show") }, // Terminal - { MODKEY, XK_Return, spawn, SHCMD("alacritty") }, + { MODKEY, XK_Return, spawn, SHCMD("kitty") }, // File explorer { MODKEY, XK_e, spawn, SHCMD("pcmanfm") }, diff --git a/.config/dwm/dwmblocks/LICENSE b/.config/dwm/dwmblocks/LICENSE deleted file mode 100644 index 3ec2656..0000000 --- a/.config/dwm/dwmblocks/LICENSE +++ /dev/null @@ -1,7 +0,0 @@ -ISC License (ISC) - -Copyright 2020 torrinfail - -Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. diff --git a/.config/dwm/startscreensaver.sh b/.config/dwm/startscreensaver.sh new file mode 100755 index 0000000..69b10a4 --- /dev/null +++ b/.config/dwm/startscreensaver.sh @@ -0,0 +1,19 @@ +#!/bin/bash + +# Basic configuration variables +ScreensaverProgram="xautolock" # Options: xautolock or xscreensaver +ScreensaverTime="20" # 20 minutes (only for xautolock) + +# Init screensaver +sleep 5 +if [ "${ScreensaverProgram}" == "xautolock" ] ; then + echo "Using 'xautolock' as screensaver program" + xautolock -time ${ScreensaverTime} -locker "xset dpms force off" +elif [ "${ScreensaverProgram}" == "xscreensaver" ] ; then + echo "Using 'xscreensaver' as screensaver program" + xscreensaver & +else + echo "Using 'xautolock' as screensaver program" + xautolock -time ${ScreensaverTime} -locker "xset dpms force off" +fi + diff --git a/.config/dwm/startxrandr.sh b/.config/dwm/startxrandr.sh new file mode 100755 index 0000000..06faa82 --- /dev/null +++ b/.config/dwm/startxrandr.sh @@ -0,0 +1,18 @@ +#!/bin/bash + +scan_rel=0 + +sleep 2 +while [ ${scan_rel} -eq 0 ] ; do + # Primer monitor + xrandr --output DP-1 --mode 1920x1200 -r 59.95 + xrandr --output DisplayPort-0 --mode 1920x1200 -r 59.95 + # Segundo monitor + xrandr --output DP-2 --mode 1280x1024 -r 75.02 --rotate left --right-of DP-1 + xrandr --output DisplayPort-1 --mode 1280x1024 -r 75.02 --rotate left --right-of DisplayPort-0 + #xrandr --output DisplayPort-1 --mode 1280x1024 -r 75.02 --scale 1.1x1.1 --rotate left --right-of DisplayPort-0 + sleep 2 +done +#sleep 2 +#xrandr --output DisplayPort-0 --mode 1280x1024 -r 75.02 +#xrandr --output DisplayPort-1 --mode 1280x1024 -r 75.02 --rotate left --right-of DisplayPort-0