Replies: 15 comments
-
Hi @rjahrj, First, can you confirm what Linux distribution you use? Can you also confirm that |
Beta Was this translation helpful? Give feedback.
-
@berbiche hello |
Beta Was this translation helpful? Give feedback.
-
I think your herbstluftwm is not loading the environment (it does not execute |
Beta Was this translation helpful? Give feedback.
-
This is the error I get when I now try to use
|
Beta Was this translation helpful? Give feedback.
-
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 |
Beta Was this translation helpful? Give feedback.
-
@berbiche thanks that definitely allowed me to enable Herbst on HM, now the problem is the autostart file. Or the Nix equivalent? |
Beta Was this translation helpful? Give feedback.
-
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. |
Beta Was this translation helpful? Give feedback.
-
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"? |
Beta Was this translation helpful? Give feedback.
-
@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 |
Beta Was this translation helpful? Give feedback.
-
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. |
Beta Was this translation helpful? Give feedback.
-
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:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
@olmokramer thanks that definitely helps a lot |
Beta Was this translation helpful? Give feedback.
-
@olmokramer sorry for spamming you with questions 😭 but what about tag switching? |
Beta Was this translation helpful? Give feedback.
-
@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 |
Beta Was this translation helpful? Give feedback.
-
@rjahrj Sorry for the late reply, work was insanely busy the past couple of days. Yes you should put that in the |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
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 itBeta Was this translation helpful? Give feedback.
All reactions