You are not logged in.

#1 2012-03-27 11:20:06

qpfiffer
Member
Registered: 2012-03-27
Posts: 2

DWM refresh without restart xorg/dwm

So every now and then an application I run will resize my screen resolution against my will. Thats all well and dandy, but it screws up DWM as you can see by this screenshot. My question is, is there a way to refresh dwm or to get it back somehow? Its kind of annoying.

Last edited by qpfiffer (2012-03-27 11:20:44)

Offline

#2 2012-03-27 12:02:33

bohoomil
Banned
Registered: 2010-09-04
Posts: 2,377
Website

Re: DWM refresh without restart xorg/dwm

I've never experienced an exact issue myself, but after modifying some settings I reload dwm with the following shortcut:

{ MODKEY|ControlMask,           XK_q,    quit,             {.i = 23} },

This assumes you're running dwm in a loop:

while true
	do
	/usr/bin/dwm 2> /dev/null
done

Last edited by bohoomil (2012-03-27 12:02:49)


:: Registered Linux User No. 223384

:: github
:: infinality-bundle+fonts: good looking fonts made easy

Offline

#3 2012-03-27 17:53:04

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: DWM refresh without restart xorg/dwm

bohoomil has the right approach. You could also try just toggling the bar to see if that has any effect.

I am also curious about a) which applications do this, and b) how you generate your statusbar.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#4 2012-03-27 21:58:14

qpfiffer
Member
Registered: 2012-03-27
Posts: 2

Re: DWM refresh without restart xorg/dwm

jasonwryan wrote:

a) which applications do this, and b) how you generate your statusbar.

Interestingly enough toggling the status bar does not help. It just hides the status bar, and then when I bring it back the black un-refreshed chunk of the bar is still there.
a) Its usually wine applications that decide to resize the screen to some default value.
b) I guess by "generate", here is my .xinitc:

#!/bin/bash
eval $(cat ~/.fehbg) &
#google-musicmanager &
imwheel & # Because chromium scrolls like a fucking dead person
wine ~/.wine/drive_c/Program\ Files/Steam/steam.exe &
pidgin &
/usr/bin/dropbox start &
chromium-browser &
while true
do
	LOCALTIME=$(date)

	xsetroot -name "$LOCALTIME"
	sleep 5s
done &

exec dwm

I think I'll adopt the looping dwm thing and see if that helps.

Offline

Board footer

Powered by FluxBB