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

Running onClick command using terminal attribute in HM module. #733

Open
mairs8 opened this issue Jan 18, 2025 · 0 comments
Open

Running onClick command using terminal attribute in HM module. #733

mairs8 opened this issue Jan 18, 2025 · 0 comments

Comments

@mairs8
Copy link

mairs8 commented Jan 18, 2025

i want to open up btop when i leftClick on cpuTemp button. I have tried using all of the below combinations but nothing works.

I can use bar.customModules.cpuTemp.leftClick = "${config.home.sessionVariables.TERMINAL} -e btop"; but this does not make use of the terminal attribute for a single source of truth.

     # tried all 4 of below.
      terminal = "${config.home.sessionVariables.TERMINAL}";
      terminal = "${pkgs.ghostty}/bin/ghostty";
      terminal = "$TERM";
      terminal = "xterm-ghostty";

     # in conjunction with the each of below.
      bar.customModules.cpuTemp.leftClick = "${pkgs.btop}/bin/btop";
      bar.customModules.cpuTemp.leftClick = "btop";
@mairs8 mairs8 changed the title How do you run an onClick command using terminal attribute in HM module. running onClick command using terminal attribute in HM module. Jan 18, 2025
@mairs8 mairs8 changed the title running onClick command using terminal attribute in HM module. Running onClick command using terminal attribute in HM module. Jan 18, 2025
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

1 participant