Open ZackMitkin opened 1 year ago
I don't use X11, so the only idea I have is to capture the output of that script and see if there are any errors:
[[block]]
block = "custom"
command = "echo ' \uf030 '" # assumes fontawesome icons
interval = "once"
shell = "bash"
[[block.click]]
button = "left"
cmd = "sh ~/screenshot.sh 2>/tmp/custom_block.log"
My setup:
Installed with
yay -S i3status-rust-git
, which uses versioni3status-rust-git-0.30.0.r2848.gf2642f03-1
I coppied the examples/screenshot.sh and modified it to just be this:
Running
sh ~/screenshot.sh
from terminal works as expected. I can select the portion of screen I want to capture and it's saved to clipboard.I have this block set in
~/.config/i3status-rust
and it shows up fine:
But, on click it does nothing. I couldn't find a way to see any logs with this or debug further.
A couple things I have tried is to just put
touch ~/test
in the screenshot script, clicking on the icon does create the emptytest
. I've also tried to just put the scrot command directly into thecmd = "..."
section, which also doesn't work.I'm wondering if there's any other way to debug why
scrot
isn't running? Any help will be greaty appreciated!