Results 1 to 2 of 2

Thread: Keyboard shortcut to hide DockBarX

  1. #1
    Join Date
    Oct 2016
    Beans
    1

    Keyboard shortcut to hide DockBarX

    Is there any way to hide the DockBarX using a keyboard shortcut?

  2. #2
    Join Date
    Mar 2017
    Beans
    1,018

    Re: Keyboard shortcut to hide DockBarX

    I don't know an easy way other than use a toggle script to kill and start.
    Tested here in Ubuntu 17.04 this works.
    Test this command both when dockx is running and not running to check it only shows PID when running.
    Code:
    ps aux | awk '/[d]ockx/{print $2; exit}'
    If it works save this as dockx-toggle.sh and make executable.
    Code:
    #!/bin/bash
    
    # click to start, click to stop
    
    if ps aux | awk '/[d]ockx/{print $2; exit}' | grep [0-9] > /dev/null
    	then
    		killall dockx 
    	else
    		dockx
    fi
    exit 0
    Bind the path to the script as a keyboard shortcut.

Tags for this Thread

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
  •