I pulled up the Rofi script at “./bin/rofr.sh”, so that I could attempt to remove the mini screen capture backdrop behind the ArchLabs logo for i3lock-fancy.
Upon analyzing I noticed that the following command was listed:
-l|–logout)
ANS="$(rofi -sep “|” -dmenu -i -p ‘System’ -width 20
-hide-scrollbar -line-padding 4 -padding 20
-lines 4 <<< “ Lock| Logout| Reboot| Shutdown”)"
case “$ANS” in
*Lock) i3lock-fancy ;;
*Logout) session-logout || pkill -15 -t tty"$XDG_VTNR" Xorg ;;
*Reboot) systemctl reboot ;;
*Shutdown) systemctl -i poweroff
esac ;;
*) echo; echo “Option does not exist: $arg”; echo; exit 2
esac
done
i3lock-fancy doesn’t appear to specify anything that would tag on the mini backdrop.
Is there another script this script calls to and perhaps I am missing this?
When typing i3lock-fancy in a terminal, the mini backdrop is removed.
I realized this actually a screenshot of the rofi logout menu getting caught. Is there a way to delay the screenshot timing so that rofi logout script has a chance to close?
Sorry man I’m am largely lost here, what are you trying to do?
My above post is not a question but a command, which will show you the canonical path of the command being executed so in this case it would tell you that rofi_run is located at ~/bin/rofi_run this is the best way to find what is actually being run when using a command.
Files in the user home (~/) are subject to change, once a user is created, the files are copied to their home and never touched again (updates will only change /etc/skel and other system locations), for this reason I suggest people retain their own version when migrating to a new version.
Thank Nate, understood. I am trying to find the rofi config file which I can change *Lock) i3lock-fancy ;; to be *Lock) sleep 0.5 && i3lock-fancy ;.
As it stands, the timing is too quick for i3lock’s screenshot, as it captures the rofi_run -l screen, and I was hoping to give it the delay you mentioned.