I put the original script in /usr/local/bin and didn’t have any problem with it. It was still able to find ~/flag_is.inverted. Just make sure the script is owned by you (not root) and is executable.
If you don’t like the file-flag, you can try this instead,
normal mode: eDP-1 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 256mm x 144mm
when it is inverted: eDP-1 connected primary 1920x1080+0+0 inverted (normal left inverted right x axis y axis) 256mm x 144mm
Do you need the whole content?
The rest of the lines are equal. I just compared both documents with Meld.
normal mode: eDP-1 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 256mm x 144mm
when it is inverted: eDP-1 connected primary 1920x1080+0+0 inverted (normal left inverted right x axis y axis) 256mm x 144mm
And then, if I press again the shortcut to flip back, then the line from above does not change: eDP-1 connected primary 1920x1080+0+0 inverted (normal left inverted right x axis y axis) 256mm x 144mm
I will try your last comment in the next hours. But maybe the problem is there: In shortcuts I have as command this: sh toggle_tent-mode.sh
Is that correct?
Then I did this in the terminal: sudo mv toggle_inverted.sh /usr/local/bin
and sudo chmod +x /usr/local/bin/toggle_inverted.sh
C PANEL
I dragged toggle_inverted.sh from /usr/local/bin in the panel, in the quick launch.
@humpty
It is so perfect now. Thank you so much for your help.
Thank you so much for that, because I don’t know how to program scripts, and maybe one day I will need just a small help. For the last years I’m using two scripts for Lubuntu in general that I like and that I found somewhere in the internet:
update.sh (I use it in the terminal):
#!/bin/bash
apt update
apt dist-upgrade -y
poweroff.sh (I use it with a shortcut):
#!/bin/bash
zenity --question --text="poweroff?"
if [ $? = 0 ]; then
systemctl poweroff
else
exit
fi