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

Cannot execute script. #2

Closed
Vanderscycle opened this issue Jul 19, 2023 · 4 comments
Closed

Cannot execute script. #2

Vanderscycle opened this issue Jul 19, 2023 · 4 comments

Comments

@Vanderscycle
Copy link

Hey,

Thank you for making this bash script. I am having issues executing the script through polybar giving me the following result.

not-working

[module/fcitx]
type = custom/script
exec = ~/Documents/dotFiles/.config/polybar/fcitx5.sh
tail = true
interval = 0
format-prefix = "KBD"

Current polybar folder structure

dotFiles/.config/polybar on  main [$!] took 18s
❯ pwd
/home/henri/Documents/dotFiles/.config/polybar

dotFiles/.config/polybar on  main [$!]
❯ ls
.rw-r--r-- 5.1k henri 18 Jul 19:44 config.ini
.rwxrwxrwx 2.1k henri 17 Jul 19:46 fcitx5.sh
.rw-------  305 henri 15 Jul 22:15 launch.sh
.rw-r--r--  774 henri 17 Jul 19:33 mocha.ini

Any help is appreciated. I feel the fix is simple but it evades me.
Thank you

@Tarik366
Copy link

Tarik366 commented Jul 20, 2023

I don't know so much but try exec = ~/Documents/.config/polybar/fcitx5.sh instead exec = ~/Documents/dotFiles/.config/polybar/fcitx5.sh from exec path.

@Vanderscycle
Copy link
Author

I am getting the same error but from a different dir now. I am using nixos so everything is symlinked.

@Tarik366
Copy link

Tarik366 commented Jul 21, 2023

are you setting file to executable? chmod u+x fcitx5.sh

@Vanderscycle
Copy link
Author

not-working

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

2 participants