Ax-Shell icon indicating copy to clipboard operation
Ax-Shell copied to clipboard

Not showing topbar after restarting config errors

Open somkumarav opened this issue 1 year ago • 8 comments

This error occured when i tried to install the ax-shell, initially the top bar is visible but when restaring the pc top bar is not visible

Image

somkumarav avatar May 08 '25 07:05 somkumarav

facing the same issue, but one of the errors Error parsing gradient 0xff$primary: failed to parse 0xff$primary as a color can be (hopefully) fixed by just changing the wallpaper so colors.conf file is created in `config/colors.conf"

pranshuj73 avatar May 08 '25 10:05 pranshuj73

facing the same problem seems like an issue with the latest release of hyprlang (0.6.2).

Downgrading to 0.6.1-2 fixed the issue for me. Simply download it from the archive (https://archive.archlinux.org/packages/h/hyprlang/) and install it with pacman -U /path/to/hyprlang-0.6.1-2-x86_64.pkg.tar.zst.

SwapnajXD avatar May 08 '25 10:05 SwapnajXD

hey, you can edit your ~/.config/Ax-Shell/config/hypr/ax-shell.conf file replacing all occurences of $(...) with ${{...}} on the lines shown in the error to fix the issue. i've also raised a pr making the fix in the config generator function. but once you make the changes, the errors should disappear until axenide reviews & merges my pr.

eg:

exec-once = uwsm-app $(python /home/pranshu/.config/Ax-Shell/main.py)

should be replaced with

exec-once = uwsm-app ${{python /home/pranshu/.config/Ax-Shell/main.py}}

pranshuj73 avatar May 08 '25 10:05 pranshuj73

hey, you can edit your ~/.config/Ax-Shell/config/hypr/ax-shell.conf file replacing all occurences of $(...) with ${{...}} on the lines shown in the error to fix the issue. i've also raised a pr making the fix in the config generator function. but once you make the changes, the errors should disappear until axenide reviews & merges my pr.

eg:

exec-once = uwsm-app $(python /home/pranshu/.config/Ax-Shell/main.py)

should be replaced with

exec-once = uwsm-app ${{python /home/pranshu/.config/Ax-Shell/main.py}}

This works the errors are gone, but for some reason when I restart or log out and log back in the top bar disappears. I tried downgrading the package as @SwapnajXD said it works now.

somkumarav avatar May 08 '25 12:05 somkumarav

@somkumarav my mistake, i misunderstood what v0.6.3 release of hyprlang actually did.

you should go back to the original config with $(...) and then upgrade hyprlang to 0.6.3-1 to fix this issue.

v0.6.2 introduced $(...) syntax for performing simple arithmetic operations which is what caused this error to occur. due to the conflict with bash's syntax, they rolled out the v0.6.3 update, changing the syntax for arithmetic to ${{...}}, so now the generated conf shouldnt have any issues.

i was trying to debug the issue at work and misunderstood this, apologies for that. i've taken down my pr as well.

pranshuj73 avatar May 08 '25 13:05 pranshuj73

So... Do I have to change something in the config or was it a bug? Heh.

Axenide avatar May 08 '25 20:05 Axenide

So... Do I have to change something in the config or was it a bug? Heh.

you dont need to change anything, but for anyone using hyperlang v0.6.2 will have the breaking config :/, there's no fix for that

i feel like a troubleshooting section would be nice, maybe in the readme or github wiki, to let people know how to fix these issues, given the breaking errors with gobject & now this lol

pranshuj73 avatar May 09 '25 05:05 pranshuj73

I automated those fixes, so closing. :)

Axenide avatar May 17 '25 19:05 Axenide