Skip to content

Commit

Permalink
Added autostart, and more..
Browse files Browse the repository at this point in the history
  • Loading branch information
Abraham Masri committed Feb 6, 2017
1 parent 39025ac commit 56a77d2
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 3 deletions.
20 changes: 20 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -72,3 +72,23 @@ install(DIRECTORY data/Icons/ DESTINATION /System/Resources/Komorebi)

######### Other ############
install(FILES data/Other/komorebi.desktop DESTINATION /usr/share/applications/)
install(FILES data/Other/komorebi.desktop DESTINATION $ENV{HOME}/.config/autostart)


# Packaging configuration
set(CPACK_GENERATOR "DEB")
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Komorebi - an awesome wallpapers manager for Linux")
set(CPACK_PACKAGE_VENDOR "")
set(CPACK_PACKAGE_CONTACT "Abraham Masri <[email protected]>")
set(CPACK_PACKAGE_DESCRIPTION_FILE "${CMAKE_CURRENT_SOURCE_DIR}/README.md")
set(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/LICENSE")
set(CPACK_PACKAGE_VERSION_MAJOR 0)
set(CPACK_PACKAGE_VERSION_MINOR 9)
set(CPACK_PACKAGE_VERSION_PATCH 0)
set(CPACK_PACKAGE_INSTALL_DIRECTORY "Komorebi")

set(CPACK_DEBIAN_PACKAGE_DEPENDS "libgtk-3-0 (>= 3.14), libglib2.0-0 (>= 2.38), libgtop2-common")
set(CPACK_DEBIAN_PACKAGE_ARCHITECTURE "amd64")
set(CPACK_DEBIAN_PACKAGE_SECTION "system")

include(CPack)
3 changes: 2 additions & 1 deletion data/Other/komorebi.desktop
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ Exec=/System/Applications/komorebi
Terminal=false
Type=Application
StartupNotify=true
Categories=GNOME;GTK;System;
Categories=GNOME;GTK;System;
X-GNOME-Autostart-enabled=true
7 changes: 5 additions & 2 deletions src/OnScreen/BackgroundWindow.vala
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ namespace Komorebi.OnScreen {

// Current animation mode
string currentAnimationMode = "none";
bool dateTimeBoxParallax = false;


// Gradient bg animation (if available)
string gradientBackground = "";
Expand Down Expand Up @@ -207,7 +209,7 @@ namespace Komorebi.OnScreen {

currentAnimationMode = keyFile.get_string ("Komorebi", "AnimationMode");
int animationSpeed = keyFile.get_integer ("Komorebi", "AnimationSpeed");
bool parallax = keyFile.get_boolean ("Komorebi", "DateTimeBoxParallax");
dateTimeBoxParallax = keyFile.get_boolean ("Komorebi", "DateTimeBoxParallax");


int dateTimeBoxMarginLeft = keyFile.get_integer ("Komorebi", "DateTimeBoxMarginLeft");
Expand Down Expand Up @@ -288,7 +290,8 @@ namespace Komorebi.OnScreen {

// Animation if parallax is enabled
if(currentAnimationMode != "parallax-bg") {
if(parallax) {

if(dateTimeBoxParallax) {

// Calculate the percentage of how far the cursor is
// from the edges of the screen
Expand Down

0 comments on commit 56a77d2

Please sign in to comment.