Coder Social home page Coder Social logo

option to set scaling about dwl HOT 5 CLOSED

DirectorX avatar DirectorX commented on August 23, 2024
option to set scaling

from dwl.

Comments (5)

djpohly avatar djpohly commented on August 23, 2024

Take a look at the options available in config.h. You can configure scaling on a per-monitor basis there, or dynamically by using a tool such as wl-randr. (Or are you asking about something different?)

from dwl.

DirectorX avatar DirectorX commented on August 23, 2024

i have tried this

$ wlr-randr
compositor doesn't support wlr-output-management-unstable-v1

same output with wdisplays

from dwl.

djpohly avatar djpohly commented on August 23, 2024

Are you using the latest Git version of dwl?

from dwl.

DirectorX avatar DirectorX commented on August 23, 2024

nop, i use 0.1, the master branch fails to compile

cp config.def.h config.h
/usr/bin/wayland-scanner server-header \
	//usr/share/wayland-protocols/stable/xdg-shell/xdg-shell.xml xdg-shell-protocol.h
/usr/bin/wayland-scanner server-header \
	protocols/wlr-layer-shell-unstable-v1.xml wlr-layer-shell-unstable-v1-protocol.h
/usr/bin/wayland-scanner server-header \
	protocols/idle.xml idle-protocol.h
cc -g -Wall -Wextra -Werror -Wno-unused-parameter -Wno-sign-compare -Wno-unused-function -Wno-unused-variable -Wdeclaration-after-statement -I. -DWLR_USE_UNSTABLE -std=c99 -I/usr/include/libdrm -I/usr/include/pixman-1       -c -o dwl.o dwl.c
dwl.c: In function 'keypress':
dwl.c:1287:19: error: comparison between 'enum wlr_key_state' and 'enum wl_keyboard_key_state' [-Werror=enum-compare]
 1287 |  if (event->state == WL_KEYBOARD_KEY_STATE_PRESSED)
      |                   ^~
dwl.c: In function 'setup':
dwl.c:1998:18: error: too few arguments to function 'wlr_backend_autocreate'
 1998 |  if (!(backend = wlr_backend_autocreate(dpy)))
      |                  ^~~~~~~~~~~~~~~~~~~~~~
In file included from dwl.c:15:
/usr/include/wlr/backend.h:43:21: note: declared here
   43 | struct wlr_backend *wlr_backend_autocreate(struct wl_display *display,
      |                     ^~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
make: *** [<builtin>: dwl.o] Error 1

from dwl.

djpohly avatar djpohly commented on August 23, 2024

0.1 is old. This feature has already been added to the latest Git version (which you will also need to compile against a recent Git version of wlroots).

from dwl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.