My start and stop oneko script

ToddAndMargo ToddAndMargo at zoho.com
Wed Aug 20 03:22:50 CEST 2025


On 8/18/25 8:33 PM, Michael De Roover wrote:
> Hi Todd and Margo,
> 
> I do not have oneko or xfce installed, but am reasonably proficient in 
> bash. The code looks reasonably simple so far. No promises, but I’ll try 
> to take a closer look at it once I’m in front of “not a fruit phone”.
> 
> Could you list the expected values of ‘kitty.sh list’ (expected output, 
> current find /usr/share -maxdepth 3 …, and what the ListThemes() 
> function currently outputs)? Please be precise, I’m doing this blind and 
> will only have those text blobs to work with.
> 
> I would also like to draw your attention to this line:
> 
> if [ "$Th" != "default" ]; then
> 
> It would seem that $Th is undefined.
> 
> Met vriendelijke groet,
> Michael De Roover
> 

Hi Michael,

Thank you for the second pair of eyes.   I have
corrected
      if [ "$Th" != "default" ]; then
to
      if [ "$Theme" != "default" ]; then

I can not re-paste it to vpaste.net as it is
down at the moment.


Here is what list is suppose to do:
  kitty.sh list

Available Mouse Themes (note that they are all lower case):
     adwaita
     mate
     mate-black

The objective it to match the available mouse
themes shown in setting mouse and touchpad.
(It does.)

The "find" is me "guessing" at what themes provides
mouse themes.  The proper way is the way Mouse
and Touchpads does it, but I was never able to
figure it out from the source code, so I guessed.

I am looking for themes with a cursors
directory.   (Only those with cursors directory
contain mouse themes.)

$ find /usr/share -maxdepth 3  -iname cursors
/usr/share/icons/mate-black/cursors
/usr/share/icons/Adwaita/cursors
/usr/share/icons/mate/cursors


A greater depth shows

$ find /usr/share -maxdepth 4  -iname cursors
/usr/share/icons/mate-black/cursors
/usr/share/icons/Adwaita/cursors
/usr/share/icons/mate/cursors
/usr/share/inkscape/icons/Dash/cursors
/usr/share/inkscape/icons/multicolor/cursors
/usr/share/inkscape/icons/hicolor/cursors

Now here is the rub, "inkscape" does not show
up in the Mouse and Touchpad settings, even though
the inkscape directories also contain the required
`index.theme` with the entry `[Icon Theme]`.

-T

So I limited the depth to 3.






More information about the Xfce mailing list