Nitrogen linux что это

Обновлено: 06.07.2024

Gnome, KDE and XFCE users will have no problem changing the wallpaper on their desktop. However, if you are using a lightweight desktop manager such Openbox or Fluxbox, you will find that there is no way that you can set the wallpaper for your desktop. In this case, Nitrogen will come in handy.

Nitrogen is a simple, lightweight application that allows you to change the background of your desktop. Some of its key features include support for Multihead and Xinerama, a recall mode that can remember the last wallpaper set and command line mode for script use.

If you are using Ubuntu 8.10 (with Openbox) or any other debian-based system, here is how you install and configure Nitrogen.

In your terminal,

add this two lines to the end of the file.

Press Ctrl + O to save the file and Ctrl + X to close the file.

This should install Nitrogen on your system.

Setting background wallpaper

In the terminal, type

A window will pop up showing all the wallpaper in the folder. Pick the one that you want to set as background image and click Apply.

nitrogen

To get it to autostart everytime you log in, in your terminal,

Paste this into the end of the file

Never Miss Out

Receive updates of our latest tutorials.

Damien Oh started writing tech articles since 2007 and has over 10 years of experience in the tech industry. He is proficient in Windows, Linux, Mac, Android and iOS, and worked as a part time WordPress Developer. He is currently the owner and Editor-in-Chief of Make Tech Easier.

3 comments

Fbsetbg can use following wallpapersetters of which ONLY feh, esetroot and wmsetbg support pseudo transparency:

Esetroot
wmsetbg
feh
hsetroot
chbg
display
qiv
xv
xsri
xli
xsetbg

Comments are closed.

Popular Posts

How to Mount a Windows Share Folder on Linux

How to Mount Your iPhone as an External Drive in Ubuntu

How to Reset the Root Password in Linux

15 of the Best Linux Games in 2021

How to Combine PDF Files on Windows and Linux

8 Useful and Interesting Bash Prompts

The Ultimate Guide to Apt and Apt-Get Commands

4 Ways to Hide Desktop Icons in Ubuntu

The Differences between Su, Sudo Su, Sudo -s and Sudo -i

How to Convert Ubuntu Into Regolith Linux

В данной статье я бы хотел дать "небольшой гайд" о том, как настроить внешний вид i3wm.

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

Ну и, думаю, предложение попробовать i3wm и сделать его pretty-awesome вместе со мной будет не лишним.

Attention! От дистрибутива к дистрибутиву установка некоторых штук может отличаться.

Что это за зверь?

i3wm - это тайловый оконный менеджер. Выглядит всё это дело примерно так (Скриншот экрана на момент написания этой статьи)

Как вы можете заметить, тут нет заголовков и кнопок вроде (закрыть или свернуть окно). Хотя, по-умолчанию, заголовки есть, но почти все их отключают.

Любые манипуляции осуществляются с помощью клавиатуры. Т.е., пользуясь i3wm, вы можете вообще не использовать мышку в работе и будете чувствовать себя отлично!

Управлять всем этим не сложно

Для перемещения окон вы используете win+shift+стрелочки. Для смены активного окна - win+стрелочки. Для изменения размеров приложения: win+r, чтобы войти в режим изменения размера, после этого тыкайте стрелочки. Чтобы закрыть окно - win+q. Чтобы открыть приложение - win+d и вводите название.

Также i3wm поддерживает "летающие окна". Под этим я имею в виду то, что они находятся поверх остальных окон и могут перемещаться более свободно. Включить этот режим для конкретного приложения можно с помощью нажатия win+shift+пробел, а перемещать такое окно можно с помощью зажатия кнопки win и удерживания левой кнопки мыши.

Attention 2! Win - кнопка действия в i3wm. Вместо неё также может служить alt, это выбирает каждый пользователь в самом начале использования данного файлового менеджера. Если вам не нравится постоянно тыкать alt или win - вы без проблем сможете перебиндить кнопку действия на любую другую в конфиге, он очень дружелюбный и понятный, любой разберётся!

Где найти более подробный introduction?

Преимущества

  1. Удобство использования
  2. Не нужна мышка
  3. "Итишность"
  4. Не так требователен к железу, как какой-нибудь KDE или Gnome.

Установка

Процесс может несколько отличаться на разных дистрибутивов. Вот ссылка на подробную инструкцию по установке и использованию на Fedora:

Переходим к кастомизации! (Моя версия)

Итак, мы будем использовать следующие вещи:

Также вам понадобится какой-либо текстовый редактор для внесения изменений в конфиг, я использую nano.

Для того, чтобы установить обои в i3 вам понадобится установить Nitrogen:

