Skip to content

Instantly share code, notes, and snippets.

@heddxh
Created April 21, 2023 07:04
Show Gist options
  • Save heddxh/7b789ff169d56b81aefc5b44da3d721d to your computer and use it in GitHub Desktop.
Save heddxh/7b789ff169d56b81aefc5b44da3d721d to your computer and use it in GitHub Desktop.
A pacman hook to make font display correctly in WPS when on KDE with dark theme
[Trigger]
Operation = Install
Operation = Upgrade
Type = Package
Target = wps-office
[Action]
Description = Setting desktop and GTK theme for WPS Office
When = PostTransaction
Exec = /bin/sed -i '1a\export XDG_CURRENT_DESKTOP=GNOME\nexport GTK_THEME=Default\n/' usr/bin/et usr/bin/wps usr/bin/wpp usr/bin/wpspdf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment