summaryrefslogtreecommitdiff
path: root/pcr-testing/parabola-theme-blackmate/parabola-theme-blackmate.install
blob: 9aad93f9570a905b4bc40c8ac32d8a2588686a20 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
post_install() {

  touch /etc/environment
  grep "^QT_QPA_PLATFORMTHEME='*qt5ct'*"                                /etc/environment && \
      sed -i "s|QT_QPA_PLATFORMTHEME=.*|QT_QPA_PLATFORMTHEME='qt5ct'|g" /etc/environment || \
      sed -i "$ a\QT_QPA_PLATFORMTHEME='qt5ct'"                         /etc/environment


  cat << _EOF

==> Installation:
==> To allow QT programs to follow the theme: 'parabola-theme-blackmate';
==> either copy /usr/share/themes/parabola-blackmate/qt5ct/qt5ct.conf to ~/.config/qt5ct/
==> or run the \`qt5ct\` program and select the theme: 'gtk2'.

_EOF
}