mirror of
https://github.com/webdev23/shelix.git
synced 2024-10-03 23:07:47 +03:00
31 lines
1.6 KiB
Plaintext
31 lines
1.6 KiB
Plaintext
|
#!/usr/bin/bash
|
||
|
# ╔-----------------------------------------------------------------------╗
|
||
|
# ║ ║
|
||
|
# ║ This file is part of the Shelix IDE. ║
|
||
|
# ║ Copyright (C) 2024 NVRM webdev23 https://github.com/webdev23 ║
|
||
|
# ║ ║
|
||
|
# ║ This program is free software: you can redistribute it and/or modify ║
|
||
|
# ║ it under the terms of the GNU General Public License as published by ║
|
||
|
# ║ the Free Software Foundation, either version 3 of the License, or ║
|
||
|
# ║ (at your option) any later version. ║
|
||
|
# ║ ║
|
||
|
# ║ This program is distributed in the hope that it will be useful, ║
|
||
|
# ║ but WITHOUT ANY WARRANTY; without even the implied warranty of ║
|
||
|
# ║ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ║
|
||
|
# ║ GNU General Public License for more details. ║
|
||
|
# ║ ║
|
||
|
# ║ You should have received a copy of the GNU General Public License ║
|
||
|
# ║ along with this program. If not, see <http://www.gnu.org/licenses/>. ║
|
||
|
# ╚-----------------------------------------------------------------------╝
|
||
|
|
||
|
|
||
|
# By default, timeout in 3 seconds
|
||
|
# Or pass as first argument (accept decimals)
|
||
|
|
||
|
# notify "OH WOW" 0.8
|
||
|
|
||
|
default_timeout="3"
|
||
|
timeout=${2:-$default_timeout}
|
||
|
|
||
|
tmux popup -E -h 3 -w 55 -x 190% -y 0 "echo $1; sleep $timeout ; exit"
|