You are not logged in.
Hi there,
whenever I press for example, the pause key from my keyboard, dwm just freezes and I can only move my mouse.
I can only press the volume up & down keys without dwm just freezing.
Heres my Xorg log: https://gist.github.com/f1bede00c913b27 … 9d6a651559
xinitrc:
xrandr --output HDMI-0 --mode 1920x1080 --output HDMI-1 --mode 1920x1080 --left-of HDMI-0 &
#setxkbmap -option caps:swapescape
setxkbmap gb &
# compositor
picom -f &
#redshift &
slstatus &
exec dbus-launch --exit-with-session dwmI have no idea what other info I can provide that would help.
If there is any, please let me know.
Thank you
Last edited by fullbyte (2021-06-29 18:39:46)
Offline
Offline
I replaced the /etc/X11/xinit/xinitrc with the one I showed in the thread without backing it up.
What do I do then?
Offline
Did you actually *read* the article? Why would you replace the template with your broken version?
Offline
I actually never read it because previously it seemingly worked fine.
But yea, I should've read it before editing my .xinitrc
Offline
A friend just sent me the default xinitrc and now it looks like this
#!/bin/sh
userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/etc/X11/xinit/Xresources
sysmodmap=/etc/X11/xinit/Xmodmap
# merge in defaults and keymaps
if [ -f $sysresources ]; then
xrdb -merge $sysresources
fi
if [ -f $sysmodmap ]; then
xmodmap $sysmodmap
fi
if [ -f "$userresources" ]; then
xrdb -merge "$userresources"
fi
if [ -f "$usermodmap" ]; then
xmodmap "$usermodmap"
fi
# start some nice programs
if [ -n "`/etc/X11/chooser.sh`" ]; then
command="`/etc/X11/chooser.sh`"
else
failsafe="yes"
fi
if [ -d /etc/X11/xinit/xinitrc.d ] ; then
for f in /etc/X11/xinit/xinitrc.d/?* ; do
[ -x "$f" ] && . "$f"
done
unset f
fi
if [ -n "$failsafe" ]; then
xrandr --output HDMI-0 --mode 1920x1080 --output HDMI-1 --mode 1920x1080 --left-of HDMI-0 &
setxkbmap gb &
xwallpaper --output HDMI-0 --stretch ~/git/wallpapers/0256.jpg --output HDMI-1 --stretch ~/git/wallpapers/0257.jpg &
picom -f &
slstatus &
exec dbus-launch --exit-with-session dwm
else
exec $command
fiDoes it look fine now?
Also, that sadly did not resolve my issue though.
Last edited by fullbyte (2021-06-29 18:13:21)
Offline
Well, it is still wrong. What is the point of the chooser block? And why are you still using exec dbus-launch?
Offline
I use the dbus-launch block because a few months back, playerctl apparently didn't work for me without it so i added it and then it worked and I just forgot to remove it now that it does work.
#!/bin/sh
userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/etc/X11/xinit/Xresources
sysmodmap=/etc/X11/xinit/Xmodmap
# merge in defaults and keymaps
if [ -f $sysresources ]; then
xrdb -merge $sysresources
fi
if [ -f $sysmodmap ]; then
xmodmap $sysmodmap
fi
if [ -f "$userresources" ]; then
xrdb -merge "$userresources"
fi
if [ -f "$usermodmap" ]; then
xmodmap "$usermodmap"
fi
if [ -n "$failsafe" ]; then
xrandr --output HDMI-0 --mode 1920x1080 --output HDMI-1 --mode 1920x1080 --left-of HDMI-0 &
setxkbmap gb &
xwallpaper --output HDMI-0 --stretch ~/git/wallpapers/0256.jpg --output HDMI-1 --stretch ~/git/wallpapers/0257.jpg &
picom -f &
slstatus &
exec dwm
else
exec $command
fiIs it okay now? I feel like im completely messing it up.
Offline
Well, the fialsafe block is still pointless...
Post your dwm config and change your start line to redirect all dwm errors to a file.
Offline
Also don't fork the xrandr, xwallpaper and esp. setxkbmap calls.
Offline