Jump to content


Photo

yakuake drop-down terminal for windows


  • Please log in to reply
No replies to this topic

#1 moparisthebest

moparisthebest
  • Members
  • 1 posts

Posted 16 July 2012 - 06:57 PM

At home I only use Linux with KDE, and I love the yakuake terminal, it has plenty of nifty features I miss when forced to use windows at work.

First let me say that EVERY meaningful variable/hotkey in this script can be set or disabled up top, I'll mention the defaults in the features though.

These include:
1. Pops down/up on hotkey (default F12)
2. Docked at specific location on screen (default top/center) with specific width and height of screen (default 80%/60%)
3. Hides when focus lost (toggle-able default F11)
4. One button copy&paste or just paste (default middle-mouse)
5. Also it hides the Tray Icon for the app, I'd like it to hide the Task Bar Button when active as well, but the code I found to do that didn't work for me.

I run this with Console2 running cygwin, but there is nothing specific in the script, it should be able to do all of these features with ANY application.

The only version of windows this was tested on is Windows 7 64-bit, it *should* work on others, but I don't know.

Let me know if you use it, and/or if you can think of a feature enhancement or improvement to it.

These are the options if you are interested, at the top of the script:
; window title to look for (REQUIRED)
; see http://www.autohotkey.com/docs/commands/SetTitleMatchMode.htm for options
win_title = (Mark )?(bash|.*Console2)
title_match_mode = RegEx

; absolute path to program to start if above title doesn't exist (REQUIRED)
program = C:\Program Files\Console2\Console.exe

; hotkey to open/hide/unhide on (REQUIRED)
hotkey = F12

; hide if the application loses focus (check every this many milliseconds while app is focused)
hide_focus_lost_period := 500 ; set to 0 to disable
hide_focus_toggle_hotkey = F11 ; set to 0 to disable
;hide_focus_toggle_hotkey := false ; uncomment to disable

; one-click copy/paste options
; with yakuake you could highlight text, press the middle mouse button, and have it pasted into the terminal
; hotkey to copy/paste on
copy_paste_button = MButton
copy_command = ^x
paste_command = +{Insert}
;copy_paste_button := false ; uncomment to disable

;#NoTrayIcon ; uncomment this if you don't want the AHK tray icon showing for this script

; window resizing options
win_width_percent  = 80 ; set to 0 to disable
win_height_percent = 60 ; set to 0 to disable
diff_allowed       = 5  ; difference allowed between new and old dimensions to skip resizing window (stops jitter)

; window position options
y_position = top    ; valid values are 'top, bottom, center', anything else doesn't change the y position
x_position = center ; valid values are 'left, right, center', anything else doesn't change the x position