Skip to content

KHZ-INTL/sddm-video-music-theme

Repository files navigation

sddm-video-music theme

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.

Screenshots and videos

Alt text Alt text Alt text

preview3

What has changed?

  • 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.

What is included?

  • 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
  • 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.

Things may be implemented/changed

  • Rounded user icon
  • Move username text below image
  • Weather
  • notifications / Recent notifications

Dependencies

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'

Installation

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.

Questions and Answers

  1. 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?

Credits

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.

License

Theme is licensed under GPL.

About

This is a SDDM theme based on @Eayu/Clairvoyance and @3ximus/aerial-sddm-theme. It was modified to have a video as background and also play music.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages