trabucco1.2/ 0000755 0001750 0001750 00000000000 14157420215 012134 5 ustar salvo salvo trabucco1.2/CHANGELOG 0000644 0001750 0001750 00000000345 14157420215 013350 0 ustar salvo salvo 1.2
* Find more icons
* Merge with ynew and add support to run ynew from trabucco
1.1
* Find more icons
* Show UI to select a different shortcut, if the default one is taken
* Able to reload configuration
1.0
* Initial release
trabucco1.2/qml.qrc 0000644 0001750 0001750 00000000127 14157420215 013434 0 ustar salvo salvo
main.qml
trabucco1.2/ynew/ 0000755 0001750 0001750 00000000000 14157420215 013116 5 ustar salvo salvo trabucco1.2/ynew/ynew.1 0000644 0001750 0001750 00000001166 14157420215 014166 0 ustar salvo salvo .TH "ynew" "1"
.SH "NAME"
ynew \(em yakuake tab launcher.
.SH "SYNOPSIS"
.PP
\fBynew\fR COMMAND
.SH "DESCRIPTION"
.PP
ynew launches a new tab in yakuake, setting a name for it.
.br
For example, we can ssh into a server called "alfio" and have the session into a yakuake tab named "alfio". Or we can have "top" running in a tab named "top".
.br
When calling ynew with a command name that doesn't exist yet, an editor is opened to write the script. For example "exec ssh alfio".
.br
The successive times a new yakuake tab is created and the command is executed into that tab.
.SH "Files"
Commands are stored under $HOME/.ynew
trabucco1.2/ynew/ynew 0000755 0001750 0001750 00000001337 14157420215 014032 0 ustar salvo salvo #!/bin/bash
if [ -z "$1" ]; then
echo Usage: $0 scriptname
exit 1
fi
title=$1
script=~/.ynew/$1
if ! test -e $script
then
echo command does not exist
read -p "add a new command? [Y/n]" a
if test -z "$a"
then
a="y"
fi
if [ "$a" = "y" ] || [ "$a" = "Y" ]
then
mkdir -p ~/.ynew
echo "#!/bin/sh" > $script
chmod u+x $script
ED=${EDITOR:-editor}
if command -v $ED > /dev/null; then
$ED $script
else
vi $script
fi
fi
exit 0
fi
newsession=$(qdbus org.kde.yakuake /yakuake/sessions org.kde.yakuake.addSession)
qdbus org.kde.yakuake /yakuake/tabs org.kde.yakuake.setTabTitle $newsession $title
qdbus org.kde.yakuake /yakuake/sessions org.kde.yakuake.runCommandInTerminal $newsession "$script ; exit"
trabucco1.2/ynew/README.md 0000644 0001750 0001750 00000000754 14157420215 014403 0 ustar salvo salvo ynew
====
This is a rather simple script to open a new tab in yakuake, set the name of
the tab, run a script, and close the tab when the script terminates.
For example, if you want to ssh to a server called `alfio`, you can run
`ynew alfio`.
An editor will open, and you can type your command, for example `ssh alfio`.
After saving the script, running `ynew alfio` again, will open a new tab named
*alfio* which will contain the ssh session.
Script for bash completion is also provided.
trabucco1.2/ynew/autocomplete/ 0000755 0001750 0001750 00000000000 14157420215 015617 5 ustar salvo salvo trabucco1.2/ynew/autocomplete/ynew 0000644 0001750 0001750 00000000464 14157420215 016530 0 ustar salvo salvo _ynew_tab_complete () {
local cur prev opts
COMPREPLY=()
cur="${COMP_WORDS[COMP_CWORD]}"
words=''
if [ -d ~/.ynew ] && [ $COMP_CWORD -le 1 ] ; then
words=$(ls ~/.ynew)
fi
COMPREPLY=( $(compgen -W "${words}" -- ${cur}) )
return 0
}
complete -F _ynew_tab_complete ynew
trabucco1.2/settings.ui 0000644 0001750 0001750 00000013767 14157420215 014351 0 ustar salvo salvo
Settings
0
0
480
302
Dialog
-
0
Sources
-
<html><head/><body><p>Select the kind of content you want to search.</p></body></html>
-
.desktop files
-
Bookmarks
-
Web shortcuts (KDE)
-
ynew
-
Qt::Vertical
20
459
Shortcut
-
Modifier
cmbModifier
-
-
Key
-
-
UI
-
Opacity
spnOpacity
-
0.100000000000000
1.000000000000000
0.100000000000000
-
Duration (ms)
spnDuration
-
15000
100
-
Qt::Horizontal
QDialogButtonBox::Cancel|QDialogButtonBox::Ok
tabWidget
chkDesktop
chkBookmarks
chkSearch
chkYnew
cmbModifier
cmbKey
spnOpacity
spnDuration
buttonBox
accepted()
Settings
accept()
260
295
157
274
buttonBox
rejected()
Settings
reject()
328
295
286
274
trabucco1.2/CODE_OF_CONDUCT.md 0000644 0001750 0001750 00000006342 14157420215 014740 0 ustar salvo salvo International code of conduct
=============================
No USA cultural imperialism allowed
-----------------------------------
This project welcomes every contributor from any background. For this reason we can't let the USA and USA influenced politically correct culture dictate conduct for everyone. Diversity is beautiful, let's not ask of people to forgo their culture to contribute.
Achieving social justice is important. Being superficial about it only to feel morally superior is not the way to achieve it and is not tolerated here.
The code of conduct only pertains this project
----------------------------------------------
This document only applies to the project and the communication channels.
It does not apply to anything any contributor might say or do outside of project channels.
It only applies to contributors. People whose only contribution is a code of conduct complaint are not contributors.
Language
--------
Try to be nice and constructive.
Harassing and intentionally offending other people is not allowed.
Foul language is allowed.
People often contribute to this project in their own time and are not paid, for this reason asking contributors to behave "professionally" makes no sense. Hobbies do not require professionality.
Jokes are allowed.
It can happen to unintentionally offend someone. Do not reiterate the offensive behaviour, provided that the request is reasonable.
People who are easily offended by things not intended to be offensive must try to become more tolerant towards other people, other cultures and their ways of expressing themselves.
For example, a person might consider offensive the sight of a woman with or without a headscarf. This person needs to try to become more tolerant to other people's culture.
It is not allowed to be offended on behalf of others. Please do not presume to know what others are thinking.
Examples of allowed language:
* This software is retarded
* This program runs like shit
* This bug is annoying
Examples of disallowed language:
* You are retarded
* You are shitty and so is your program
Skill discrimination is absolutely fine
---------------------------------------
Unlike other code of conducts, this allows skill discrimination.
Everyone is welcome to contribute according to their skill level and more experienced contributors are encouraged to act as mentors.
It is nice if they have time and patience to mentor potential contributors, but since time is a limited resource, it is also fine to turn down low quality and low effort contributions with little explaination.
New contributors are expected to respond to comments and be willing to improve the quality of their contribution.
Conflict resolution
-------------------
This code of conduct is inevitably vague. Follow the intention rather than the letter.
The final word rests with the project owners or their delegates.
Changes to license
------------------
It is not allowed to ask for license change and complain about copyleft.
If you disagree with the license, feel free to start your own project from scratch without getting in touch and never look at the source code, to avoid copyright issues.
See also
--------
* International code of conduct: https://github.com/ltworf/international_code_of_conduct
trabucco1.2/extras/ 0000755 0001750 0001750 00000000000 14157420215 013442 5 ustar salvo salvo trabucco1.2/extras/trabucco.png 0000644 0001750 0001750 00000601307 14157420215 015761 0 ustar salvo salvo PNG
IHDR x pHYs + IDATxwe}9 $A;@hծmi]jײLEdJ-.AEJ*VkSYٮ^
tI[Hsxw_f5 "Xׅ9s~;((((((((((((((((((((((((((((((((((
~ EQv/Vr^Ms Bq^R^[WEQa=R?@G %@ * PEyC$l2
Y-ƫpk
EQ^@K>\z8G4)Nh
EQ^g~CAi?)%i#S"ZPNP(į=@}HBP) $ (=(i7q4[t<5!|=B * PEyZ;6.#vm)b1A-HuWyQ(ky)5 )y 19~M*+)%
|ǯ- @Q5Wޗ/j⇁wKIq2kSX n)%k\-aD
EQ^e%)? ~C>]ט(" t˦0Dfr'hz (JLCjǐ| c\zyu:U +vs}Rʁ.U EQ҅T"@
1n@%ks;J`F$3
%(duh_UI?L (' @Q6l@ !NR΅
Vꥧ鷛M#;5Can FȽb`ؾ
T (
B)x$]ghB`hH~j^&7Jg(/ =ߣI~t4 AgQr
EQ^!kIdh|)"n7T)BF0ULSY>aZԯ]jf)/pHYA{ع0ֽ/38E (/KVKG#}n1;Y` +fNNT"l*f2E0
X6Ņe|qs$ P'*P(sӘw
Cg~̙4O3phAa~4Q\:Q FTJi;ax컩6x* PEy>>[H!+|`2
f&Kܵ:C*wۤKd&qkt D6Oqqò.QbG2e2I4