Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failing on set monocle layout. #41

Closed
lidgnulinux opened this issue Jan 11, 2024 · 2 comments
Closed

Failing on set monocle layout. #41

lidgnulinux opened this issue Jan 11, 2024 · 2 comments

Comments

@lidgnulinux
Copy link

Hello, nice compositor. Today I'm trying it and found something that bother me, I can't set / use monocle layout (both via keybind or via dwl-guile -e).

I have this on my init.scm

(set-keys "s-d" '(dwl:spawn "wofi")

;;; other keybindings

          "s-m" 'dwl:monocle
)

I also run :

$ dwl-guile -e "(dwl:monocle)"

The output I got :

Wrong number of arguments to #<procedure dwl:monocle (_)>

Any clue to fix it ? Thanks.

@Frewacom
Copy link
Member

Frewacom commented Jan 12, 2024

Hi,

The dwl:monocle procecure should not be called directly, since it requires a reference to the monitor it should arrange. Instead, do something like this:

;; From the man pages. Add the monocle layout to the list of enabled layouts.
(set-layouts 'monocle "|M|" 'dwl:monocle)

;; dwl:set-layout accepts the name of the enabled layout as a string.
;; The default layout (tile) is named "default". 
(set-keys "s-m" '(dwl:set-layout "monocle"))

I have also updated the man page to include an example of this.

@lidgnulinux
Copy link
Author

Thanks @Frewacom

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants