question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Wallpaper not resizing when display scaled

See original GitHub issue

Hello, first of all thank you for the amazing job you are doing. Qtile is amazing!

I have an issue I am not able to solve. Not sure if it is a bug in qtile or just an issue related to my config.

From time to time, I connect a secondary monitor to my laptop. I want to set a refresh rate for this monitor of 120 and scale it by 10%. When I am on Gnome, I do not have any issues. When on Qtile, I cannot seem to make it work. I have tried the following:

  1. make qtile run an autostart file with an xrandr command in it:
@hook.subscribe.startup
def autostart():
    home = os.path.expanduser('~/.config/qtile/autostart.sh')
    subprocess.run([home])
#!/usr/bin/sh
sh /home/eugenio/.local/bin/auto-screen-rotate.sh eDP-1 "Wacom HID 4956 Finger touch" &
picom &
xrandr --output eDP-1 --primary --output DP-1 --scale 1.1x1.1 --right-of eDP-1 --mode 1920x1280 --rate 120 &
sleep 1 &&
feh --no-fehbg --bg-scale /home/eugenio/Sync/Sfondi/wallhaven-vg6dqp.jpg --bg-scale /home/eugenio/Sync/Sfondi/1245752.jpg &
sleep 10 && xinput map-to-output 'Wacom HID 4956 Finger touch' eDP-1 &

While the other commands are working correctly, the xrandr command is ineffective.

  1. start qtile from an xsession:
#!/usr/bin/bash

xsetroot -solid gray 
xrandr --output eDP-1 --primary --output DP-1 --scale 1.1x1.1 --right-of eDP-1 --mode 1920x1280 --rate 120 
qtile start

As in the previous case, qtile starts but the xrandr command is not working.

What I am doing wrong? Or is this a problem with qtile setting xrandr on its own and overriding my configuration?

Thank you very much.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:16 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
euglevicommented, Feb 22, 2022

Yep, it is working now! Great job!

0reactions
elParaguayocommented, Feb 22, 2022

Think I’ve got it this time… 🤞

Can you try again?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why can't I move and scale my pictures to… - Apple Community
If Perspective Zoom is on, the wallpaper moves as you tilt your screen. To turn it off, tap the Perspective Zoom button.
Read more >
Scaling issues - Wallpaper Engine - Steam Community
Correct, you should crop (scaling will cause the image to be stretched in one direction, cropping means to cut off parts of the...
Read more >
Windows scaling issues for high-DPI devices - Microsoft Support
Right-click the application, select Properties, select the Compatibility tab, and then select the Disable display scaling on high DPI settings check box.
Read more >
background image not scaling with window size - Stack Overflow
I want it to keep the image's native ratio inside the div but fill the width of the page completely without having the...
Read more >
Resizing background images with background-size - CSS
The background-size CSS property lets you resize the background image of an element, overriding the default behavior of tiling the image at ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found