1234567891011121314151617181920212223242526272829303132333435 |
- #!/bin/bash
- #
- # masalla cursor theme
- #
- # Copyright 2018 hayder majid <hayder@riseup.net>
- #
- # This program is free software; you can redistribute it and/or modify
- # it under the terms of the GNU General Public License as published by
- # the Free Software Foundation; either version 3 of the License, or
- # (at your option) any later version.
- #
- # This program is distributed in the hope that it will be useful,
- # but WITHOUT ANY WARRANTY; without even the implied warranty of
- # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- # GNU General Public License for more details.
- #
- # You should have received a copy of the GNU General Public License
- # along with this program; if not, you can download it from here:
- # https://www.gnu.org/licenses/gpl-3.0.html
- #
- #Check if you run this script with root privileges
- if [ "$(whoami)" != "root" ]; then
- echo "You need to be in root privileges to run this script. Exiting."
- exit 1
- fi
- INSTADIR=/usr/share/icons
- cp -r masalla-cursor* ${INSTADIR}
- update-alternatives --install /usr/share/icons/default/index.theme x-cursor-theme /usr/share/icons/masalla-cursor-black/cursor.theme 105
|