personalizzare lightdm-gtk-greeter

Personalizzazione grafica del sistema: icone, temi, sfondi, suoni, eccetera.
Giothebest

personalizzare lightdm-gtk-greeter

Messaggio da Giothebest »

salve a tutti, ho effettuato una installazione de mini.iso di ubuntu 12.04. la discussione di supporto per maggiori chiarimenti è questa:
http://forum.ubuntu-it.org/viewtopic.ph ... 2&start=40 (3a pagina)

vorrei personallizare il file: /usr/share/lightdm-gtk-greeter/greeter.ui per poter cambiare la schermata di accesso e renderlo simile a questo: http://www.google.com/imgres?q=lightdm& ... x=74&ty=66(togliendo però il pannello in alto) e rendere il tutto, tranne l'immagine, sul trasperente... qualcuno sa come si possa fare?
lo sfondo so già come si fa a metterlo...
allego /usr/share/lightdm-gtk-greeter/greeter.ui :

Codice: Seleziona tutto

<?xml version="1.0" encoding="UTF-8"?>
<interface>
  <requires lib="gtk+" version="2.24"/>
  <object class="GtkListStore" id="language_liststore">
    <columns>
      <!-- column-name label -->
      <column type="gchararray"/>
      <!-- column-name key -->
      <column type="gchararray"/>
    </columns>
  </object>
  <object class="GtkWindow" id="login_window">
    <property name="can_focus">True</property>
    <property name="resizable">True</property>
    <property name="decorated">True</property>
    <property name="has_resize_grip">True</property>
    <child>
      <object class="GtkNotebook" id="login_desktop">
        <property name="width_request">400</property>
        <property name="visible">True</property>
        <property name="can_focus">True</property>
        <property name="show_tabs">False</property>
        <child>
          <object class="GtkVBox" id="vbox2">
            <property name="visible">True</property>
            <property name="can_focus">False</property>
            <property name="border_width">False</property>
            <property name="spacing">0</property>
            <child>
              <object class="GtkImage" id="image1">
                <property name="visible">False</property>
                <property name="can_focus">True</property>
                <property name="pixel_size">64</property>
                <property name="icon_name">computer</property>
              </object>
              <packing>
                <property name="expand">False</property>
                <property name="fill">False</property>
                <property name="position">0</property>
              </packing>
            </child>
            <child>
              <object class="GtkLabel" id="hostname_label">
                <property name="visible">True</property>
                <property name="can_focus">False</property>
                <property name="label" comments="This is a placeholder string and will be replaced with the hostname of the system">Martelli</property>
              </object>
              <packing>
                <property name="expand">True</property>
                <property name="fill">True</property>
                <property name="position">1</property>
              </packing>
            </child>
            <child>
              <object class="GtkTreeView" id="user_treeview">
                <property name="can_focus">True</property>
                <property name="model">user_liststore</property>
                <property name="headers_visible">True</property>
                <property name="fixed_height_mode">True</property>
                <property name="enable_grid_lines">vertical</property>
                <child internal-child="selection">
                  <object class="GtkTreeSelection" id="treeview-selection1">
                     <signal name="changed" handler="user_treeview_selection_changed_cb" swapped="no"/>
                  </object>
                </child>
              </object>
              <packing>
                <property name="expand">True</property>
                <property name="fill">True</property>
                <property name="position">2</property>
              </packing>
            </child>
            <child>
              <object class="GtkVBox" id="login_box">
                <property name="can_focus">False</property>
                <property name="spacing">6</property>
                <child>
                  <object class="GtkHBox" id="prompt_box">
                    <property name="can_focus">False</property>
                    <property name="spacing">6</property>
                    <child>
                      <object class="GtkLabel" id="prompt_label">
                        <property name="visible">True</property>
                        <property name="can_focus">False</property>
                        <property name="label" comments="This is a placeholder string and will be replaced by the greeter with a prompt string from PAM.">[prompt]</property>
                      </object>
                      <packing>
                        <property name="expand">False</property>
                        <property name="fill">True</property>
                        <property name="position">0</property>
                      </packing>
                    </child>
                    <child>
                      <object class="GtkEntry" id="prompt_entry">
                        <property name="visible">True</property>
                        <property name="can_focus">True</property>
                        <property name="invisible_char">•</property>
                        <property name="primary_icon_activatable">False</property>
                        <property name="secondary_icon_activatable">False</property>
                        <signal name="activate" handler="login_cb" swapped="no"/>
                      </object>
                      <packing>
                        <property name="expand">True</property>
                        <property name="fill">True</property>
                        <property name="position">1</property>
                      </packing>
                    </child>
                  </object>
                  <packing>
                    <property name="expand">True</property>
                    <property name="fill">True</property>
                    <property name="position">0</property>
                  </packing>
                </child>
                <child>
                  <object class="GtkLabel" id="message_label">
                    <property name="can_focus">False</property>
                    <property name="label" comments="This is a placeholder string and will be replaced with a message from PAM">[message]</property>
                  </object>
                  <packing>
                    <property name="expand">False</property>
                    <property name="fill">True</property>
                    <property name="position">1</property>
                  </packing>
                </child>
                <child>
                  <object class="GtkHBox" id="hbox2">
                    <property name="visible">True</property>
                    <property name="can_focus">False</property>
                    <property name="spacing">6</property>
                    <child>
                      <object class="GtkComboBox" id="session_combobox">
                        <property name="can_focus">False</property>
                        <property name="model">session_liststore</property>
                      </object>
                      <packing>
                        <property name="expand">True</property>
                        <property name="fill">True</property>
                        <property name="position">0</property>
                      </packing>
                    </child>
                    <child>
                      <object class="GtkComboBox" id="language_combobox">
                        <property name="can_focus">False</property>
                        <property name="model">language_liststore</property>
                      </object>
                      <packing>
                        <property name="expand">True</property>
                        <property name="fill">True</property>
                        <property name="position">1</property>
                      </packing>
                    </child>
                    <child>
                      <object class="GtkButton" id="login_button">
                        <property name="label" translatable="yes">Login</property>
                        <property name="visible">True</property>
                        <property name="can_focus">True</property>
                        <property name="receives_default">True</property>
                        <property name="use_action_appearance">False</property>
                        <signal name="clicked" handler="login_cb" swapped="no"/>
                      </object>
                      <packing>
                        <property name="expand">False</property>
                        <property name="fill">True</property>
                        <property name="pack_type">end</property>
                        <property name="position">2</property>
                      </packing>
                    </child>
                    <child>
                      <object class="GtkButton" id="cancel_button">
                        <property name="label" translatable="yes">Cancel</property>
                        <property name="visible">True</property>
                        <property name="can_focus">True</property>
                        <property name="receives_default">True</property>
                        <property name="use_action_appearance">False</property>
                        <signal name="clicked" handler="cancel_cb" swapped="no"/>
                      </object>
                      <packing>
                        <property name="expand">False</property>
                        <property name="fill">True</property>
                        <property name="pack_type">end</property>
                        <property name="position">3</property>
                      </packing>
                    </child>
                  </object>
                  <packing>
                    <property name="expand">True</property>
                    <property name="fill">True</property>
                    <property name="position">2</property>
                  </packing>
                </child>
              </object>
              <packing>
                <property name="expand">False</property>
                <property name="fill">True</property>
                <property name="position">3</property>
              </packing>
            </child>
          </object>
        </child>
        <child type="tab">
          <placeholder/>
        </child>
      </object>
    </child>
  </object>
  <object class="GtkWindow" id="panel_window">
    <property name="can_focus">False</property>
    <property name="decorated">True</property>
    <property name="has_resize_grip">False</property>
    <child>
      <object class="GtkMenuBar" id="menubar">
        <property name="visible">True</property>
        <property name="can_focus">False</property>
        <property name="pack_direction">rtl</property>
        <child>
          <object class="GtkMenuItem" id="power_menuitem">
            <property name="visible">True</property>
            <property name="can_focus">False</property>
            <property name="use_action_appearance">False</property>
            <child type="submenu">
              <object class="GtkMenu" id="power_menu">
                <property name="visible">True</property>
                <property name="can_focus">False</property>
                <child>
                  <object class="GtkMenuItem" id="suspend_menuitem">
                    <property name="visible">True</property>
                    <property name="can_focus">False</property>
                    <property name="use_action_appearance">False</property>
                    <property name="label" translatable="yes">Suspend</property>
                    <signal name="activate" handler="suspend_cb" swapped="no"/>
                  </object>
                </child>
                <child>
                  <object class="GtkMenuItem" id="hibernate_menuitem">
                    <property name="visible">True</property>
                    <property name="can_focus">False</property>
                    <property name="use_action_appearance">False</property>
                    <property name="label" translatable="yes">Hibernate</property>
                    <signal name="activate" handler="hibernate_cb" swapped="no"/>
                  </object>
                </child>
                <child>
                  <object class="GtkMenuItem" id="restart_menuitem">
                    <property name="visible">True</property>
                    <property name="can_focus">False</property>
                    <property name="use_action_appearance">False</property>
                    <property name="label" translatable="yes">Restart...</property>
                    <signal name="activate" handler="restart_cb" swapped="no"/>
                  </object>
                </child>
                <child>
                  <object class="GtkMenuItem" id="shutdown_menuitem">
                    <property name="visible">True</property>
                    <property name="can_focus">False</property>
                    <property name="use_action_appearance">False</property>
                    <property name="label" translatable="yes">Shutdown...</property>
                    <signal name="activate" handler="shutdown_cb" swapped="no"/>
                  </object>
                </child>
              </object>
            </child>
          </object>
        </child>
        <child>
          <object class="GtkMenuItem" id="a11y_menuitem">
            <property name="visible">True</property>
            <property name="can_focus">False</property>
            <property name="use_action_appearance">False</property>
            <child type="submenu">
              <object class="GtkMenu" id="a11y_menu">
                <property name="visible">True</property>
                <property name="can_focus">False</property>
                <child>
                  <object class="GtkCheckMenuItem" id="large_font_menuitem">
                    <property name="visible">True</property>
                    <property name="can_focus">False</property>
                    <property name="use_action_appearance">False</property>
                    <property name="label" translatable="yes">Large Font</property>
                    <signal name="toggled" handler="a11y_font_cb" swapped="no"/>
                  </object>
                </child>
                <child>
                  <object class="GtkCheckMenuItem" id="high_contrast_menuitem">
                    <property name="visible">True</property>
                    <property name="can_focus">False</property>
                    <property name="use_action_appearance">False</property>
                    <property name="label" translatable="yes">High Contrast</property>
                    <signal name="toggled" handler="a11y_contrast_cb" swapped="no"/>
                  </object>
                </child>
              </object>
            </child>
          </object>
        </child>
      </object>
    </child>
  </object>
  <object class="GtkListStore" id="session_liststore">
    <columns>
      <!-- column-name label -->
      <column type="gchararray"/>
      <!-- column-name key -->
      <column type="gchararray"/>
    </columns>
  </object>
  <object class="GtkListStore" id="user_liststore">
    <columns>
      <!-- column-name username -->
      <column type="gchararray"/>
      <!-- column-name label -->
      <column type="gchararray"/>
      <!-- column-name weight -->
      <column type="gint"/>
      <!-- column-name image -->
      <column type="GdkPixbuf"/>
    </columns>
  </object>
</interface>
e /etc/lightdm/lightdm-gtk-greeter.conf

Codice: Seleziona tutto

#
# background = Background file to use, either an image path or a color (e.g. #772953)
# theme-name = GTK+ theme to use
# font-name = Font to use
# xft-antialias = Whether to antialias Xft fonts (true or false)
# xft-dpi = Resolution for Xft in dots per inch (e.g. 96)
# xft-hintstyle = What degree of hinting to use (hintnone, hintslight, hintmedium, or hintfull)
# xft-rgba = Type of subpixel antialiasing (none, rgb, bgr, vrgb or vbgr)
# show-language-selector (true or false)
#
[greeter]
background=/home/gio/sfondi/ubuntublu.jpg
theme-name=Zukitwo
font-name=Sans 10
show-language-selector=true
grazie mille a chi saprà aiutarmi.
ciao
Giothebest

Re: personalizzare lightdm-gtk-greeter

Messaggio da Giothebest »

propio nessuno?
Scrivi risposta

Ritorna a “Personalizzazione dell'ambiente desktop”

Chi c’è in linea

Visualizzano questa sezione: Google [Bot] e 4 ospiti