Nächste: , Vorige: , Nach oben: Persönliche Dienste   [Inhalt][Index]


13.3.7 Persönliche Desktop-Dienste

Das Modul (gnu home services desktop) stellt Dienste zur Verfügung, die Ihnen auf „Desktop“-Systemen helfen können, d.h. wenn Sie eine grafische Arbeitsumgebung mit z.B. Xorg gebrauchen.

Variable: home-redshift-service-type

Dies ist der Diensttyp für Redshift, ein Programm, um die Farbtemperatur des Bildschirms an die Tageszeit anzupassen. Sein zugewiesener Wert muss ein home-redshift-configuration-Verbundsobjekt sein wie im folgenden Beispiel:

Eine typische Konfiguration, bei der wir Längen- und Breitengrad selbst vorgeben, könnte so aussehen:

(service home-redshift-service-type
         (home-redshift-configuration
          (location-provider 'manual)
          (latitude 35.81)    ;Nordhalbkugel
          (longitude -0.80))) ;westlich von Greenwich
Datentyp: home-redshift-configuration

Verfügbare home-redshift-configuration-Felder sind:

redshift (Vorgabe: redshift) (Typ: dateiartig)

Das zu verwendende Redshift-Paket.

location-provider (Vorgabe: geoclue2) (Typ: Symbol)

Anbieter für die Ortsbestimmung („Geolocation“). Entweder Sie geben den Ort manuell ein, dann schreiben Sie 'manual, oder für eine automatische Ortsbestimmung schreiben Sie 'geoclue2. Wenn Sie den Ort manuell eingeben möchten, müssen Sie außerdem Breiten- und Längengrad in den Feldern latitude und longitude festlegen, damit Redshift die Tageszeit bei Ihnen ermitteln kann. Wenn Sie die automatische Ortsbestimmung benutzen möchten, muss der Geoclue-Systemdienst laufen, der die Ortsinformation bringt.

adjustment-method (Vorgabe: randr) (Typ: Symbol)

Die Methode zur Farbanpassung.

daytime-temperature (Vorgabe: 6500) (Typ: Ganze-Zahl)

Farbtemperatur am Tag (in Kelvin).

nighttime-temperature (Vorgabe: 4500) (Typ: Ganze-Zahl)

Farbtemperatur bei Nacht (in Kelvin).

daytime-brightness (Typ: Vielleicht-Inexakte-Zahl)

Bildschirmhelligkeit bei Tag, zwischen 0.1 und 1.0 oder unspezifiziert.

nighttime-brightness (Typ: Vielleicht-Inexakte-Zahl)

Bildschirmhelligkeit in der Nacht, zwischen 0.1 und 1.0 oder unspezifiziert.

latitude (Typ: Vielleicht-Inexakte-Zahl)

Der Breitengrad, wenn location-provider auf 'manual gestellt ist.

longitude (Typ: Vielleicht-Inexakte-Zahl)

Der Längengrad, wenn location-provider auf 'manual gestellt ist.

dawn-time (Typ: Vielleicht-Zeichenkette)

Eine selbst festgelegte Uhrzeit, zu der morgens von Nacht auf Tag geschaltet wird, im Format "HH:MM". Wenn Sie dies angeben, wird der Sonnenstand zur Ermittlung von Tag und Nacht nicht herangezogen.

dusk-time (Typ: Vielleicht-Zeichenkette)

Entsprechend eine selbst festgelegte Uhrzeit, zu der abends von Tag auf Nacht geschaltet wird.

extra-content (Vorgabe: "") (Typ: Rohe-Konfigurations-Zeichenkette)

Weiterer Text, der unverändert an die Redshift-Konfigurationsdatei angehängt wird. Führen Sie man redshift aus, um weitere Informationen über das Format der Konfigurationsdatei zu erfahren.

Variable: home-dbus-service-type

Mit diesem Diensttyp können Sie eine Instanz von D-Bus nur für die aktuelle Sitzung ausführen. Er ist gedacht für Anwendungen ohne besondere Berechtigung, die eine laufende D-Bus-Instanz voraussetzen.

Datentyp: home-dbus-configuration

Das Verbundsobjekt mit der Konfiguration des home-dbus-service-type.

dbus (Vorgabe: dbus)

Das Paket mit dem Befehl /bin/dbus-daemon.

Variable: home-unclutter-service-type

This is the service type for Unclutter, a program that runs on the background of an X11 session and detects when the X pointer hasn’t moved for a specified idle timeout, after which it hides the cursor so that you can focus on the text underneath. Its associated value must be a home-unclutter-configuration record, as shown below.

A typical configuration, where we manually specify the idle timeout (in seconds), might look like this:

Data Type: home-unclutter-configuration

The configuration record for home-unclutter-service-type.

unclutter (default: unclutter) (type: file-like)

Unclutter package to use.

idle-timeout (default: 5) (type: integer)

A timeout in seconds after which to hide cursor.

Variable: home-xmodmap-service-type

This is the service type for the xmodmap utility to modify keymaps and pointer button mappings under the Xorg display server. Its associated value must be a home-xmodmap-configuration record, as shown below.

The key-map field takes a list of objects, each of which is either a statement (a string) or an assignment (a pair of strings). As an example, the snippet below swaps around the Caps_Lock and the Control_L keys, by first removing the keysyms (on the right-hand side) from the corresponding modifier maps (on the left-hand side), re-assigning them by swapping each other out, and finally adding back the keysyms to the modifier maps.

(service home-xmodmap-service-type
         (home-xmodmap-configuration
          (key-map '(("remove Lock" . "Caps_Lock")
                     ("remove Control" . "Control_L")
                     ("keysym Control_L" . "Caps_Lock")
                     ("keysym Caps_Lock" . "Control_L")
                     ("add Lock" . "Caps_Lock")
                     ("add Control" . "Control_L")))))
Data Type: home-xmodmap-configuration

The configuration record for home-xmodmap-service-type. Its available fields are:

xmodmap (default: xmodmap) (type: file-like)

The xmodmap package to use.

key-map (default: '()) (type: list)

The list of expressions to be read by xmodmap on service startup.


Nächste: , Vorige: , Nach oben: Persönliche Dienste   [Inhalt][Index]