-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Herbstluftwm Help #2884
Comments
Hi @rjahrj, First, can you confirm what Linux distribution you use? Can you also confirm that |
@berbiche hello |
I think your herbstluftwm is not loading the environment (it does not execute |
Sorry for the late reply. You have to set at least one tag in the configuration with I think the issue is due to this line in Home Manager: home-manager/modules/services/window-managers/herbstluftwm.nix Lines 148 to 152 in 8ab155c
cc: @olmokramer |
@berbiche thanks that definitely allowed me to enable Herbst on HM, now the problem is the autostart file. Or the Nix equivalent? |
Sorry, I'm not sure. I have no experience with Herbstluftwm. You can change your configuration iteratively and look at the generated configuration file to fix anything until you have a 1-to-1 mapping of your shell script with the nix expression. |
Sorry for the late reply, was on vacation for a couple of days. Could you share the autostart script you're trying to recreate @rjahrj ? What do you mean with "nothing works"? |
@olmokramer perfectly fine, actually I am using the default config from the Herbstluftwm git repo. But I was at one point trying to load it using the |
If you don't want to manage your Herbstluftwm config with Home Manager I would recommend setting
and make sure that Herbstluft is only started after Home Manger has done its setup of the
Otherwise, if you do want to manage your Herbstluftwm config with Home Manager, you will need to set the settings and keybindings in your Home Manager configuration. |
Yes I want to use HM, so pretty much I need to convert the autostart file
into the separate HM Herbstluftwm functions?
…On Wed, Apr 20, 2022, 07:48 Olmo Kramer ***@***.***> wrote:
If you don't want to manage your Herbstluftwm config with Home Manager I
would recommend setting
xsession.windowManager.herbstluftwm.enable = false
and make sure that Herbstluft is only started after Home Manger has done
its setup of the PATH environment variable, for example by setting
xsession.windowManager.command = "${pkgs.herbstluftwm}/bin/herbstluftwm --locked";
Otherwise, if you do want to manage your Herbstluftwm config with Home
Manager, you will need to set the settings and keybindings in your Home
Manager configuration.
—
Reply to this email directly, view it on GitHub
<#2884 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AE2BBDV3RIGAVONNP57VENTVF7VJVANCNFSM5TBOTN2A>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
@olmokramer thanks that definitely helps a lot |
@olmokramer sorry for spamming you with questions 😭 but what about tag switching? |
@rjahrj You can use the I recommend looking at the documentation for the options here: https://nix-community.github.io/home-manager/options.html#opt-xsession.windowManager.herbstluftwm.enable The shell code can be translated to: let
# A list is used because it preserves ordering
tags = [
{ name = "tag 1"; key = "something"; }
{ name = "tag 2"; }
...
];
# Attribute set of { <keybind> = "use <tag>"; }
keybinds = let
tagsWithKeybinds = lib.filter (lib.hasAttr "key") tags;
in lib.listToAttrs (map (x: lib.nameValuePair x.key "use ${x.name}") tagsWithKeybinds);
in
{
xsession.windowManager.herbstluftwm.keybinds = keybinds;
xsession.windowManager.herbstluftwm.tags = lib.catAttrs "name" tags;
} I also recommend reading the nixpkgs manual and getting acquainted with the library functions: https://nixos.org/manual/nixpkgs/unstable/#chap-functions |
@rjahrj Sorry for the late reply, work was insanely busy the past couple of days. Yes you should put that in the |
Thank you for your contribution! I marked this issue as stale due to inactivity. Please be considerate of people watching this issue and receiving notifications before commenting 'I have this issue too'. We welcome additional information that will help resolve this issue. Please read the relevant sections below before commenting. If you are the original author of the issue
If you are not the original author of the issue
Memorandum on closing issuesDon't be afraid to manually close an issue, even if it holds valuable information. Closed issues stay in the system for people to search, read, cross-reference, or even reopen – nothing is lost! Closing obsolete issues is an important way to help maintainers focus their time and effort. |
Hello, I currently have a working herbstluftwm environment. It is installed using
configuration.nix
. I didn't really notice problems until I tried getting dmenu working. Pkgs I installed thru home-manager wouldn't show up on dmenu. So I tried looking more into it, and I think it has to do with my WM not being configured with home-manager. If I can get some help setting that up, I would definitely appreciate itThe text was updated successfully, but these errors were encountered: