Manjaro Worker - введение

Worker - введение

From Manjaro
Revision as of 09:16, 25 January 2023 by Krotesk (talk | contribs) (Created page with "Вы можете настроить пользовательские кнопки Path (путей) (банк кнопок Path - это левый столбец в осно...")
Other languages:
English • ‎Türkçe • ‎русский
A.Worker.Setup.png


Обзор

К сожалению, документация на сайте Ральфа Хоффмана (он является создателем Worker, среди прочих приложений) неполная, а некоторые части, по крайней мере, несколько устарели. В основном, Вам самим придется решать большую часть вопросов, связанных с конфигурацией Worker, не имея под рукой руководства. Тем не менее, графический интерфейс Worker Configuration Manager довольно прост в объяснении.


Worker.configuration.main.png


Экран конфигурации Worker, показанный выше, даст вам представление о типах опций конфигурации, которые доступны в нем. Worker - это чрезвычайно функциональный файловый менеджер, который, возможно, был вдохновлен блестящим файловым менеджером для Amiga - Directory Opus 4.** Джонатана Поттера. Во многих отношениях Worker превосходит возможности DOpus, хотя он не обладает внутренней многозадачностью в такой степени, как DOpus.

Ральф уже много лет занимается разработкой Worker. Вы можете познакомиться с его возможностями на этой странице.


Установка Worker

Worker доступен в AUR в виде пакета worker. Вы можете установить его в вашем любимом графическом менеджере пакетов или с помощью команды:

user $ pamac build worker COPY TO CLIPBOARD



Что может сделать этот Filemanager под названием Worker?

Worker обычно устанавливается с довольно простой настройкой кнопок. Затем пользователь должен сделать Worker таким, каким он хочет его видеть. Это делается с помощью панели конфигурации Worker. Ее можно найти, нажав на кнопку C - Configuration в левом верхнем углу окна Worker, она находится рядом с A - About.

Worker невероятно многофункционален, ниже приведен краткий список некоторых вещей, которые может делать Worker:

  • Имеет кнопки, которые вы можете настроить (количество тоже) для запуска встроенных команд.
  • Запуск внешних приложений, которые вы настроили для работы с одним или несколькими файлами, которые вы выбрали в одном из списков файлов Worker.
  • Worker может вызывать приложения, не имеющие никакого отношения к файлам, которые отображаются в списке файлов Worker.
  • Вы можете запускать короткие или сложные сценарии, созданные вами или другими людьми.
  • Комбинировать любое количество вышеупомянутых различных типов команд для последовательного выполнения.

Вышеизложенное едва касается того, что можно настроить в Worker. Он работает очень быстро и не имеет практически никаких других зависимостей, кроме X.org.

Нестандартные задачи, от очень простых до чрезвычайно сложных - все они подвластны Worker.


Выбор цветов и шрифтов

Большое количество скриншотов Worker можно найти здесь:[1]

Как бы ни были информативны скриншоты, приведенные по ссылке выше, они не показывают всего того, что можно сделать с Worker в цветовом отношении. Использование различных цветов в соответствии с вашими вкусами и для того, чтобы сделать Worker более удобным в использовании и более практичным, так как вы можете использовать определенные цвета для нужного эффекта (особенно там, где есть опасность, как в случае таких команд, как DELETE, Reboot, Shutdown и любых кнопок, которые вы настроили для использования sudo или привилегий root тем или иным способом. Первый скриншот на этой странице является достаточно хорошим примером использования цветов подобным образом.

Помимо возможности выбора основных цветов интерфейса, как показано на следующем изображении, вы также можете установить количество используемых цветов, а также изменить цвета по своему усмотрению.


Worker.user.interface.colours.png


Когда вы устанавливаете Worker - Вы можете выбрать шрифт и его размер, которые хотите использовать. Выбор шрифта кажется самой доисторической частью Worker, хотя после этого редактирования выбор шрифта стал намного лучше, чем был. К счастью, если вам хочется сделать это, то после того, как вы сделали это один раз, в дальнейшем не так уж много нужно сделать для изменения размера шрифтов. См. эту страницу документации Worker для получения дополнительной информации по теме выбора размера шрифтов Worker: [2].


Worker.font.settings2.png


Пути и места с закладками

Вы можете настроить пользовательские кнопки Path (путей) (банк кнопок Path - это левый столбец в основном банке кнопок), у вас может быть столько банков кнопок путей, сколько захотите, вы перебираете эти банки с помощью правой кнопки мыши (ПКМ).


Worker.path.button.bank.config.png


Whilst we are on the Path subject, I should mention that you can also use bookmarks to bounce between oft used locations (paths) in your system. The tabs go across the top of each file list window, you move to a list of files in a different part of your system by hitting the tab that will show that list with your mouse pointer & the left mouse button (LMB).


Настройка пользовательских кнопок

You also can set up the Worker command button bank(s) to suit you. Choose how many rows of them and how many banks (each bank will have the same number of buttons) as well. You cycle to the next main button bank by hitting the bottom bar in the Worker window - it holds the date/time, free RAM, swap usage - though this is somewhat configurable too.


Worker.button.panel.config.png


It is possible to use the buttons that came as part of the initial Worker install, though it is more common to edit your config to suit your needs. When you see a button in a screenshot that has a "dog eared" top right corner, that means that if you use your RMB on it, you will have access to another button option that is hiding underneath. (You could for example have the top button saying Edit for editing existing files, & the button accessed via the RMB, underneath, saying Edit New for creating new files.)


Worker.configure.button.own.command.png



Worker.configure.button.own.command.Options.png


Использование внешних приложений в файлах

Even though Worker comes with inbuilt text & image viewing abilities, you can also set Worker up to use more powerful external programs. For exmaple, you could use Geegie to view images. By associating Geegie with the various types of image file types available (using the Worker Configuration GUI), when you double click on an image file in the Worker display, Geegie displays it(you could set different image types to be opened by different image viewing or editing programs if you had the need).


Worker.file.type.config.png


You can then view all of the images in that directory by scrolling the mouse wheel, or tell Geegie to go full screen and play a slide show of the images, or do whatever else Geegie will allow you to do with any of the images in that directory.

If you RMB click on the F3 - Show Pics button (yes you can easily set up function keys too), you will see, Edit Pics (the RMB buttons are all in different colours than the top LMB accessed buttons). If you have an image file highlighted in Worker, then your editor of choice will open up with the highlighted file ready to edit.

This can be done for any type of file on your system that you have a program that you want to use to edit/view it. The File Type list included in the Worker Configuration GUI (the list is part shown in an the preceding image) is huge, very highly configurable (something like fourteen different custom user options can be set up) plus you can add custom file types quite easily.

For example, you could use Evince for .pdf files, Firefox for .html files and Leafpad for .txt files. It is possible to setup sudo Leafpad buttons for both creating New files & of course to work on existing files. So you can select a config file in the /etc and then use the Worker sudo Leafpad button on it, which will cause Worker to throw up a terminal window where you have to input your sudo password, then the config file from /etc will be showing in Leafpad & available for me to edit & then save the changes.

You can of course use the buttons to call programs that have nothing to do with any of the files in your Worker display. You can run scripts, simple or complex from a button, as normal user or with root privileges, you can combine applications & scripts & most anything else you can come up with to work in sequence. It is up to your imagination to do what you want to do with Worker.


Worker создан для тех, кто любит настраивать

This is a part of what I really love about Worker. You can make Worker do what you want it to do & not have to put up with having to do things the way someone else wants you to do it.

This is all fine & good, unless you are someone who loves working with windows & icons. Under those circumstances you would find Worker to be just exactly what you don't want (you may even think that Worker is pre-historic!).


Backup your worker config & use it elsewhere

You can save your custom ~/.worker/config file (it is a REALLY good idea to keep a backup of this file). Apart from saving your configuration from being lost to corruption or whatever, you can transfer your ~/.worker/config file to other installations of Linux. You can also edit the ~/.worker/config file directly with a text editor, which can be useful sometimes.


Прямое редактирование конфигурационного файла Worker

Например, если Вы перенесете файл конфигурации Worker на другую систему, использующую монитор с меньшим разрешением, то при запуске Worker с перенесенной пользовательской конфигурацией на этой машине, отображение будет очень неправильным, что сделает Worker практически непригодным для использования. Возможно, Вы не сможете получить доступ к GUI конфигурации для изменения размера шрифта, так как большие шрифты сделали это невозможным (невозможно увидеть/получить доступ ко всем необходимым частям GUI конфигурации Worker).

Поэтому Вы можете напрямую отредактировать файл ~/.worker/config с помощью текстового редактора, прокрутить вниз до раздела шрифтов и изменить размеры. Сохраните его, перезапустите Worker, зайдите в графический интерфейс конфигурации Worker и настройте/подстройте конфигурацию под новую машину.

Если Вы столкнетесь с этой проблемой, то нужно отредактировать именно эту часть файла ~/.worker/config.

 fonts {
        globalfont = "-*-verdana-bold-r-normal-*-14-*-*-*-*-*-*-*";
        buttonfont = "-*-verdana-bold-r-normal-*-14-*-*-*-*-*-*-*";
        leftfont = "-*-verdana-bold-r-normal-*-14-*-*-*-*-*-*-*";
        rightfont = "-*-verdana-bold-r-normal-*-14-*-*-*-*-*-*-*";
        textviewfont = "fixed";
}
        xftfonts {
        globalfont = "Sans-18";
        buttonfont = "Sans-20";
        leftfont = "Sans-24";
        rightfont = "Sans-24";
        textviewfont = "Sans-20";
}

Посмотрев выше - Вы увидите, что именно в разделе xfgfonts находятся большие шрифты размером 18 -> 24, поэтому просто сделайте все эти числа соответствующим образом меньше, а затем можете использовать графический интерфейс конфигурации рабочей машины для точной настройки импортированных параметров в соответствии с новой машиной.



Заставить Worker работать так, как вы хотите

The above will hopefully give you more of an idea about how Worker functions, you have to make Worker your own, this doesn't happen quickly, but it does get easier once you have understood the basics. You really have to get into the Worker Configuration GUI & have a look around to start to get familiar with it.

For setting up buttons, look at how other buttons are setup, you will start to see that there are certain options that are native to Worker (like the {f} in the coming example) that are commonly used when you want to open a file that you have highlighted in the Worker display. The following example (is much clearer & simpler than it looks here, when you are actually looking at it in Worker running on your own system).



Опции, опции...

Worker.button.config.Option.flags.png


There are currently 47 Option flags that can be seen when you hit the O at the end of the program: field, where you enter in your own command as seen in the above two examples, it is right before leafpad .

Of those 47 Options, you probably won't to need to use all of them. When you look at what the options can do, you will see that you can get very sophisticated but it isn't a requirement.

The previous image shows some of those 47 Option flags in the window on the right hand side of the image.


Встроенные команды

Worker currently also has 61 commands built into it. They are listed when you wish to create a new button (and choose the Add Command button. The following screenshot shows some of those 61 commands.


Worker.built.in.commands.png


Последовательность команд

You can also have more than one command listed in sequence. Meaning that when setting up a button to do what you want, after the creation of a command, instead of OK'ing out of that window, you can add another command. You can continue to repeat this as desired.

The above image already has a command (it uses Geegie to show an image that has been selected in one of Worker's file lists), you can add more commands if you need to sequence them for some reason. The commands can be any mixture of both built-in commands and external programs.


Резюме

Файловый менеджер Worker - это, конечно, не тот инструмент, который каждый захочет установить и использовать. Но для тех, кому он подходит, познает его больше при использовании, тем больше настраиваем его так, как нужно.

Очень легко изменить приложения, которые мы вызываем из Worker, которые используются для работы с любыми файлами любым выбранным нами способом. Worker не возражает, это то, для чего он создан (ну или часть того, для чего он создан).


Смотрите также

Вы можете разместить любой связанный отзыв в соответствующей теме на форуме

Cookies help us deliver our services. By using our services, you agree to our use of cookies.