Help setting up Volumio with touchscreen and IR remote

I added a media player to another Pi 4.

Now looking into adding a IR receiver to power on/off the Pi.

I found this here

$ sudo apt-get update

$ sudo apt-get install lirc

$ sudo mv /etc/lirc/lirc_options.conf.dist /etc/lirc/lirc_options.conf

$ sudo apt-get install lirc

how to edit this

driver = default

device = /dev/lirc0

$ sudo mv /etc/lirc/lircd.conf.dist /etc/lirc/lircd.conf

dtoverlay=gpio-ir,gpio_pin=17

or

#dtoverlay=gpio-ir-tx, gpio_pin=18

$ sudo systemctl stop lircd.service

$ sudo systemctl start lircd.service

$ sudo systemctl status lircd.service

$ sudo reboot

$ sudo systemctl stop lircd.service

$ sudo mode2 -d /dev/lirc0

point remote to ir receiver and press button

and exit

How would i clean or edit this to work out right