ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Nautilus Custom Scripts

    IT Discussion
    linux nautilus script
    1
    1
    830
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • stacksofplatesS
      stacksofplates
      last edited by stacksofplates

      So Nautilus will let you create custom scripts to run through it. You need to create this directory:

      mkdir -p ~/.local/share/nautilus/scripts
      

      Then in there, create your scripts. Here's a sample that spits out the number of items in a directory:

      #!/bin/bash
      
      number=$(ls -l | tail -n +2 | wc -l)
      
      
      zenity --title "Number of Files" --notification --text "There are $number items in this directory"
      

      Save this as an executable and then in Nautilus we can run it against a directory.

      0_1489335570115_script.png

      Then we get this:

      0_1489335584238_notification.png

      I don't know how many uses this will have since it's usually easier to do this through cli but it's a nice feature.

      1 Reply Last reply Reply Quote 2
      • 1 / 1
      • First post
        Last post