Jump to content

nsarthur

Member
  • Posts

    3
  • Joined

  • Last visited

Posts posted by nsarthur

  1. Help

     

    I always forget which keywords and shortcuts all the workflows I have installed use. So I made this workflow.

     

    It's like a Help Page for Alfred. Type "help" for an overview of all your workflow commands.

     

    screenshot.gif

     

    Usage

    help             ? List available commands
    help <query>     ? Filter available commands
    enter            ? Execute the selected command

    Alternatively, use "helptitle" to show the commands by title instead of keyword.

     

    Download link | GitHub 

     

    (I had trouble uploading this to Packal)

     

     

  2. Awesome script!

     

    I made a small change to display the current Bluetooth status when running the command (I have the Bluetooth icon hidden, so I need that :))

     

    Instead of the bluetooth keyword component use a script filter with the following contents:

     

    Keyword: bluetooth (or anything you want), no arguments

    Placeholder Title: Toggle Bluetooth (or anything you want)

     

    Script:

    BT=$(./blueutil status)
    
    cat << EOB
    <?xml version="1.0"?>
    <items>
    
    <item uid="com.petrmanas.btwftoggle" arg="$BT" valid="yes" type="file">
    <title>Toggle Bluetooth</title>
    <subtitle>$BT</subtitle>
    <icon type="file">icon.png</icon>
    </item>
    
    </items>
    
    EOB
    
    

    Connect with the existing "Run Script" component. Enjoy!

×
×
  • Create New...