Далее два действия:

  1. Запускаете его и выбираете папку, в которой лежат ваши обои, выбираете то, что вам нравится, настраиваете режим отображения.
  2. Заходите в config (

Отступы между приложениями

Для этого нам понадобится i3-gaps. После установки опять-же заходим в конфиг и прописываем (Я буду говорить только о том, как привести оконный менеджер к такому состоянию, как он выглядит у меня. Если захотите как-то по-своему его кастомизировать, загляните в документацию по i3-gaps и i3, она очень дружелюбная) :

Рамка вокруг приложений и цвета для неё

Для себя я выбрал рамку шириной в 4 пикселя:

И следующие два цвета:

a65386 - для активного окна; 917bbd - для неактивного окна. (Перед кодом поставьте символ решётка (хэштег))

Пропишите эти три строки в конфиг (Не забудьте решётку) :

client.focused a65386 a65386 a65386 a65386 a65386
client.urgent a65386 a65386 a65386 a65386 a65386
client.focused_inactive 917bbd 917bbd 917bbd 917bbd 917bbd
client.unfocused 917bbd 917bbd 917bbd 917bbd 917bbd

Если вам не нравятся цвета - можете установить любые другие, на ваш вкус.

Также я бы порекомендовал прописать

smart_borders отключает рамку приложения в случае, если оно является единственным для активного экрана.

Resize

Думаю, стоит также установить параметры для изменения размеров окна. Я установил изменение на 5px. Чтобы внести корректировки в это значение, найдите в конфиге следующую строку:

Под этой строкой вы найдёте все необходимые параметры. Поэкспериментируйте с этим и выберете то значение, которое вам нравится.

Чуть не забыл

Чтобы увидеть изменения - необходимо нажать комбинацию клавиш win+shift+r.

Ах, да. Также я отключил у себя нижнюю панель (i3bar). Для этого вы можете просто удалить следующие строки в своём конфиге:

И было бы отлично прописать ещё одну строку:

Вместо "gnome-terminal" можете ввести название любого другого терминала, который вы используете. Теперь вы можете запускать терминал при нажатии win+enter!

Nitrogen brings interactive web applications to Erlang.

Event-Driven Development

Nitrogen uses an event-driven model built on top of Erlang pattern matching. Nitrogen allows you to tag elements with any Erlang term, and then act on the tag in server-side code when the user clicks on, hovers over, or otherwise interacts with the element. Handling the event is as simple as writing an Erlang function.

Browser-Based Testing

Websockets Galore

Update or replace entire sections of your page asynchronously over websockets in a single line of code (with a clean fallback to ajax if Websockets are not supported by the proxy or client). Nitrogen lets you use the same consistent syntax to both build AND update the page. Nitrogen also includes support for long-running processes. By simply wrapping your long-running function call with a single line of code, you can turn a synchronous function into a long-running asynchronous function.

Javascript? What is it good for?

With Nitrogen's element construct, you rarely have to shift contexts from a server-side mentality (Erlang) to a client-side mentality (HTML, Javascript). Nitrogen applications can be built in pure Erlang and only rarely require hand-written Javascript or HTML (CSS, unfortunately, still needs to be written). Never shift contexts from client to server and back again.
Or put more succinctly, "Whereas Node.js brings the client-side to the server, Nitrogen brings the server-side to the client.".

Built-In Caching

Use Nitrogen's Cache Handler to locally cache pages or parts of pages to 'turbo-ize' your pages. Uses NitroCache by default, but as with all Nitrogen's handlers, you can write your own cache handler to tap into Mnesia, Redis, Memcached, or any other cache system you want

Complex Interfaces: Drag/Drop/Sort

With Nitrogen, you can let a user interact with your application in complex ways. Nitrogen lets you tag the draggable, droppable, or sortable elements, and then respond to the resulting events in server-side code as easily as you would respond to a click.

Flexible Templating

Nitrogen includes a simple but powerful template system, allowing you to define a consistent style for your application. You can add headers, footers, and parameterized plugins to your page using a simple callout mechanism. With Pandoc, make templates from non-HTML sources as well. That includes Markdown, LaTeX, RTF, PDF, and more!

Data Binding

Nitrogen leverages the power of Erlang data structures and pattern matching to enable powerful one-way databinding. Data binding support makes it easy to display repeated documents like blog posts or comments.

Infinitely Extendible

With Nitrogen, you can create your own custom complex elements and actions, then package them up as Nitrogen Plugins, to easily include in other Nitrogen projects without having to copy-and-paste, or share them with the world.

Erlang Power

Nitrogen brings all of the advantages of Erlang to web application development, including hot code swapping, stability, and scalability.

Technology Stack

Mac, Linux, Windows, FreeBSD, Raspberry Pi etc.

Any platform that can run Erlang can also run Nitrogen, including Mac, Linux, Unix, and Windows (among others). Nitrogen does not contain any platform specific code.

Mochiweb, Yaws, Cowboy, Webmachine, or Inets for Serving

JQuery/JQuery UI/JQuery Mobile for Javascript and Effects

Nitrogen uses JQuery and the JQuery UI library for client side Javascript. JQuery Mobile is included for now, but is deprecated and will be removed.

Documentation

Nitrogen documentation is available for browsing online. It is also included in the source code under /doc , and is packaged in all binary downloads.

About Nitrogen

Nitrogen was created in 2008 by Rusty Klophaus (@rustyio). In June 2011, Jesse Gumm (@jessegumm) took over as project lead. It is in active development, in use in industry, and is available for use under the MIT License.

Official Maintainers

Thanks!

Thanks to the many people who have helped make Nitrogen better, including:

  • Chris Williams (@voodootikigod)
  • Joel Reymond (@wagerlabs)
  • Tom McNulty
  • Martin Scholl (@zeit_geist)
  • Dave Peticolas
  • Jon Gretar Borgthorsson (@jongregar)
  • Dan Bravender (@dbravender)
  • Taavi Talvik
  • Torbjorn Tornkvist (@kruskakli)
  • Marius A. Eriksen (@marius)
  • Michael Mullis
  • John Dragos
  • Benjamin Nortier (@bjnortier)
  • Jay Doane
  • Robert Schonberger
  • Yurii Rashkovskii (@yrashk)
  • Ville Koivula
  • Manuel Duran Aguete
  • Jan-Felix Wittmann
  • Martin Sivak
  • Mattias Holmlund
  • Loïc Hoguin (@lhoguin)
  • Justin Kirby
  • Lorant Kurthy
  • Jonas Ådahl
  • Susan Potter (@susanpotter)
  • Rado Kozmer (@rkozmer)
  • Tuncer Ayaz
  • Steffan Panning
  • James Pharaoh
  • Sergei Lebedev
  • Milan Svoboda
  • Jenő I. Hajdu
  • Maxim Sokhatsky (@5HT)
  • Roman Shestakov (@rshestakov)
  • Witeman Zheng
  • Chan Sisowath
  • Florent Gallaire
  • Dmitriy Kargapolov
  • Andrii Zadorozhnii
  • Evan Miller (@evmill)
  • Alice Blitter Copper
  • Petr Kozorezov
  • Nikolay Garanko
  • Paul Khusainov
  • David N. Welton (@davidnwelton)
  • Tobias Herre
  • Josh Pyle
  • Niclas Axelsson
  • Evgeny M.
  • Boris Resnick
  • Piotr Nosek
  • Stefan Zegenhagen
  • Mehmet Emin Tok
  • Stuart Thackray
  • Amos Oviedo (@fooflare)
  • Alex Popov (@seidlitz)
  • Aaron Frantisak
  • Lloyd R. Prentice
  • Cameron Frederick (@cammcad)
  • Xue Hongwei
  • Steve Vinoski (@stevevinoski)
  • Aaron Bieber
  • Tobias Weisenthal
  • Franklin Brauning
  • Olivier Boudeville
  • Alex Ksandra
  • Ramkrishna Kulkarni
  • Meike Hecker
  • Mikael Bylund
  • Alexander Sedov
  • João Henrique Ferreira de Freitas

You have a choice between five popular Erlang web servers: Cowboy, Inets, Mochiweb, Webmachine, Yaws

Cowboy is the newest popular webserver on the Erlang scene. Created by Loic Hoguin, and under heavy development, it currently supports SPDY, WebSockets, and follows a model that differentiates itself from the other Erlang webservers: It doesn't maintain a process dictionary. Instead, it follows a more 'pure' flow, by passing around the a request object to each of Cowboy's functions. It's a lightweight, high performance webserver, and extermely capable.

Inets is the built-in Erlang Webserver. It's lightweight, and gets the job done. Its biggest benefit is that it does not require any external dependencies, since it's a part of the standard Erlang release. If you have a simple app that doesn't require much by way of high performance, Inets will work.

Mochiweb is a simple webserver that sticks mostly to maintenance releases these days, new features are rarely added. But it is a perfectly performant and lightweight server for most web application uses.

Webmachine is a webserver with an emphasis on REST. Its main focus is for making great RESTful APIs. The perfect use-case for using Webmachine with Nitrogen would be to provide a powerful RESTful API for external apps (like mobile device APIs), while also providing an interactive interface utilizing Nitrogen for web users.

Yaws is the granddaddy of Erlang webservers. It's tried and true, has been around for many years, and continues to improve, including adding Websocket support. It has solid performance metrics, and has a configuration system modelled after Apache's.

IN GENERAL if you are completely unsure which webserver to use, we recommend choosing either Cowboy or Yaws for production environments, as both provide quality performance, support websockets natively (though any server can support websockets in Nitrogen), and both handle large files smoothly.

These packages were generated from Nitrogen source code by running make package_inets, make package_cowboy, make package_mochiweb, make package_webmachine and make package_yaws.

Alternatively, if you plan on contributing to the Nitrogen source code, you can download the source tree from GitHub.

Читайте также: