This is a SDDM theme based on @Eayu's Clairvoyance theme but also includes code from @3ximus Aerial-sddm-theme. The Clairvoyance theme was modified to have videos play as background and also play music. Music and videos are loaded from a playlist. To avoid reinventing the "wheel" I have used most of the code from the Clairvoyance and aerial-sddm-theme.
- User selection is disabled, but you can change that in the Main.qml file:
- set "ChooseUser" visibility property to true. It is on line 278.
- The User login image and form is hidden. Press ENTER to make it visible. AFAIT this might be a side effect of hiding the user selection element.
-
Video background: Play videos as background from playlist/s.
- There are two video playlist files. One for videos that are suitable for day, the other for night. The playlist is selected based on the time. You can fine tune the logic in the Main.qml file at line 355. Thanks to 3ximus.
- The playlist files are located in the Assets folder in this repo. The file names are "playlist_day.m3u" and "playlist_night.m3u".
- Videos can be loaded from local hardsik or from the Internet.
- In regards to populating the video playlist please see 3ximus' aerial-sddm-theme ReadMe.
-
Image Background: In case video is not accessible, background image is used. Also used when transitioning between videos.
-
Music: Play music in the background from playlist.
- The music playlist file "music.m3u" is located in the Assets folder in this repo.
- Populate the music playlist file by:
- Write the full path of the music file. One file per line. This can be automated by using shell, see the "Other notes" section of 3ximus' aerial-sddm-theme ReadMe.
-
Time and Date
- Font changed to Fira Sans
- Can change font and font size or other properties. See Main.qml line 136.
- The X and Y coordinates are located in the theme.conf
- Font changed to Fira Sans
-
Weather: Not implemented at the moment unfortunately
- Have the resources to implement it? Send me a email: khz.intl@gmail.com or a pull request.
- Rounded user icon
- Move username text below image
- Weather
- notifications / Recent notifications
Since most of the components are used from @Eayu's Clairvoyance and @3ximus' Aerial-sddm-theme you need to have the following installed:
- sddm
- qt5
- ttf-fira-mono
To install them:
- on Arch linux: 'sudo pacman -S sddm qt5 ttf-fira-mono'
- on Debian: 'sudo apt-get install sddm qt5 ttf-fira-mono'
If that is not sufficient to run consider installing:
- gst-libav
- phonon-qt5-gstreamer
- gst-plugins-good
To install them:
- on Arch linux: 'sudo pacman -S gst-libav phonon-qt5-gstreamer gst-plugins-good'
First clone the repository:
git clone https://github.com/KHZ-INTL/sddm-video-music-theme
Make sure that you have the required dependencies installed.
Then move it to the sddm-themes directory:
sudo mv sddm-video-music-theme /usr/share/sddm/themes/
Then set the current theme to sddm-video-music-theme in sddm.conf:
sudo vim /etc/sddm.conf
and set "Current" equal to "sddm-video-music-theme" (no speech marks).
Populate video playlist with videos: "playlist_day.m3u" and "playlist_night.m3u". They are located in the Assets directory.
One video url per line:
/home/myUserName/Videos/GreatWallofChina.mov
/home/myUserName/Videos/Dubai.mov
Populate music playlist with music. The playlist file ("music.m3u") is located in the Assets directory:
One music url per line:
/home/myUserName/Music/return.mp3
/home/myUserName/Music/engage.mp3
Replace the background image. The default background image is located in the assets directory.
- Video is not visible, but background image is? This means SDDM was not able to load the video and this can be caused by many factors:
- Permissions: SDDM/QT does not have the permission to access/read the video files. Try changing the read permission for "others" for the video files. Also consider having the videos in a folder where SDDM/QT have permission to access that and its parent folders.
- Incompatible video format: SDDM/QT may not be able to process the video file in that format, try another format, mp4?
- Host: The host may not be accessable. Do you have an internet connection?, is the webserver alive?, correct URL, 404?
Thanks to:
- @Eayu's for his wonderful theme, Clairvoyance. Shamelessly stole his installation instructions, sorry no time to write one my self.
- @3ximus for his wonderful theme, Aerial-sddm-theme. Also awesome license.
- Apple's Aerial videos.
Theme is licensed under GPL.