Difference between revisions of "Pantheon"

From ArchWiki
Jump to navigation Jump to search
(Initial creation. Article is working progress.)
 
(update Pkg/AUR templates)
Tag: wiki-scripts
 
(328 intermediate revisions by 41 users not shown)
Line 1: Line 1:
{{Stub}}
 
 
[[Category:Desktop environments]]
 
[[Category:Desktop environments]]
{{Article summary start}}
+
[[ja:Pantheon]]
{{Article summary text|This article covers basic installation procedures and configuration methods for Pantheon, the default desktop environment of elementary OS.}}
+
[[pl:Pantheon]]
{{Article summary heading|Related}}
+
[[zh-hans:Pantheon]]
{{Article summary wiki|GNOME}}: A DE which is also based on GTK3.
+
[https://bbs.archlinux.org/viewtopic.php?id=152930 Pantheon] is the desktop environment originally created for the [http://elementary.io/ elementary OS] distribution. It is written from scratch in [[Wikipedia:Vala (programming language)|Vala]], using [[GTK|GTK 3]] and [https://github.com/elementary/granite Granite]. With regards to usability and appearance, the desktop has some similarities with [[GNOME Shell]] and [[Wikipedia:MacOS|macOS]].
{{Article summary end}}
 
  
[http://elementaryos.org/ Pantheon] is the default desktop environment originally created for the elementary OS distribution. It is written from scratch using Vala and the GTK3 toolkit. With regards to usability and appearance, the desktop has some similarities with GNOME Shell and Mac OS X.
+
== Project Status ==
  
==Installation==
+
Although the [https://elementary.io/ elementary OS] release schedule and toolchain are bound to [[Arch_compared_to_other_distributions#Ubuntu|Ubuntu's]] LTS release cycle, [https://elementarycommunity.slack.com/ development] moves quickly and has recently moved to [https://github.com/elementary github].
  
Pantheon is split into several packages which are all available from the [[AUR]]. To get a complete desktop interface, install at least the following additional packages:
+
== Installation ==
* {{Aur|pantheon-wallpaper-bzr}}: Wallpaper collection
 
* {{Aur|pantheon-greeter}}: Session manager based on LightDM.
 
* {{Aur|pantheon-wingpanel}}: Top panel, similar in function to GNOME Shell's top panel.
 
* {{Aur|pantheon-slingshot}}: Application launcher located in WingPanel.
 
* {{Aur|pantheon-plank}}: Dock based on Docky.
 
* {{Aur|pantheon-switchboard}}: Settings application (or control panel).
 
* {{Aur|pantheon-midori}}: Web browser based on WebKit.
 
* {{Aur|pantheon-geary}}: Email client.
 
* {{Aur|pantheon-calendar}}: Desktop calendar.
 
* {{Aur|pantheon-music}}: Audio player
 
* {{Aur|pantheon-scratch}}: Simple text editor.
 
* {{Aur|pantheon-terminal}}: Terminal emulator
 
* {{Aur|pantheon-files}}: File manager.
 
  
=== Starting Pantheon ===
+
=== Packages ===
 +
 
 +
==== Unofficial repository ====
 +
 
 +
Alucryd's unofficial repository contains more and more [https://github.com/alucryd/aur-alucryd/tree/master/pantheon up-to-date] packages than the few available in the [[community repository]]. To use it add the following lines at the top of your sources in {{Ic|/etc/pacman.conf}}:
 +
{{bc|<nowiki>
 +
[extra-alucryd]
 +
Server = https://pkgbuild.com/~alucryd/$repo/$arch
 +
</nowiki>}}
 +
Do note that some packages are missing from the repository due to [https://github.com/alucryd/aur-alucryd/issues/88#issuecomment-434606676 issues] with upstream. You will have to supplement the repo with locally compiled packages.
 +
 
 +
==== AUR ====
 +
 
 +
Alternatively, the [[PKGBUILD]]s for the pantheon packages are also available in the [[AUR]].
 +
 
 +
=== Desktop Environment ===
 +
 
 +
For the minimal Pantheon shell, install {{AUR|pantheon-session-git}}, which pulls--among other dependencies--the core components:
 +
* {{AUR|cerbere-git}}: Watchdog service; restarts core components if they crash.
 +
* {{AUR|gala-git}}: Window and composting manager
 +
* {{AUR|wingpanel-git}}: Top panel (holds the launcher, clock, and indicators)
 +
* {{AUR|pantheon-applications-menu-git}}: Application launcher formerly known as "Slingshot"
 +
* {{Pkg|plank}}: macOS-style Dock
 +
 
 +
=== Services and Configuration ===
 +
 
 +
These optional packages provide background services and default settings for Pantheon and elementary OS applications:
 +
* {{AUR|pantheon-default-settings-git}}: Default appearance, behavior, and configuration; pulls in theme packages {{Pkg|elementary-icon-theme}},  {{AUR|gtk-theme-elementary-git}}, and {{AUR|elementary-wallpapers-git}}
 +
* {{AUR|gnome-settings-daemon-elementary}}: A patched {{AUR|gnome-settings-daemon-ubuntu}} required by {{AUR|pantheon-dpms-helper-git}} and {{AUR|wingpanel-indicator-power-git}}
 +
* {{AUR|pantheon-print-git}}: Print settings dialog
 +
* {{AUR|pantheon-polkit-agent-git}}: Polkit authentication agent
 +
 
 +
=== Theme ===
 +
 
 +
These optional packages contribute to the look and feel of the desktop:
 +
* {{Pkg|elementary-icon-theme}} or {{AUR|elementary-icon-theme-git}}: Icon theme designed to be smooth, sexy, clear, and efficient
 +
* {{AUR|lightdm-pantheon-greeter}} or {{AUR|lightdm-pantheon-greeter-git}}: LightDM greeter
 +
It is also recommended to install the following fonts:
 +
* {{Pkg|ttf-opensans}}: Open Sans Fonts
 +
* {{AUR|ttf-raleway}}: Raleway Font
 +
* {{Pkg|ttf-dejavu}}: Font family based on the Bitstream Vera Fonts
 +
* {{Pkg|ttf-droid}}: General-purpose fonts released by Google as part of Android
 +
* {{Pkg|gnu-free-fonts}}: Set of free outline fonts covering the Unicode character set
 +
* {{Pkg|ttf-liberation}}: Red Hats Liberation fonts
 +
 
 +
=== Applications ===
 +
 
 +
These are some of the original, patched, and selected packages that comprise the optional elementary OS software suite:
 +
* {{Pkg|pantheon-files}} or {{AUR|pantheon-files-git}}: File explorer developed from Marlin
 +
* {{Pkg|pantheon-terminal}} or {{AUR|pantheon-terminal-git}}: Terminal emulator
 +
* {{Pkg|pantheon-code}} or {{AUR|pantheon-code-git}}: Text editor formerly known as "Scratch"
 +
* {{Pkg|pantheon-calculator}} or {{AUR|pantheon-calculator-git}}: Calculator
 +
* {{Pkg|pantheon-music}} or {{AUR|pantheon-music-git}}: Audio player formerly known as "Noise"
 +
* {{Pkg|pantheon-videos}} or {{AUR|pantheon-videos-git}}: Video player formerly known as "Audience"
 +
* {{AUR|pantheon-calendar-git}}: Calendar application formerly known as "Maya", integrates with {{AUR|wingpanel-indicator-datetime-git}}
 +
* {{AUR|epiphany-pantheon}}: Web browser replacing {{AUR|midori-granite}}
 +
* {{AUR|pantheon-mail-git}}: Email client developed from {{Pkg|geary}}
 +
* {{Pkg|pantheon-screenshot}} or {{AUR|pantheon-screenshot-git}}: Screenshot tool
 +
* {{AUR|eidete-bzr}}: Simple screencaster
 +
* {{Pkg|pantheon-photos}} or {{AUR|pantheon-photos-git}}: Photo manager developed from {{Pkg|shotwell}}
 +
* {{AUR|pantheon-camera-git}}: Webcam app formerly known as "Snap"
 +
* {{Pkg|simple-scan}}: Simple scan utility
 +
* {{Pkg|switchboard}} or {{AUR|switchboard-git}}: Pluggable settings manager similar to {{Pkg|gnome-control-center}}
 +
 
 +
== Launching Pantheon ==
 +
 
 +
=== Via [[Display manager]] ===
 +
 
 +
{{AUR|pantheon-session-git}} provides a {{Pkg|gnome-session}} entry for display managers such as {{Pkg|gdm}} or {{Pkg|lightdm}}.
 +
 
 +
==== Autostart applications with a display manager ====
 +
 
 +
As a gnome-session, Pantheon implements [[GNOME#Autostart|XDG Autostart]].
 +
 
 +
=== Via [[xinit]] ===
 +
 
 +
Alternatively, you can use {{Ic|~/.xinitrc}} to launch the Pantheon shell, by adding {{ic|exec cerbere}} to the end of the file.
 +
 
 +
==== Autostart applications with ''xinit'' ====
 +
 
 +
For applications which do not provide a [[Systemd#Using_units|systemd unit]], consider these options:
 +
 
 +
* Run once when X starts:
 +
:Add it to your [[#Via_xinit|{{Ic|~/.xinitrc}}]] [[Shell]] script, before the {{ic|exec cerbere}} line.
 +
 
 +
* Keep running in the background:
 +
:Add it to the [[#Configuration|dconf key]] {{Ic|io.elementary.desktop.cerbere.monitored-processes}}.
 +
:Should the process stop, {{Pkg|cerbere}} will respawn it.
 +
 
 +
* Launch from a [[.desktop]] file:
 +
:Use a program like {{AUR|dapper}}, {{AUR|dex-git}}, or {{AUR|fbautostart}} to implement [[XDG Autostart]].
  
 
==Configuration==
 
==Configuration==
 +
 +
Configure Pantheon via {{Pkg|switchboard}} or {{AUR|switchboard-git}} and its plugs (''switchboard-plug-*''), which must be installed separately. Not all of {{Pkg|gnome-control-center}}'s settings panels have been ported. In addition, except [[plank]], all the Pantheon components store their configuration in the {{Ic|org.pantheon}} or {{Ic|io.elementary}} [[GNOME#Configuration|gsettings keys]], which can be edited with {{Pkg|dconf-editor}}.
 +
 +
{{Note|{{AUR|switchboard-plug-elementary-tweaks-git}} provides easy access to [https://raw.githubusercontent.com/elementary-tweaks/elementary-tweaks/master/docs/screenshot.png customizations for various aspects of the Pantheon desktop and applications], similar to {{Pkg|gnome-tweaks}}.}}
 +
 +
=== Wingpanel ===
 +
 +
Wingpanel does not come with any indicators; they must be installed separately.
 +
 +
At the minimum, you'll probably want to install:
 +
* {{AUR|pantheon-applications-menu}}{{Broken package link|package not found}} or {{AUR|pantheon-applications-menu-git}}: Applications menu and "Run" dialog
 +
* {{Pkg|wingpanel-indicator-datetime}} or {{AUR|wingpanel-indicator-datetime-git}}: Clock and calendar widget
 +
* {{AUR|wingpanel-indicator-session}}{{Broken package link|package not found}} or {{AUR|wingpanel-indicator-session-git}}: User and session menu (Switch user, Logout, Shutdown, etc.)
 +
 +
==== Third-party indicators ====
 +
 +
* If launched by a [[#Via Display manager|display manager]], append {{Ic|Pantheon;}} to {{ic|1=OnlyShowIn=}} in third-party indicators' [[XDG_Autostart|*.desktop files]]
 +
 +
* If launched by [[#Via xinit|~/.xinitrc]], add third-party indicators to one of the start-up methods described [[#Launching Pantheon|above]].
 +
 +
* [[Unity|Ayatana Indicators]] require {{AUR|wingpanel-indicator-ayatana}} or {{AUR|wingpanel-indicator-namarupa-git}} to appear in {{Pkg|wingpanel}}.
 +
 +
==== Indicator-session menus unresponsive ====
 +
 +
* {{AUR|wingpanel-indicator-session}}{{Broken package link|package not found}} needs [[light-locker]] or {{AUR|xscreensaver-dbus-screenlock}} installed for the {{Ic|Lock}} menu item.
 +
 +
=== Plank ===
 +
 +
==== Adding new application icons ====
 +
 +
Either drag and drop a desktop file on to the dock, or right click on a running application and select "Keep in dock". You can then reorder icons by drag and drop.
 +
{{Note|Plank stores .dockitem launchers in {{ic|~/.config/plank/}} and configuration in the gsettings key {{ic|net.launchpad.plank}}}}
 +
 +
=== Pantheon Files ===
 +
 +
==== Enable context menu entries ====
 +
 +
If you want to enable context menu entries such as for {{Pkg|file-roller}} to extract/compress archives, then you have to additionally install {{Pkg|contractor}} or {{AUR|contractor-git}}.
 +
 +
=== Terminal ===
 +
 +
====Opacity====
 +
 +
To make {{Pkg|pantheon-terminal}} (semi-)transparent, [[#Configuration|set the dconf key]] {{ic|io.elementary.terminal.settings.background}} to your desired background color and opacity.
 +
 +
== Known Issues ==
 +
 +
=== Appearance ===
 +
 +
==== Pantheon-terminal transparency ====
 +
 +
Transparency in pantheon-terminal is not yet fully functional with GTK themes other than the elmentary OS theme. Either use {{Pkg|gtk-theme-elementary}}, {{AUR|gtk-theme-elementary-git}} or add the following code to your theme's css or the override file in {{ic|~/.config/gtk-3.0/gtk.css}}:
 +
/************
 +
  * Terminal *
 +
  ***********/
 +
 +
PantheonTerminalPantheonTerminalWindow.background {
 +
    background-color: transparent;
 +
}
 +
 +
==== Wingpanel transparency ====
 +
 +
Wingpanel is transparent by design when using {{Pkg|gtk-theme-elementary}} or {{AUR|gtk-theme-elementary-git}}, and becomes opaque when a maximized window occupies your screen. However, using other GTK themes will produce a solid panel most of the time.
 +
 +
To achieve the former behavior within another theme, add the following code to its css or the override file in {{ic|~/.config/gtk-3.0/gtk.css}}:
 +
 +
/*********************
 +
  * wingpanel support *
 +
  ********************/
 +
 +
.panel {
 +
    background-color: transparent;
 +
    transition: all 1s ease-in-out;
 +
}
 +
 +
.panel.maximized {
 +
    background-color: #000;
 +
}

Latest revision as of 14:25, 19 January 2020

Pantheon is the desktop environment originally created for the elementary OS distribution. It is written from scratch in Vala, using GTK 3 and Granite. With regards to usability and appearance, the desktop has some similarities with GNOME Shell and macOS.

Project Status

Although the elementary OS release schedule and toolchain are bound to Ubuntu's LTS release cycle, development moves quickly and has recently moved to github.

Installation

Packages

Unofficial repository

Alucryd's unofficial repository contains more and more up-to-date packages than the few available in the community repository. To use it add the following lines at the top of your sources in /etc/pacman.conf:

[extra-alucryd]
Server = https://pkgbuild.com/~alucryd/$repo/$arch

Do note that some packages are missing from the repository due to issues with upstream. You will have to supplement the repo with locally compiled packages.

AUR

Alternatively, the PKGBUILDs for the pantheon packages are also available in the AUR.

Desktop Environment

For the minimal Pantheon shell, install pantheon-session-gitAUR, which pulls--among other dependencies--the core components:

Services and Configuration

These optional packages provide background services and default settings for Pantheon and elementary OS applications:

Theme

These optional packages contribute to the look and feel of the desktop:

It is also recommended to install the following fonts:

Applications

These are some of the original, patched, and selected packages that comprise the optional elementary OS software suite:

Launching Pantheon

Via Display manager

pantheon-session-gitAUR provides a gnome-session entry for display managers such as gdm or lightdm.

Autostart applications with a display manager

As a gnome-session, Pantheon implements XDG Autostart.

Via xinit

Alternatively, you can use ~/.xinitrc to launch the Pantheon shell, by adding exec cerbere to the end of the file.

Autostart applications with xinit

For applications which do not provide a systemd unit, consider these options:

  • Run once when X starts:
Add it to your ~/.xinitrc Shell script, before the exec cerbere line.
  • Keep running in the background:
Add it to the dconf key io.elementary.desktop.cerbere.monitored-processes.
Should the process stop, cerbere will respawn it.
Use a program like dapperAUR, dex-gitAUR, or fbautostartAUR to implement XDG Autostart.

Configuration

Configure Pantheon via switchboard or switchboard-gitAUR and its plugs (switchboard-plug-*), which must be installed separately. Not all of gnome-control-center's settings panels have been ported. In addition, except plank, all the Pantheon components store their configuration in the org.pantheon or io.elementary gsettings keys, which can be edited with dconf-editor.

Wingpanel

Wingpanel does not come with any indicators; they must be installed separately.

At the minimum, you'll probably want to install:

Third-party indicators

  • If launched by ~/.xinitrc, add third-party indicators to one of the start-up methods described above.

Indicator-session menus unresponsive

Plank

Adding new application icons

Either drag and drop a desktop file on to the dock, or right click on a running application and select "Keep in dock". You can then reorder icons by drag and drop.

Note: Plank stores .dockitem launchers in ~/.config/plank/ and configuration in the gsettings key net.launchpad.plank

Pantheon Files

Enable context menu entries

If you want to enable context menu entries such as for file-roller to extract/compress archives, then you have to additionally install contractor or contractor-gitAUR.

Terminal

Opacity

To make pantheon-terminal (semi-)transparent, set the dconf key io.elementary.terminal.settings.background to your desired background color and opacity.

Known Issues

Appearance

Pantheon-terminal transparency

Transparency in pantheon-terminal is not yet fully functional with GTK themes other than the elmentary OS theme. Either use gtk-theme-elementary, gtk-theme-elementary-gitAUR or add the following code to your theme's css or the override file in ~/.config/gtk-3.0/gtk.css:

/************
 * Terminal *
 ***********/

PantheonTerminalPantheonTerminalWindow.background {
   background-color: transparent;
}

Wingpanel transparency

Wingpanel is transparent by design when using gtk-theme-elementary or gtk-theme-elementary-gitAUR, and becomes opaque when a maximized window occupies your screen. However, using other GTK themes will produce a solid panel most of the time.

To achieve the former behavior within another theme, add the following code to its css or the override file in ~/.config/gtk-3.0/gtk.css:

/*********************
 * wingpanel support *
 ********************/

.panel {
    background-color: transparent;
    transition: all 1s ease-in-out;
}

.panel.maximized {
    background-color: #000;
}