jaepenny.blogg.se

Guake 3
Guake 3











guake 3 guake 3
  1. #GUAKE 3 INSTALL#
  2. #GUAKE 3 CODE#

Just try the key combination you just provided and terminator will appear in front of you. Click on the second column, where it should say ‘Disabled’ and the press the key combination you want for toggling terminator e.g F12

  • You will see a new row with two columns with the name you just set in the first column.
  • – In the command field enter /home/ /toggle_visibility.sh terminator "^/usr/bin/python /usr/bin/terminator$" where enter your own username. – In the name field enter anything you like.
  • In the dialog box that will appear enter the following:.
  • You will see a button with the + sign right next to the list, click that.
  • and on the left list, click on custom shortcuts.
  • After that, click on the tab ‘Shortcuts’.
  • guake 3

  • In the newly appeared window, click on the ‘keyboard’ icon that is in the category ‘Hardware’.
  • Go to ‘System Settings’ either by clicking on the menu on the top right corner that looks like a light bulb or by issuing the following in a terminal unity-control-center to start the unity control center.
  • #GUAKE 3 INSTALL#

    We need to do that in order to install any missing dependencies for the tool.įinally, you need to create a custom shortcut that will call the script using the key combination you like at any point. Then, execute ~/toggle_visibility.sh in your terminal once. If it is minimized it will be raised as well.Īfterwards, you need to make the script an executable so you should issue chmod +x ~/toggle_visibility.sh to do that. #We set the focus to the application we passed as parameter. #We minimize the active window which we know in this case that it is the application we passed as parameter. In the other case, we will minimize the application.Įcho -n "$FULL_COMMAND instance found - " įOCUSED=$(xdotool getactivewindow getwindowpid) Įcho "It was focused so we are minimizing it" #We will get the PID of the application that is currently focused, if it is not the application we passed as parameter we will change the focus to that. #Since the application has a live instance, we can proceed with the rest of the code. #If the application is not running, we will try to launch it.Įcho "$FULL_COMMAND not running, launching it." PID=$(pgrep -u `whoami` -f "$FULL_COMMAND" | head -n 1) #Checking if the application name provided by the user existsĮcho -e "$APPLICATION does not seem to be a valid executable\nTerminating" #Checking that all dependencies are met, since we cannot proceed without them.ĭeclare -a DEPENDENCIES=("xdotool" "wmctrl") Įcho -n "Checking if $DEPENDENCY is available" Įcho -n "$DEPENDENCY is missing, would you like to try and install it via $MANAGER now? (default is Y): " #Usually it will control the window with the smallest PID. #Please note it will work on the first match, so if there are multiple instances of an application it would be a random window of them the one to be affected. #The purpose of this script is to allow the user to toggle the visibility of (almost) any window. When prompted if you want to save press ‘Y’ and hit enter.

    #GUAKE 3 CODE#

    You can also use nano, from a terminal issue nano ~/toggle_visibility.sh, then paste the code and hit CTRL+X to exit. Using a text editor, create in you home folder a file named nano ~/toggle_visibility.sh and copy there the contents of the following chunk of code. In Ubuntu you can install the needed packages from the official repositories using sudo apt-get install xdotool wmctrl. Our proposal will launch terminator if there is not instance running. We propose an alternative solution to making terminator act like guake that requires two additional packages: xdotool and wmctrl. 24 April 2016 in Bash / GNU/Linux tagged bash / GNU/Linux / guake / howtos / quake / terminal / terminator / wmctrl / xdotool by Tux













    Guake 3