2024-03-31 20:12:02 -07:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
rm /home/htpc/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-keyboard-shortcuts.xml
|
2025-06-13 16:09:14 -07:00
|
|
|
ln /home/htpc/scripts/PJ/xml/xfce4-keyboard-shortcuts.xml /home/htpc/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-keyboard-shortcuts.xml
|
2024-03-31 20:12:02 -07:00
|
|
|
|
|
|
|
rm /home/htpc/.kodi/userdata/keymaps/keyboard.xml
|
2025-06-13 16:09:14 -07:00
|
|
|
ln /home/htpc/scripts/PJ/xml/keyboard.xml /home/htpc/.kodi/userdata/keymaps/keyboard.xml
|
2024-04-14 18:13:41 -07:00
|
|
|
|
|
|
|
rm /home/htpc/.kodi/userdata/advancedsettings.xml
|
2025-06-13 16:09:14 -07:00
|
|
|
export $(grep -v '^#' /home/htpc/scripts/PJ/xml/secrets.env | xargs)
|
2024-10-06 12:28:21 -07:00
|
|
|
envsubst < /home/htpc/scripts/PJ/advancedsettings.xml > /home/htpc/.kodi/userdata/advancedsettings.xml
|
2025-02-20 20:44:37 -08:00
|
|
|
|
|
|
|
# disable the power button on PJ, ignore if already commented
|
|
|
|
# this usually doesn't revert, but occasionally does after updating system
|
|
|
|
# system may require a reboot once this runs
|
|
|
|
keyboard_file=/usr/share/X11/xkb/symbols/inet
|
2025-02-20 20:47:20 -08:00
|
|
|
sudo sed -i '/^\/\//!{/XF86PowerOff/s/^/\/\//}' $keyboard_file
|
|
|
|
sudo sed -i '/^\/\//!{/XF86Suspend/s/^/\/\//}' $keyboard_file
|