Page 1 of 2 12 LastLast
Results 1 to 10 of 16

Thread: can't get rid of DMZ-Black/DMZ-White (cursor theme problem)

  1. #1
    Join Date
    Apr 2010
    Beans
    11
    Distro
    Ubuntu 10.10 Maverick Meerkat

    can't get rid of DMZ-Black/DMZ-White (cursor theme problem)

    i tried all solution on forum but couldnt get rid of DMZ cursor theme.
    i copied the new cursor theme to /usr/share/icons/, changed on dconf editor and did the update-alternatives stuff (added new entry etc.) still have DMZ on my desktop.
    i even deleted DMZ-Black/DMZ-White from /usr/share/icons/ but that crazy crap doesnt give up!!
    PLS help

  2. #2
    Join Date
    Aug 2014
    Beans
    Hidden!
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: can't get rid of DMZ-Black/DMZ-White (cursor theme problem)

    Have you logged out and back in?
    Can you link to the cursor theme you are trying to install?
    I have an Elementary Luna iso I can test on.
    Last edited by CantankRus; November 1st, 2014 at 05:42 AM.

  3. #3
    Join Date
    Apr 2010
    Beans
    11
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: can't get rid of DMZ-Black/DMZ-White (cursor theme problem)

    i did. log out/in and restart.

    simpleandsoft and ecliz

  4. #4
    Join Date
    Aug 2014
    Beans
    Hidden!
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: can't get rid of DMZ-Black/DMZ-White (cursor theme problem)

    Quote Originally Posted by hasanaa View Post
    i did. log out/in and restart.

    simpleandsoft and ecliz
    Those themes do not have cursor.theme files which are needed for alternatives.
    Did you create them?

  5. #5
    Join Date
    Apr 2010
    Beans
    11
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: can't get rid of DMZ-Black/DMZ-White (cursor theme problem)

    i did

  6. #6
    Join Date
    Aug 2014
    Beans
    Hidden!
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: can't get rid of DMZ-Black/DMZ-White (cursor theme problem)

    OK what is your terminal output for...
    Code:
    gsettings get org.gnome.desktop.interface cursor-theme
    and
    Code:
    update-alternatives --display x-cursor-theme
    eg my output...
    Code:
    glen@Luna:~$ gsettings get org.gnome.desktop.interface cursor-theme
    'DMZ-Black'
    
    glen@Luna:~$ update-alternatives --display x-cursor-theme
    x-cursor-theme - manual mode
      link currently points to /usr/share/icons/DMZ-Black/cursor.theme
    /etc/X11/cursors/core.theme - priority 30
    /etc/X11/cursors/handhelds.theme - priority 20
    /etc/X11/cursors/redglass.theme - priority 20
    /etc/X11/cursors/whiteglass.theme - priority 20
    /usr/share/icons/DMZ-Black/cursor.theme - priority 20
    /usr/share/icons/DMZ-White/cursor.theme - priority 90
    /usr/share/icons/XenonBlue/cursor.theme - priority 20
    /usr/share/icons/XenonBlue32/cursor.theme - priority 20
    Current 'best' version is '/usr/share/icons/DMZ-White/cursor.theme'.
    and
    Code:
    cat /usr/share/icons/Ecliz/cursor.theme
    Should show...
    Code:
    glen@Luna:~$ cat /usr/share/icons/Ecliz/cursor.theme
    [Icon Theme]
    Inherits=Ecliz
    Last edited by CantankRus; November 1st, 2014 at 12:46 PM.

  7. #7
    Join Date
    Apr 2010
    Beans
    11
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: can't get rid of DMZ-Black/DMZ-White (cursor theme problem)

    Code:
    ~$ gsettings get org.gnome.desktop.interface cursor-theme
    'simpleandsoft'
    Code:
    ~$ update-alternatives --display x-cursor-theme
    x-cursor-theme - manual mode
      link currently points to /usr/share/icons/simpleandsoft/cursor.theme
    /etc/X11/cursors/core.theme - priority 20
    /etc/X11/cursors/handhelds.theme - priority 20
    /etc/X11/cursors/redglass.theme - priority 20
    /etc/X11/cursors/whiteglass.theme - priority 20
    /usr/share/icons/simpleandsoft/cursor.theme - priority 51
    Current 'best' version is '/usr/share/icons/simpleandsoft/cursor.theme'.
    Code:
    ~$ cat /usr/share/icons/simpleandsoft/cursor.theme
    [Icon Theme]
    Inherits=simpleandsoft

  8. #8
    Join Date
    Aug 2014
    Beans
    Hidden!
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: can't get rid of DMZ-Black/DMZ-White (cursor theme problem)

    All looks ok.
    I created a cursor.theme file for simpleandsoft and installed in Luna and works fine.
    In your efforts to get working did you run any other commands like sudo ln <blahblah> ?

    I use this script to change cursors. Try if you like.
    All it needs is the cursor theme be placed in /usr/share/icons and contain a cursor.theme file.
    Save as change_cursor.sh and make executable.
    Code:
    #!/bin/bash
    
    ####################################################################
    ##                                                                ##
    ##     Script to change cursors. Only lists themes installed to   ##
    ##     /usr/share/icons.                                          ##
    ##     Theme must have a cursor.theme file                        ##
    ##                                                                ##
    ####################################################################
    
    ####################################################################
    ##                                                                ##
    ##     To change the cursor theme, the script will                ##
    ##	1) Change dconf setting                                   ##
    ##	2) Register the theme with update-alternatives            ##
    ##	3} Select the theme in update-alternatives                ##
    ##                                                                ##
    ##     To change the cursor size the script will                  ##
    ##	1) Change dconf setting                                   ##
    ##	2) Edit the ~/.Xresources file or create if               ##
    ##         it doesn't exist                                       ##
    ##                                                                ##
    ##      ....................................                      ##
    ##      :   Tested in Ubuntu Raring 13.04  :                      ##
    ##      :..................................:                      ##
    ####################################################################
    
    CURRENTSIZE=$(gsettings get org.gnome.desktop.interface cursor-size)
    THEME=$(gsettings get org.gnome.desktop.interface cursor-theme)
    touch ~/.Xresources
    
    ## create installed cursor list text file
    #ls -R /usr/share/icons | grep "\/cursors:" | sed -e 's/\/cursors://g' -e 's/\/usr\/share\/icons\///g' > ~/.cursorlist.txt
    find /usr/share/icons -name "cursor.theme" | cut -f 5 -d '/' | sort > ~/.cursorlist.txt
    echo -e "\n\033[36mYour current cursor theme is \033[0m$THEME \033[36m"
    
     
    ## show a numbered list of cursors to choose from
    cat -b ~/.cursorlist.txt 
    totalthemes=$(wc -l ~/.cursorlist.txt | awk '{print $1}') 
    
    	echo -e "\033[36mEnter your new theme selection number:\033[0m"
    	read CHOICE
    
    
    ## match the theme selection number to the cursor name
    CURSOR=$(cat ~/.cursorlist.txt | sed -n $CHOICE'p') 
    	echo -e "\n\033[36mYou have selected \033[0m$CURSOR\n\033[36mContinue?(Y/n):\033[0m"
    	read Ans
    if [[ $Ans == "y" || $Ans == "Y" || $Ans == "yes" || $Ans == "Yes" || $Ans == "" ]]
      then
        echo -e "\n\033[36mUsing update-alternatives requires Authentication of Admin privileges...\033[0m"
      else
        echo -e "\nYou chose not to continue...\n"
    	echo -e "\n\033[36mYour current cursor theme is \033[0m$THEME \033[36m"
    	read -n 1 -p "Press any key to exit this script..."
    exit
    fi
    
    
    ## Change to selected  cursor
    	gsettings set org.gnome.desktop.interface cursor-theme "$CURSOR" &
    	sudo update-alternatives --install /usr/share/icons/default/index.theme x-cursor-theme /usr/share/icons/$CURSOR/cursor.theme 20 & wait;
    	sudo update-alternatives --set x-cursor-theme /usr/share/icons/$CURSOR/cursor.theme &
    	#sudo sh -c "echo '[Icon Theme]\nInherits=$CURSOR' > /usr/share/icons/DMZ-White/cursor.theme"
    wait;
    
    
    ## Set size of cursor
    CURRENTSIZE=$(gsettings get org.gnome.desktop.interface cursor-size)
    	echo -e "\n\033[36mYour current cursor size is \033[0m$CURRENTSIZE \n\033[36mWould you like to change the size?(Y/n):\033[0m"
    	read Ans
    if [[ $Ans == "y" || $Ans == "Y" || $Ans == "yes" || $Ans == "Yes" || $Ans == "" ]]
      then
        echo  
      else
        echo -e "\nYou chose not to continue..." 
    
    ## writes to or creates a ~/.Xresources file to reflect curent cursor size. Need to do this when choosing not to change size and ~/.Xresources doesn't exist
    	echo -e "\n\033[36mYou have enabled the \033[0m$CURSOR \033[36mcursor theme with size unchanged of \033[0m$CURRENTSIZE\033[36m \nYou need to log out to complete the change:\033[0m";
    		if grep "Xcursor.size:" ~/.Xresources > /dev/null; then
    			#echo "Xcursor.size line exists"
    			sed -i "/Xcursor.size/c\Xcursor.size:${CURRENTSIZE}" ~/.Xresources
    		else
    			#echo "Xcursor.size line does not exist"
    			echo "Xcursor.size:${CURRENTSIZE}" >> ~/.Xresources
    		fi
    	read -n 1 -p "Press any key to exit this script..."
    exit
    fi
    
    ## Choose size
    	echo -e "\033[36mChoose your new cursor-size from 16, 24, 32, 48, or 64\033[36m"
    	read SIZE
    
    ## Confirm choice
    	echo -e "\n\033[36mYou have selected a cursor size of \033[0m$SIZE\nContinue?(Y/n):"
    	read Ans
    if [[ $Ans == "y" || $Ans == "Y" || $Ans == "yes" || $Ans == "Yes" || $Ans == "" ]]
    	then
        	  echo 
    	else
    		echo -e "\nYou chose not to continue..."
    	  	echo -e "\n\033[36mYou have enabled the \033[0m$CURSOR \033[36mcursor theme with size unchanged of \033[0m$CURRENTSIZE\033[36m \nYou need to log out to complete the change:\033[0m";
    		echo
    	        read -n 1 -p "Press any key to exit this script..."
    exit
    fi
    
    ## Edits dconf to reflect chosen size
    gsettings set org.gnome.desktop.interface cursor-size $SIZE
    
    ## Creates a ~/.Xresources file or edits existing to reflect chosen size
    if grep "Xcursor.size:" ~/.Xresources > /dev/null; then
    	#echo "Xcursor.size line exists"
    	sed -i "/Xcursor.size/c\Xcursor.size:${SIZE}" ~/.Xresources
    else
    	#echo "Xcursor.size line does not exist"
    	echo "Xcursor.size:${SIZE}" >> ~/.Xresources
    fi
    
    
    echo -e "\n\033[36mYou have enabled the \033[0m$CURSOR \033[36mcursor theme of size \033[0m$SIZE\n\033[36mYou need to log out to complete the change:\033[0m";
    
    echo
    read -n 1 -p "Press any key to exit this script..."
    You can run by dragging and dropping the script into a terminal.
    The script has a component to change size but only works with cursor themes that have multiple sizes
    so don't worry about that section.
    Look for any errors when the script is run.
    Attached Images Attached Images
    Last edited by CantankRus; November 1st, 2014 at 01:55 PM.

  9. #9
    Join Date
    Apr 2010
    Beans
    11
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: can't get rid of DMZ-Black/DMZ-White (cursor theme problem)

    Code:
    Your current cursor theme is 'simpleandsoft' 
         1    simpleandsoft
    wc: /home/glen/.cursorlist.txt: No such file or directory
    Enter your new theme selection number:
    i chosed 1 and nothing happens.

  10. #10
    Join Date
    Aug 2014
    Beans
    Hidden!
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: can't get rid of DMZ-Black/DMZ-White (cursor theme problem)

    Last try.

    run each line one after the other in the same terminal....
    Code:
    CURSOR="simpleandsoft"
    sudo update-alternatives --install /usr/share/icons/default/index.theme x-cursor-theme /usr/share/icons/"$CURSOR"/cursor.theme 20
    gsettings set org.gnome.desktop.interface cursor-theme "$CURSOR"
    sudo update-alternatives --set x-cursor-theme /usr/share/icons/"$CURSOR"/cursor.theme
    Last edited by CantankRus; November 1st, 2014 at 10:07 PM.

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •