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

[BUG] Issue using without Komorebi #60

Closed
TetraTsunami opened this issue Jan 23, 2025 · 3 comments
Closed

[BUG] Issue using without Komorebi #60

TetraTsunami opened this issue Jan 23, 2025 · 3 comments
Assignees
Labels
bug Something isn't working priority high
Milestone

Comments

@TetraTsunami
Copy link

Expected behavior

I expected Hitokage to function without Komorebi running, based on this line from the top of the README.md:

It is primarily built for usage with komorebi, but is also usable as a standalone drop-in replacement for the default Windows Taskbar.

Environment

  • windows version: 10.0.26100.0
  • hitokage version: 4a3a9f6

init.lua

local monitors = hitokage.monitor.get_all()

for _, monitor in ipairs(monitors) do
	monitor:attach({
		children = {
			{ Box = {} },
			{ Clock = { format = "%a %b %u %R", halign = "End" } },
		},
		homogeneous = true,
	})
end

styles.css

window {
  /* Be careful about setting values here, this also modifies the debugger appearance */
  font-family: 'JetBrainsMono Nerd Font';
  font-size: 12px;
  color: #000000;
}

.bar {
  background-color: rgba(60, 56, 54, 0);
  color: #ffffe0;
  
  font-family: 'JetBrainsMono Nerd Font';
  font-size: 24px;
  line-height: 32px;
  min-height: 32px;
}

.workspace {
  background-color: rgba(60, 56, 54, 1);
  padding: 0px 0px 0px 8px;
  /* border: 1px solid rgba(255, 0, 0, 0.4); */
}

.workspacechild {
  /* distance between workspace children */
  /* margin-left: 8px; */
  border: 1px solid rgba(168, 153, 132, 0.4);

  color: #ffffe0;

  /* font-size: 12px; */
  line-height: 24px;

  transition: all 500ms;
  transition-property: min-width, background-color;
}

.workspacechild:first-child {
  margin-left: 0px;
}

.workspacechild:selected {
  /* min-width: 32px; */
  border: 1px solid #ffffe0;
  background-color: #ffffe0;
  color: rgba(60, 56, 54, 1.0);
  font-weight: bold;
}

.data {
  padding-right: 8px;
}

.bar-group {
  background-color: rgba(60, 56, 54, 1);
}

.bar-group.left {
  min-width: 160px;
  border-radius: 0px 12px 12px 0px;
}

.bar-group.center {
  margin-left: 8px;
  padding-left: 8px;
  padding-right: 8px;
  border-radius: 12px;
}

.bar-group.right {
  padding-left: 8px;
  padding-right: 8px;
  border-radius: 12px 0px 0px 12px;
}

.bar-group-extra {
  font-size: 20px;
  line-height: 24px;
  color: rgba(60, 56, 54, 1);
}

.fix-spacing {
  /* just centers the two elements in the center which aren't homogeneous */
  margin-left: 8px;
}

.icon {
  font-size: 20px;
  line-height: 20px;
  padding-top: 2px;
  padding-right: 8px;
  padding-bottom: 2px;
  padding-left: 8px;
  font-weight: bold;
}

/* .memory {
  color: #fff;
}

.cpu {
  color: #fff;
} */

/* .cpu.usage-10 {
  color: #00ff00;
}

.cpu.usage-20 {
  color: #ff0000;
} */

Recording of issue (running hitokage without komorebi, starting komorebi, then running hitokage again; it only starts the second time)

Error log:

(hitokage.exe:21584): GLib-GIO-WARNING **: 12:00:50.881: win32 session dbus binary not found
2025-01-23T18:00:50.886Z INFO  [hitokage] attempting to load lua init.lua at: C:\Users\akami\.config/hitokage/init.lua
2025-01-23T18:00:50.886Z INFO  [hitokage] attempting to load lua styles.css at: C:\Users\akami\.config/hitokage/styles.css
2025-01-23T18:00:50.887Z INFO  [hitokage] Loading styles.css
thread 'main' panicked at hitokage\src\socket.rs:13:51:
Failed to open socket: Os { code: 10061, kind: ConnectionRefused, message: "No connection could be made because the target machine actively refused it." }
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
thread 'main' panicked at core\src\panicking.rs:221:5:
panic in a function that cannot unwind
stack backtrace:
   0:     0x7ff73e1c9fa1 - <unknown>
   1:     0x7ff73e1e3d4a - <unknown>
   2:     0x7ff73e1c5827 - <unknown>
   3:     0x7ff73e1c9de5 - <unknown>
   4:     0x7ff73e1cb917 - <unknown>
   5:     0x7ff73e1cb6f7 - <unknown>
   6:     0x7ff73e1cbfa3 - <unknown>
   7:     0x7ff73e1cbdf2 - <unknown>
   8:     0x7ff73e1ca6ef - <unknown>
   9:     0x7ff73e1cba2e - <unknown>
  10:     0x7ff73e265895 - <unknown>
  11:     0x7ff73e265943 - <unknown>
  12:     0x7ff73e265a25 - <unknown>
  13:     0x7ff73db75528 - <unknown>
  14:     0x7ff73e21c0c0 - <unknown>
  15:     0x7ff73e21b6b8 - <unknown>
  16:     0x7ffd4f543846 - RtlCaptureContext2
  17:     0x7ff73db7538d - <unknown>
  18:     0x7ffcf2a59980 - g_closure_invoke
  19:     0x7ffcf2a70828 - g_signal_stop_emission_by_name
  20:     0x7ffcf2a71a7e - g_signal_stop_emission_by_name
  21:     0x7ffcf2a6c7fc - g_signal_emit
  22:     0x7ffcf0e76835 - g_application_register
  23:     0x7ffcf0e764b0 - g_application_quit
  24:     0x7ffcf0e76b7f - g_application_run
  25:     0x7ff73db163df - <unknown>
  26:     0x7ff73db16538 - <unknown>
  27:     0x7ff73dafcc79 - <unknown>
  28:     0x7ff73dafc45f - <unknown>
  29:     0x7ff73db64e96 - <unknown>
  30:     0x7ff73db7558c - <unknown>
  31:     0x7ff73e1c041c - <unknown>
  32:     0x7ff73dafd3cc - <unknown>
  33:     0x7ff73e21894c - <unknown>
  34:     0x7ffd4e33e8d7 - BaseThreadInitThunk
  35:     0x7ffd4f4ffbcc - RtlUserThreadStart
thread caused non-unwinding panic. aborting.
@codyduong
Copy link
Owner

Hey thanks for this, I normally always use hitokage with komorebi and broke this at some point (or maybe this never worked).

Resolved with: 12bc87e

It should be updated at the nightly release: https://github.com/codyduong/hitokage/releases/nightly whenever the action completes https://github.com/codyduong/hitokage/actions/runs/12942468785/job/36100264777

@codyduong
Copy link
Owner

Hmm, although I remember now that it doesn't properly reserve the space away for the hitokage taskbar so apps still appear below it. I can make another issue for this

@TetraTsunami
Copy link
Author

Thanks for working on this :) hitokage is super cool so far, I'm very excited to see where you take it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working priority high
Projects
None yet
Development

No branches or pull requests

2 participants