Skip to content
This repository has been archived by the owner on Aug 4, 2022. It is now read-only.

Latest commit

 

History

History
94 lines (71 loc) · 2.76 KB

README.md

File metadata and controls

94 lines (71 loc) · 2.76 KB

DropDownTx

It's a simple scripts that opens a XTerm like a dropdown. I also tried Guake, but i didn't like it because it was always running in the background(it didn't kill it when i closed). This scripts kills the process when a window with the name "DropDownTx" is opened, if it doesn't find a window it will start a new fresh one. This dropdown terminal was made for Lubuntu, it might work also on other linux distibutions.

Demo

DropDownTx

Content:

Features

  • Always stays on top
  • When you close it, it doesn't hide only the window, it ends the process
  • You can change the speed for the drop down effect, check $delay_dd and $step in the script
  • You can customize it, change height, font color, background color. Much more if you know how to use XTerm fields

Features that i want to add:

  • transparent background, without using Compiz(let me know if you have some ideas)

Dependices

What things you need to install the script:

  • wmctrl - window manipulation
  • xrandr - to get the screen size
  • xprop - to get the PID using the ID of a window
  • [optional]xbindkeys - to execute the script using a keyboard shortcut

Script works in:

  • Lubuntu 17.04, 16.10
  • Arch with LXDE

Instructions

Making the script executable:

$ chmod +x terminal.sh

Installing xbindkeys

$ sudo apt-get install xbindkeys

Create default settings for xbindkeys

$ xbindkeys --defaults > ~/.xbindkeysrc

adding keyboard Shortcut, mine is: "Ctrl + <", after that we restart xbindkeys

Add your path to teh script

$ printf '#DropDownTx\n"/path/to/terminal.sh"\nControl + less\n' >> ~/.xbindkeysrc &&

Restarting xbindkeys, so the changes will take effect

$ killall xbindkeys ; xbindkeys

Installing wmctrl

$ sudo apt-get install wmctrl

Errors and solutions:

  • -bash: ./terminal: /bin/bash^M: bad interpreter: No such file or directory **Solution: **
This script was written in Atom, and it may have added other chars so we have to remove them
$ sed -i -e 's/\r$//' terminal.sh

Bugs:

  • 1 . If you have a window opened with this name "DropDownTx7683" it will interfere with the script. It may close that window.

Author

See also the list of contributors who participated in this project.

License

This project is licensed under the GNU General Public License.