Comments (2)
But the real reason I want it is because I have a script that counts down N minutes then plays a BEEP sound, and optionally displays a notification. Obviously I don't want 2 notifications to be shown. Or I can not display a notification, but kitty's notification message just says a command has finished running, but which command?
And here's the script I use:
#!/bin/bash
MINS=0
if [ $# -gt 0 ] ; then
if echo $1 | grep -q '^[0-9]\+$' ; then
MINS=$1
else
echo "Invalid argument: $1"
echo "Usage: $0 <minutes>"
exit -1
fi
fi
for i in `seq $MINS -1 1` ; do
echo "$i minutes remaining"
sleep 1m
done
mpv --really-quiet --no-video /home/joseph/Stuff/beep.wav
if [ $# -gt 1 ] ; then
shift
notify-send -t 2500 "$*"
fi
from kitty.
This is not really possible. kitty has no way to know what
command is running*. That information is in your shell. If you want this
level of customization you should instead implement this in your shell
(IIRC fish shell for example supports this already). Use the kitty
notification protocol to implement the notifications
https://sw.kovidgoyal.net/kitty/desktop-notifications/
- well technically, this could be added to the kitty shell integration
scripts so that the shell informs kitty of the running command when it
informs it of the output, but this is pretty complex to implement.
Also, filtering by command doesnt really make sense. One typically can
run all sorts of complex command lines with chained pipes etc, there is
no simple single "command" to filter by.
from kitty.
Related Issues (20)
- How to spawn a remote shell? HOT 1
- UTF-8 Character Rendering Issue
- [FeatureRequest] Add a confirm config for close window when it has a running process HOT 2
- Add option to specify a color for the scrollback indicator HOT 1
- Unexpected high CPU usage in some circumstances HOT 2
- scroll lock support HOT 7
- `kitten @ action --match` not doing the action on the matched window
- Horizontal scrolling is reversed
- Feature wish: sub-pixel font hinting / anti-aliasing HOT 1
- embedded: contains no embeddable files HOT 1
- Z-index/window stack order isssue on gnome + Arch HOT 3
- Option to add outline around text for readability with low opacity HOT 1
- MacOS --start-as=fullscreen works improperly when launched with spotlight from full-screen apps HOT 5
- detect_urls includes text from next line in the URL when link fills whole row HOT 1
- FR: Support overlay window with customized size and position parameters. HOT 9
- Unicode character picker does not work like gtk ctr+shif+u HOT 1
- feat: cheap as possible NOP remote control command to just check if that window still exists HOT 2
- selection doesn't update when scrolling via the scroll wheel. HOT 3
- Tab Bar Does Not Immediately Redraw After Keyboard Mode Change HOT 3
- List processes that are keeping a tab open when a close is requested HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kitty.