New Setup 📦
BIN
themes/sddm/faces/.face.icon
Normal file
After Width: | Height: | Size: 4.8 KiB |
BIN
themes/sddm/faces/luca.face.icon
Normal file
After Width: | Height: | Size: 16 KiB |
BIN
themes/sddm/faces/root.face.icon
Normal file
After Width: | Height: | Size: 5 KiB |
BIN
themes/sddm/flags/ae.png
Normal file
After Width: | Height: | Size: 178 B |
BIN
themes/sddm/flags/am.png
Normal file
After Width: | Height: | Size: 175 B |
BIN
themes/sddm/flags/ar.png
Normal file
After Width: | Height: | Size: 350 B |
BIN
themes/sddm/flags/at.png
Normal file
After Width: | Height: | Size: 219 B |
BIN
themes/sddm/flags/az.png
Normal file
After Width: | Height: | Size: 677 B |
BIN
themes/sddm/flags/be.png
Normal file
After Width: | Height: | Size: 214 B |
BIN
themes/sddm/flags/bg.png
Normal file
After Width: | Height: | Size: 209 B |
BIN
themes/sddm/flags/bh.png
Normal file
After Width: | Height: | Size: 797 B |
BIN
themes/sddm/flags/br.png
Normal file
After Width: | Height: | Size: 885 B |
BIN
themes/sddm/flags/by.png
Normal file
After Width: | Height: | Size: 1 KiB |
BIN
themes/sddm/flags/ca.png
Normal file
After Width: | Height: | Size: 379 B |
BIN
themes/sddm/flags/ch.png
Normal file
After Width: | Height: | Size: 247 B |
BIN
themes/sddm/flags/cu.png
Normal file
After Width: | Height: | Size: 1,009 B |
BIN
themes/sddm/flags/cz.png
Normal file
After Width: | Height: | Size: 375 B |
BIN
themes/sddm/flags/de.png
Normal file
After Width: | Height: | Size: 220 B |
BIN
themes/sddm/flags/dj.png
Normal file
After Width: | Height: | Size: 457 B |
BIN
themes/sddm/flags/dk.png
Normal file
After Width: | Height: | Size: 227 B |
BIN
themes/sddm/flags/dz.png
Normal file
After Width: | Height: | Size: 253 B |
BIN
themes/sddm/flags/ee.png
Normal file
After Width: | Height: | Size: 220 B |
BIN
themes/sddm/flags/eg.png
Normal file
After Width: | Height: | Size: 993 B |
BIN
themes/sddm/flags/es.png
Normal file
After Width: | Height: | Size: 221 B |
BIN
themes/sddm/flags/eu.png
Normal file
After Width: | Height: | Size: 2.4 KiB |
BIN
themes/sddm/flags/fi.png
Normal file
After Width: | Height: | Size: 234 B |
BIN
themes/sddm/flags/fr.png
Normal file
After Width: | Height: | Size: 214 B |
BIN
themes/sddm/flags/gb.png
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
themes/sddm/flags/ge.png
Normal file
After Width: | Height: | Size: 178 B |
BIN
themes/sddm/flags/gr.png
Normal file
After Width: | Height: | Size: 262 B |
BIN
themes/sddm/flags/hr.png
Normal file
After Width: | Height: | Size: 2.4 KiB |
BIN
themes/sddm/flags/hu.png
Normal file
After Width: | Height: | Size: 223 B |
BIN
themes/sddm/flags/il.png
Normal file
After Width: | Height: | Size: 382 B |
BIN
themes/sddm/flags/in.png
Normal file
After Width: | Height: | Size: 622 B |
BIN
themes/sddm/flags/iq.png
Normal file
After Width: | Height: | Size: 292 B |
BIN
themes/sddm/flags/is.png
Normal file
After Width: | Height: | Size: 260 B |
BIN
themes/sddm/flags/it.png
Normal file
After Width: | Height: | Size: 221 B |
BIN
themes/sddm/flags/jo.png
Normal file
After Width: | Height: | Size: 992 B |
BIN
themes/sddm/flags/jp.png
Normal file
After Width: | Height: | Size: 321 B |
BIN
themes/sddm/flags/km.png
Normal file
After Width: | Height: | Size: 281 B |
BIN
themes/sddm/flags/kr.png
Normal file
After Width: | Height: | Size: 1.4 KiB |
BIN
themes/sddm/flags/kw.png
Normal file
After Width: | Height: | Size: 232 B |
BIN
themes/sddm/flags/la.png
Normal file
After Width: | Height: | Size: 281 B |
BIN
themes/sddm/flags/lb.png
Normal file
After Width: | Height: | Size: 657 B |
BIN
themes/sddm/flags/lt.png
Normal file
After Width: | Height: | Size: 223 B |
BIN
themes/sddm/flags/lv.png
Normal file
After Width: | Height: | Size: 200 B |
BIN
themes/sddm/flags/ly.png
Normal file
After Width: | Height: | Size: 165 B |
BIN
themes/sddm/flags/ma.png
Normal file
After Width: | Height: | Size: 217 B |
BIN
themes/sddm/flags/mk.png
Normal file
After Width: | Height: | Size: 1.3 KiB |
BIN
themes/sddm/flags/mn.png
Normal file
After Width: | Height: | Size: 384 B |
BIN
themes/sddm/flags/mx.png
Normal file
After Width: | Height: | Size: 820 B |
BIN
themes/sddm/flags/nl.png
Normal file
After Width: | Height: | Size: 220 B |
BIN
themes/sddm/flags/no.png
Normal file
After Width: | Height: | Size: 257 B |
BIN
themes/sddm/flags/om.png
Normal file
After Width: | Height: | Size: 884 B |
BIN
themes/sddm/flags/pl.png
Normal file
After Width: | Height: | Size: 211 B |
BIN
themes/sddm/flags/ps.png
Normal file
After Width: | Height: | Size: 248 B |
BIN
themes/sddm/flags/pt.png
Normal file
After Width: | Height: | Size: 607 B |
BIN
themes/sddm/flags/qa.png
Normal file
After Width: | Height: | Size: 290 B |
BIN
themes/sddm/flags/qc.png
Normal file
After Width: | Height: | Size: 357 B |
BIN
themes/sddm/flags/ro.png
Normal file
After Width: | Height: | Size: 222 B |
BIN
themes/sddm/flags/ru.png
Normal file
After Width: | Height: | Size: 215 B |
BIN
themes/sddm/flags/sa.png
Normal file
After Width: | Height: | Size: 384 B |
BIN
themes/sddm/flags/sd.png
Normal file
After Width: | Height: | Size: 339 B |
BIN
themes/sddm/flags/se.png
Normal file
After Width: | Height: | Size: 202 B |
BIN
themes/sddm/flags/si.png
Normal file
After Width: | Height: | Size: 289 B |
BIN
themes/sddm/flags/sk.png
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
themes/sddm/flags/so.png
Normal file
After Width: | Height: | Size: 262 B |
BIN
themes/sddm/flags/sr.png
Normal file
After Width: | Height: | Size: 202 B |
BIN
themes/sddm/flags/sy.png
Normal file
After Width: | Height: | Size: 268 B |
BIN
themes/sddm/flags/th.png
Normal file
After Width: | Height: | Size: 227 B |
BIN
themes/sddm/flags/tn.png
Normal file
After Width: | Height: | Size: 228 B |
BIN
themes/sddm/flags/tr.png
Normal file
After Width: | Height: | Size: 392 B |
BIN
themes/sddm/flags/ua.png
Normal file
After Width: | Height: | Size: 170 B |
BIN
themes/sddm/flags/uk.png
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
themes/sddm/flags/un.png
Normal file
After Width: | Height: | Size: 1 KiB |
BIN
themes/sddm/flags/us.png
Normal file
After Width: | Height: | Size: 889 B |
BIN
themes/sddm/flags/uy.png
Normal file
After Width: | Height: | Size: 932 B |
BIN
themes/sddm/flags/vn.png
Normal file
After Width: | Height: | Size: 269 B |
BIN
themes/sddm/flags/ye.png
Normal file
After Width: | Height: | Size: 214 B |
BIN
themes/sddm/flags/yu.png
Normal file
After Width: | Height: | Size: 204 B |
BIN
themes/sddm/flags/zz.png
Normal file
After Width: | Height: | Size: 297 B |
105
themes/sddm/scripts/Xsession
Executable file
|
@ -0,0 +1,105 @@
|
|||
#! /bin/sh
|
||||
# Xsession - run as user
|
||||
# Copyright (C) 2016 Pier Luigi Fiorini <pierluigi.fiorini@gmail.com>
|
||||
|
||||
# This file is extracted from kde-workspace (kdm/kfrontend/genkdmconf.c)
|
||||
# Copyright (C) 2001-2005 Oswald Buddenhagen <ossi@kde.org>
|
||||
|
||||
# Note that the respective logout scripts are not sourced.
|
||||
case $SHELL in
|
||||
*/bash)
|
||||
[ -z "$BASH" ] && exec $SHELL $0 "$@"
|
||||
set +o posix
|
||||
[ -f /etc/profile ] && . /etc/profile
|
||||
if [ -f $HOME/.bash_profile ]; then
|
||||
. $HOME/.bash_profile
|
||||
elif [ -f $HOME/.bash_login ]; then
|
||||
. $HOME/.bash_login
|
||||
elif [ -f $HOME/.profile ]; then
|
||||
. $HOME/.profile
|
||||
fi
|
||||
;;
|
||||
*/zsh)
|
||||
[ -z "$ZSH_NAME" ] && exec $SHELL $0 "$@"
|
||||
[ -d /etc/zsh ] && zdir=/etc/zsh || zdir=/etc
|
||||
zhome=${ZDOTDIR:-$HOME}
|
||||
# zshenv is always sourced automatically.
|
||||
[ -f $zdir/zprofile ] && . $zdir/zprofile
|
||||
[ -f $zhome/.zprofile ] && . $zhome/.zprofile
|
||||
[ -f $zdir/zlogin ] && . $zdir/zlogin
|
||||
[ -f $zhome/.zlogin ] && . $zhome/.zlogin
|
||||
emulate -R sh
|
||||
;;
|
||||
*/csh|*/tcsh)
|
||||
# [t]cshrc is always sourced automatically.
|
||||
# Note that sourcing csh.login after .cshrc is non-standard.
|
||||
xsess_tmp=`mktemp /tmp/xsess-env-XXXXXX`
|
||||
$SHELL -c "if (-f /etc/csh.login) source /etc/csh.login; if (-f ~/.login) source ~/.login; /bin/sh -c 'export -p' >! $xsess_tmp"
|
||||
. $xsess_tmp
|
||||
rm -f $xsess_tmp
|
||||
;;
|
||||
*/fish)
|
||||
xsess_tmp=`mktemp /tmp/xsess-env-XXXXXX`
|
||||
$SHELL --login -c "/bin/sh -c 'export -p' > $xsess_tmp"
|
||||
. $xsess_tmp
|
||||
rm -f $xsess_tmp
|
||||
;;
|
||||
*) # Plain sh, ksh, and anything we do not know.
|
||||
[ -f /etc/profile ] && . /etc/profile
|
||||
[ -f $HOME/.profile ] && . $HOME/.profile
|
||||
;;
|
||||
esac
|
||||
|
||||
[ -f /etc/xprofile ] && . /etc/xprofile
|
||||
[ -f /usr/local/etc/xprofile ] && . /usr/local/etc/xprofile
|
||||
[ -f $HOME/.xprofile ] && . $HOME/.xprofile
|
||||
|
||||
# run all system xinitrc shell scripts.
|
||||
if [ -d /etc/X11/xinit/xinitrc.d ]; then
|
||||
for i in /etc/X11/xinit/xinitrc.d/* ; do
|
||||
if [ -x "$i" ]; then
|
||||
. "$i"
|
||||
fi
|
||||
done
|
||||
fi
|
||||
|
||||
# Load Xsession scripts
|
||||
# OPTIONFILE, USERXSESSION, USERXSESSIONRC and ALTUSERXSESSION are required
|
||||
# by the scripts to work
|
||||
xsessionddir="/etc/X11/Xsession.d"
|
||||
OPTIONFILE=/etc/X11/Xsession.options
|
||||
USERXSESSION=$HOME/.xsession
|
||||
USERXSESSIONRC=$HOME/.xsessionrc
|
||||
ALTUSERXSESSION=$HOME/.Xsession
|
||||
|
||||
if [ -d "$xsessionddir" ]; then
|
||||
for i in `ls $xsessionddir`; do
|
||||
script="$xsessionddir/$i"
|
||||
echo "Loading X session script $script"
|
||||
if [ -r "$script" -a -f "$script" ] && expr "$i" : '^[[:alnum:]_-]\{1,\}$' > /dev/null; then
|
||||
. "$script"
|
||||
fi
|
||||
done
|
||||
fi
|
||||
|
||||
if [ -d /etc/X11/Xresources ]; then
|
||||
for i in /etc/X11/Xresources/*; do
|
||||
[ -f $i ] && xrdb -merge $i
|
||||
done
|
||||
elif [ -f /etc/X11/Xresources ]; then
|
||||
xrdb -merge /etc/X11/Xresources
|
||||
fi
|
||||
[ -f $HOME/.Xresources ] && xrdb -merge $HOME/.Xresources
|
||||
|
||||
if [ -f "$USERXSESSIONRC" ]; then
|
||||
. "$USERXSESSIONRC"
|
||||
fi
|
||||
if [ -f "$USERXSESSION" ]; then
|
||||
. "$USERXSESSION"
|
||||
fi
|
||||
|
||||
if [ -z "$*" ]; then
|
||||
exec xmessage -center -buttons OK:0 -default OK "Sorry, $DESKTOP_SESSION is no valid session."
|
||||
else
|
||||
exec $@
|
||||
fi
|
8
themes/sddm/scripts/Xsetup
Executable file
|
@ -0,0 +1,8 @@
|
|||
#!/bin/sh
|
||||
# Xsetup - run as root before the login dialog appears
|
||||
# Screen With Xrandr:
|
||||
#xrandr --output eDP-1 --mode 1366x768 --pos 0x132 --rotate normal --output HDMI-1 --primary --mode 1600x900 --pos 1366x0 --rotate normal &
|
||||
xrandr --output eDP-1 --mode 1366x768 --pos 1600x132 --rotate normal --output HDMI-1 --primary --mode 1600x900 --pos 0x0 --rotate normal &
|
||||
|
||||
# Keybord Layout :
|
||||
setxkbmap -layout fr,dz -variant ,ar -option grp:alt_shift_toggle
|
2
themes/sddm/scripts/Xstop
Executable file
|
@ -0,0 +1,2 @@
|
|||
#!/bin/sh
|
||||
# Xstop - run as root after stopping X
|
53
themes/sddm/scripts/wayland-session
Executable file
|
@ -0,0 +1,53 @@
|
|||
#!/bin/sh
|
||||
# wayland-session - run as user
|
||||
# Copyright (C) 2015-2016 Pier Luigi Fiorini <pierluigi.fiorini@gmail.com>
|
||||
|
||||
# This file is extracted from kde-workspace (kdm/kfrontend/genkdmconf.c)
|
||||
# Copyright (C) 2001-2005 Oswald Buddenhagen <ossi@kde.org>
|
||||
|
||||
# Note that the respective logout scripts are not sourced.
|
||||
case $SHELL in
|
||||
*/bash)
|
||||
[ -z "$BASH" ] && exec $SHELL $0 "$@"
|
||||
set +o posix
|
||||
[ -f /etc/profile ] && . /etc/profile
|
||||
if [ -f $HOME/.bash_profile ]; then
|
||||
. $HOME/.bash_profile
|
||||
elif [ -f $HOME/.bash_login ]; then
|
||||
. $HOME/.bash_login
|
||||
elif [ -f $HOME/.profile ]; then
|
||||
. $HOME/.profile
|
||||
fi
|
||||
;;
|
||||
*/zsh)
|
||||
[ -z "$ZSH_NAME" ] && exec $SHELL $0 "$@"
|
||||
[ -d /etc/zsh ] && zdir=/etc/zsh || zdir=/etc
|
||||
zhome=${ZDOTDIR:-$HOME}
|
||||
# zshenv is always sourced automatically.
|
||||
[ -f $zdir/zprofile ] && . $zdir/zprofile
|
||||
[ -f $zhome/.zprofile ] && . $zhome/.zprofile
|
||||
[ -f $zdir/zlogin ] && . $zdir/zlogin
|
||||
[ -f $zhome/.zlogin ] && . $zhome/.zlogin
|
||||
emulate -R sh
|
||||
;;
|
||||
*/csh|*/tcsh)
|
||||
# [t]cshrc is always sourced automatically.
|
||||
# Note that sourcing csh.login after .cshrc is non-standard.
|
||||
wlsess_tmp=`mktemp /tmp/wlsess-env-XXXXXX`
|
||||
$SHELL -c "if (-f /etc/csh.login) source /etc/csh.login; if (-f ~/.login) source ~/.login; /bin/sh -c 'export -p' >! $wlsess_tmp"
|
||||
. $wlsess_tmp
|
||||
rm -f $wlsess_tmp
|
||||
;;
|
||||
*/fish)
|
||||
xsess_tmp=`mktemp /tmp/xsess-env-XXXXXX`
|
||||
$SHELL --login -c "/bin/sh -c 'export -p' > $xsess_tmp"
|
||||
. $xsess_tmp
|
||||
rm -f $xsess_tmp
|
||||
;;
|
||||
*) # Plain sh, ksh, and anything we do not know.
|
||||
[ -f /etc/profile ] && . /etc/profile
|
||||
[ -f $HOME/.profile ] && . $HOME/.profile
|
||||
;;
|
||||
esac
|
||||
|
||||
exec $@
|
295
themes/sddm/themes/elarun/Main.qml
Normal file
|
@ -0,0 +1,295 @@
|
|||
/***************************************************************************
|
||||
* Copyright (c) 2013 Reza Fatahilah Shah <rshah0385@kireihana.com>
|
||||
* Copyright (c) 2013 Abdurrahman AVCI <abdurrahmanavci@gmail.com>
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person
|
||||
* obtaining a copy of this software and associated documentation
|
||||
* files (the "Software"), to deal in the Software without restriction,
|
||||
* including without limitation the rights to use, copy, modify, merge,
|
||||
* publish, distribute, sublicense, and/or sell copies of the Software,
|
||||
* and to permit persons to whom the Software is furnished to do so,
|
||||
* subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included
|
||||
* in all copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
||||
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
||||
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
|
||||
* OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
|
||||
* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE
|
||||
* OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
*
|
||||
***************************************************************************/
|
||||
|
||||
import QtQuick 2.0
|
||||
import SddmComponents 2.0
|
||||
|
||||
Rectangle {
|
||||
width: 640
|
||||
height: 480
|
||||
|
||||
LayoutMirroring.enabled: Qt.locale().textDirection == Qt.RightToLeft
|
||||
LayoutMirroring.childrenInherit: true
|
||||
|
||||
property int sessionIndex: session.index
|
||||
|
||||
TextConstants { id: textConstants }
|
||||
|
||||
Connections {
|
||||
target: sddm
|
||||
onLoginSucceeded: {
|
||||
}
|
||||
onLoginFailed: {
|
||||
pw_entry.text = ""
|
||||
}
|
||||
}
|
||||
|
||||
Background {
|
||||
anchors.fill: parent
|
||||
source: config.background
|
||||
fillMode: Image.PreserveAspectCrop
|
||||
onStatusChanged: {
|
||||
if (status == Image.Error && source != config.defaultBackground) {
|
||||
source = config.defaultBackground
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Rectangle {
|
||||
anchors.fill: parent
|
||||
color: "transparent"
|
||||
//visible: primaryScreen
|
||||
|
||||
Rectangle {
|
||||
width: 416; height: 262
|
||||
color: "#00000000"
|
||||
|
||||
anchors.centerIn: parent
|
||||
|
||||
Image {
|
||||
anchors.fill: parent
|
||||
source: "images/rectangle.png"
|
||||
}
|
||||
|
||||
Image {
|
||||
anchors.fill: parent
|
||||
source: "images/rectangle_overlay.png"
|
||||
opacity: 0.1
|
||||
}
|
||||
|
||||
Item {
|
||||
anchors.margins: 20
|
||||
anchors.fill: parent
|
||||
|
||||
Text {
|
||||
height: 50
|
||||
anchors.top: parent.top
|
||||
anchors.left: parent.left; anchors.right: parent.right
|
||||
|
||||
color: "#0b678c"
|
||||
opacity: 0.75
|
||||
|
||||
text: sddm.hostName
|
||||
|
||||
font.bold: true
|
||||
font.pixelSize: 18
|
||||
}
|
||||
|
||||
Column {
|
||||
anchors.centerIn: parent
|
||||
|
||||
Row {
|
||||
Image { source: "images/user_icon.png" }
|
||||
|
||||
TextBox {
|
||||
id: user_entry
|
||||
|
||||
width: 150; height: 30
|
||||
anchors.verticalCenter: parent.verticalCenter;
|
||||
|
||||
text: userModel.lastUser
|
||||
|
||||
font.pixelSize: 14
|
||||
|
||||
KeyNavigation.backtab: layoutBox; KeyNavigation.tab: pw_entry
|
||||
}
|
||||
}
|
||||
|
||||
Row {
|
||||
|
||||
Image { source: "images/lock.png" }
|
||||
|
||||
PasswordBox {
|
||||
id: pw_entry
|
||||
width: 150; height: 30
|
||||
anchors.verticalCenter: parent.verticalCenter;
|
||||
|
||||
tooltipBG: "CornflowerBlue"
|
||||
|
||||
font.pixelSize: 14
|
||||
|
||||
KeyNavigation.backtab: user_entry; KeyNavigation.tab: login_button
|
||||
|
||||
Keys.onPressed: {
|
||||
if (event.key === Qt.Key_Return || event.key === Qt.Key_Enter) {
|
||||
sddm.login(user_entry.text, pw_entry.text, sessionIndex)
|
||||
event.accepted = true
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
ImageButton {
|
||||
id: login_button
|
||||
anchors.right: parent.right
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
anchors.margins: 20
|
||||
|
||||
source: "images/login_normal.png"
|
||||
|
||||
onClicked: sddm.login(user_entry.text, pw_entry.text, sessionIndex)
|
||||
|
||||
KeyNavigation.backtab: pw_entry; KeyNavigation.tab: session_button
|
||||
}
|
||||
|
||||
Item {
|
||||
height: 20
|
||||
anchors.bottom: parent.bottom
|
||||
anchors.left: parent.left; anchors.right: parent.right
|
||||
|
||||
Row {
|
||||
id: buttonRow
|
||||
anchors.left: parent.left
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
|
||||
spacing: 8
|
||||
|
||||
ImageButton {
|
||||
id: system_button
|
||||
source: "images/system_shutdown.png"
|
||||
onClicked: sddm.powerOff()
|
||||
|
||||
KeyNavigation.backtab: session_button; KeyNavigation.tab: reboot_button
|
||||
}
|
||||
|
||||
ImageButton {
|
||||
id: reboot_button
|
||||
source: "images/system_reboot.png"
|
||||
onClicked: sddm.reboot()
|
||||
|
||||
KeyNavigation.backtab: system_button; KeyNavigation.tab: suspend_button
|
||||
}
|
||||
|
||||
ImageButton {
|
||||
id: suspend_button
|
||||
source: "images/system_suspend.png"
|
||||
visible: sddm.canSuspend
|
||||
onClicked: sddm.suspend()
|
||||
|
||||
KeyNavigation.backtab: reboot_button; KeyNavigation.tab: hibernate_button
|
||||
}
|
||||
|
||||
ImageButton {
|
||||
id: hibernate_button
|
||||
source: "images/system_hibernate.png"
|
||||
visible: sddm.canHibernate
|
||||
onClicked: sddm.hibernate()
|
||||
|
||||
KeyNavigation.backtab: suspend_button; KeyNavigation.tab: session
|
||||
}
|
||||
}
|
||||
|
||||
Timer {
|
||||
id: time
|
||||
interval: 100
|
||||
running: true
|
||||
repeat: true
|
||||
|
||||
onTriggered: {
|
||||
dateTime.text = Qt.formatDateTime(new Date(), "dddd, dd MMMM yyyy HH:mm AP")
|
||||
}
|
||||
}
|
||||
|
||||
Text {
|
||||
id: dateTime
|
||||
anchors.right: parent.right
|
||||
anchors.bottom: parent.bottom
|
||||
horizontalAlignment: Text.AlignRight
|
||||
|
||||
color: "#0b678c"
|
||||
font.bold: true
|
||||
font.pixelSize: 12
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Rectangle {
|
||||
id: actionBar
|
||||
anchors.top: parent.top;
|
||||
anchors.horizontalCenter: parent.horizontalCenter
|
||||
width: parent.width; height: 40
|
||||
|
||||
Row {
|
||||
anchors.left: parent.left
|
||||
anchors.margins: 5
|
||||
height: parent.height
|
||||
spacing: 5
|
||||
|
||||
Text {
|
||||
height: parent.height
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
|
||||
text: textConstants.session
|
||||
font.pixelSize: 14
|
||||
verticalAlignment: Text.AlignVCenter
|
||||
}
|
||||
|
||||
ComboBox {
|
||||
id: session
|
||||
width: 245
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
|
||||
arrowIcon: "angle-down.png"
|
||||
|
||||
model: sessionModel
|
||||
index: sessionModel.lastIndex
|
||||
|
||||
font.pixelSize: 14
|
||||
|
||||
KeyNavigation.backtab: hibernate_button; KeyNavigation.tab: layoutBox
|
||||
}
|
||||
|
||||
Text {
|
||||
height: parent.height
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
|
||||
text: textConstants.layout
|
||||
font.pixelSize: 14
|
||||
verticalAlignment: Text.AlignVCenter
|
||||
}
|
||||
|
||||
LayoutBox {
|
||||
id: layoutBox
|
||||
width: 90
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
font.pixelSize: 14
|
||||
|
||||
arrowIcon: "angle-down.png"
|
||||
|
||||
KeyNavigation.backtab: session; KeyNavigation.tab: user_entry
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Component.onCompleted: {
|
||||
if (user_entry.text === "")
|
||||
user_entry.focus = true
|
||||
else
|
||||
pw_entry.focus = true
|
||||
}
|
||||
}
|
13
themes/sddm/themes/elarun/README
Normal file
|
@ -0,0 +1,13 @@
|
|||
This theme is based on the KDM Elarun theme, ported to SDDM theme.
|
||||
Thanks to these people for their great works.
|
||||
Not all functionality from original theme are ported.
|
||||
|
||||
Background images:
|
||||
Author=Nuno Pinheiro
|
||||
Email=nuno@oxygen-icons.org
|
||||
License=LGPLv3
|
||||
|
||||
Original KDM theme:
|
||||
Author=Roman Shtylman & Nuno Pinheiro
|
||||
Copyright=GPL 2010 Roman Shtylman | nuno@oxygen-icons.org, 2012 Nuno Pineheiro
|
||||
License=GPL
|
BIN
themes/sddm/themes/elarun/angle-down.png
Normal file
After Width: | Height: | Size: 196 B |
BIN
themes/sddm/themes/elarun/elarun.jpg
Normal file
After Width: | Height: | Size: 88 KiB |
BIN
themes/sddm/themes/elarun/images/background.png
Normal file
After Width: | Height: | Size: 1.4 MiB |
BIN
themes/sddm/themes/elarun/images/lock.png
Normal file
After Width: | Height: | Size: 844 B |
BIN
themes/sddm/themes/elarun/images/login_active.png
Normal file
After Width: | Height: | Size: 3.3 KiB |
BIN
themes/sddm/themes/elarun/images/login_normal.png
Normal file
After Width: | Height: | Size: 3.3 KiB |
BIN
themes/sddm/themes/elarun/images/rectangle.png
Normal file
After Width: | Height: | Size: 16 KiB |
BIN
themes/sddm/themes/elarun/images/rectangle_overlay.png
Normal file
After Width: | Height: | Size: 245 B |
BIN
themes/sddm/themes/elarun/images/session_normal.png
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
themes/sddm/themes/elarun/images/system_hibernate.png
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
themes/sddm/themes/elarun/images/system_reboot.png
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
themes/sddm/themes/elarun/images/system_shutdown.png
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
themes/sddm/themes/elarun/images/system_suspend.png
Normal file
After Width: | Height: | Size: 1.2 KiB |