dotfiles icon indicating copy to clipboard operation
dotfiles copied to clipboard

[FEATURE] Create drop-down terminal using DropTerminal.sh from Jak's dotfiles

Open dwilliam62 opened this issue 1 year ago • 3 comments

Is your feature request related to a problem? No

This bash script doesn't use pyprland nor has any dependencies other than kitty

Dropterminal.sh

When you start it you need to do this:

# Drop Down terminal
exec-once = path/to/script/Dropterminal.sh kitty &

The script allows you to set size, transitions, and margins

It been tested on debian, ubuntu, Arch, NixOS, gentoo, OpenSuse, and Fedora.

For anyone who wants to try it, you need to add a binding to toggle it. I.e.

bindd = $mainMod SHIFT, Return, DropDown terminal, exec, $scriptsDir/Dropterminal.sh $term
Image

Describe the solution you'd like

I think this would go nice with your side panel letting that be whatever user wants but not lose quick terminal access. I use it a lot for builds, etc. I can access it from any workspace to get current status. Also my kitty config supports tabs, to I can monitor quite a bit from that one drop down.

dwilliam62 avatar Dec 05 '25 03:12 dwilliam62

This is great. I will test it... Do you know a way to set everything behind the drop terminal to blur? That the dropdown looks kind like a modal window?

mylinuxforwork avatar Dec 05 '25 10:12 mylinuxforwork

This is great. I will test it... Do you know a way to set everything behind the drop terminal to blur? That the dropdown looks kind like a modal window?

I don't know, sorry. yes it's a terminal window that slides down from top. I never thought to blur it, b/c sometimes I want to paste something I found or want to test. So I pop down the terminal. Or when I am rebuild gentoo, I start the emerge and can pop down the terminal to check progress.. It's something I use every day

dwilliam62 avatar Dec 05 '25 10:12 dwilliam62

I did it this way for myself First I created the following file: ~/.mydotfiles/com.ml4w.dotfiles.stable/.config/custom/script/kitty-toggle.sh

In this file I wrote

#!/bin/bash
clear
if hyprctl clients | grep -q "class: dropdown"; then
    hyprctl dispatch closewindow class:dropdown
else
    kitty --class dropdown &
fi

then I add a keybinding to /home/rainer/.config/hypr/conf/keybindings/default.conf

bind = CTRL, F12, exec, ~/.mydotfiles/com.ml4w.dotfiles.stable/.config/custom/script/kitty-toggle.sh

At least I wrote this in my /home/rainer/.config/hypr/conf/ml4w.conf

# Guake Like Terminal
windowrulev2 = float, class:^(dropdown)$
windowrulev2 = size 80% 50%, class:^(dropdown)$
windowrulev2 = move 10% 4%, class:^(dropdown)$
windowrulev2 = animation slide, class:^(dropdown)$
windowrulev2 = stayfocused, class:^(dropdown)$

And now I can activate a guake style dropdown terminal

Image

tetam01 avatar Dec 09 '25 22:12 tetam01