paperview
paperview copied to clipboard
Multi-monitor support?
Is there anyway to set different wallpapers for different monitors? I have a setup with two monitors that don't share the same resolution and the program doesn't seen to know how to deal with it.
Different monitor sizes complicate matters sadly since a smaller monitor is registered the size of the largest monitor. I do not currently have a solution for this, as I plan to keep the code simple. Fortunately, if monitors are the same size, you could just double the width of your BMPs and tile them when resizing:
$ file out-1.bmp
out-1.bmp: PC bitmap, Windows 98/2000 and newer format, 500 x 288 x 24
$ convert -size 1000x288 tile:out-1.bmp out-1.bmp
Can you please make an option to select which monitor you want to run paperview on. I have 2 monitors, one 27" and the other 23", different resolutions and it looks like shit how it stretches the picture. Should be trivial to add an argument to select which monitor you want to run paper view, either 0 Main monitor, 1 Second monitor or -1 All monitors like current behavior. These are the same settings dwm uses. That way I can use a normal wallpaper on my smaller monitor.
I'll see what I can do when I get the time. The trick lies in:
const Window x11w = RootWindow(self.x11d, DefaultScreen(self.x11d));
Where the call to DefaultScreen needs to be replaced with a different call.
Actually, you know, now that I think about it, there is a really clean solution to this. I'm out for the rest of the day, but if you can check back round about 11PM Pacific Time I should have something up.
@GNeulaender @plasmoduck
I have added multi-monitor support. Please checkout this branch and confirm it works:
https://github.com/glouw/paperview/tree/add-multi-monitor-support
I will merge this branch into master with your approval of its workings. The gist is:
./paperview FOLDER SPEED X Y W H FOLDER SPEED X Y W H
Please see Multi Monitor Use
in the README for further details. You can add as many FOLDER/SPEED pairs as you like.
I can confirm it works on FreeBSD :) Now to figure out how to run with compositor. I'm guessing cause they both (picom/compton & paperview) try to draw to the same root window?
Yup that is correct - Anything drawn by paperview onto the root window will be overdrawn by the compositor. I suppose one could write their own compositor. I've never used a compositor myself, but if you get around to figuring out how to incorporate one with paperview, please post your method here. I'm sure many will like to know as I have had many ask about Picom / Compton.
I rarely use a compositor also. But it would be nice to have working. I'll look into it. Should be good to merge with master branch. Btw, if your interested, here is my project - MODWM
Looks pretty good. Nice colors and tiling. I've been a DWM fan for years. My setup is pretty basic though, just the per-tag patch, some coloring, and d-menu with conky. Regardless, if its DWM, its rock solid. I'll give your a WM a try one day.
I'll merge the multi-monitor-support branch into master later today for sure.
MODWM is dwm with all the patches from suckless.org plus some custom ones like bar border, powerline tags, powerline status etc. You can choose which patches you want to include in your build by editing patches.def.h and puting either 0 or 1 to enable/disable the patch and when you build dwm with contain ONLY the code you selected. Hence the name MODWM being modular.
Ah, actually, I had Github recommend me this repo once. I thought it looked familiar. Good job, its like the Linux kernel with its setup flags. I never really understood why DWM comes in such a poor shape out of the box. Most patches, like pertag and border fixes should be standard in my opinion.
I haven't had time to try the multi-monitor feature yet, I hope I can do that this weekend. But it's seems to be working fine for you, so I'm not worried
I've merged to master. so I hope you enjoy. I'm using it daily and am very pleased I finally got around to it. Makes a world of a difference
Hell yeah it's much better then having a stretched low res image :)
On Tue, Sep 22, 2020 at 05:03:19PM -0700, Gustav Louw wrote:
I've merged to master. so I hope you enjoy. I'm using it daily and am very pleased I finally got around to it. Makes a world of a difference
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.*
GNeulaender you should close this issue.