trunkmaster / nextspace

NeXTSTEP-like desktop environment for Linux
https://trunkmaster.github.io
GNU General Public License v3.0
1.9k stars 69 forks source link

Nextspace command line tools #337

Open onflapp opened 4 years ago

onflapp commented 4 years ago

Add two command line utilities:

nxpasteboard - gives you ability to do copy & paste and invoke system services directly from command line --copy copy text from standard input to the pasteboard --paste paste text from the pasteboard to standard output --service call service with text from standard input

for example: echo "$PWD" | nxpasteboard --service "Terminal/Open shell here"

nxworkspace - invoke Workspace commands from command line

--open open path in Workspace --open open path with specific application --activate launch or activate application

I will add additional functionality (e.g. --hide / --hide-all) as it becomes available

trunkmaster commented 4 years ago

@onflapp nice idea, thank you. I have some thoughts regarding these tools.

nxpasteboard: I'd like to have something like this https://www.manpagez.com/man/1/pbcopy. I've noticed 2 key points: it's 2 commands with quite clear short names and ability to specify pasteboard content type.

It seems like nxworkspace duplicates functionality of GNUstep's gopen tool. If it's extention to gopen - it should go into appropriate place (GNUstep).

General notes:

onflapp commented 4 years ago

I agree nxpasteboard should aspire to have the same capabilities as pbcopy and more

gopen closely follows Mac/NextStep open command, the idea behind nxworkspace is to provide functionality specific to NEXTSPACE. My wish list: