Dotfiles config update (2022-04-29)

This commit is contained in:
q3aql 2022-04-29 17:40:28 +02:00
parent 568c9086e0
commit e595d02585
5 changed files with 40 additions and 10 deletions

View File

@ -11,7 +11,7 @@ nm-applet &
pnmixer -t & pnmixer -t &
# Configure screens and resolution # Configure screens and resolution
#~/.config/dwm/startxrandr.sh & ~/.config/dwm/startxrandr.sh &
# Load compton or picom # Load compton or picom
#compton & #compton &
@ -22,7 +22,7 @@ kitty &
# Configure wallpaper # Configure wallpaper
sleep 3 && nitrogen --head=0 --set-scaled ~/wallpapers/archlinux2.jpg & 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 # Configure screensaver
~/.config/dwm/startscreensaver.sh & ~/.config/dwm/startscreensaver.sh &

View File

@ -211,7 +211,7 @@ static Key keys[] = {
{ MODKEY|ShiftMask, XK_m, spawn, SHCMD("rofi -show") }, { MODKEY|ShiftMask, XK_m, spawn, SHCMD("rofi -show") },
// Terminal // Terminal
{ MODKEY, XK_Return, spawn, SHCMD("alacritty") }, { MODKEY, XK_Return, spawn, SHCMD("kitty") },
// File explorer // File explorer
{ MODKEY, XK_e, spawn, SHCMD("pcmanfm") }, { MODKEY, XK_e, spawn, SHCMD("pcmanfm") },

View File

@ -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.

19
.config/dwm/startscreensaver.sh Executable file
View File

@ -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

18
.config/dwm/startxrandr.sh Executable file
View File

@ -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