├── macifylinux ├── __init__.py ├── templates │ ├── sddm │ │ └── theme.conf.user │ ├── xsettingsd │ │ └── xsettingsd.conf │ ├── lookandfeel │ │ ├── com.github.jonchun.macify-linux-dark │ │ │ ├── contents │ │ │ │ └── defaults │ │ │ └── metadata.desktop │ │ └── com.github.jonchun.macify-linux-light │ │ │ ├── contents │ │ │ └── defaults │ │ │ └── metadata.desktop │ ├── changeWallpaper.js │ ├── removeDefaultPanels.js │ └── lattedock │ │ └── macifyLinux.layout.latte.fixedHeight ├── components │ ├── kde_plasma_chili │ │ ├── remove.sh │ │ ├── install.sh │ │ └── __init__.py │ ├── kde_hello │ │ ├── remove.sh │ │ ├── install.sh │ │ └── __init__.py │ ├── latte_dock │ │ ├── install.sh │ │ ├── configure.sh │ │ ├── __init__.py │ │ └── macifyLinux.layout.latte │ ├── custom_wallpaper │ │ ├── remove.sh │ │ ├── __init__.py │ │ └── install.sh │ ├── mcmojave_cursors │ │ ├── remove.sh │ │ ├── install.sh │ │ └── __init__.py │ ├── os_catalina_icons │ │ ├── remove.sh │ │ ├── install.sh │ │ └── __init__.py │ ├── mcmojave_kde │ │ ├── install.sh │ │ ├── remove.sh │ │ └── __init__.py │ ├── applet_window_appmenu │ │ ├── install.sh │ │ └── __init__.py │ ├── sf_fonts │ │ ├── remove.sh │ │ ├── install.sh │ │ └── __init__.py │ ├── albert │ │ ├── install.sh │ │ ├── configure.sh │ │ ├── __init__.py │ │ └── albert.conf │ ├── kinto │ │ ├── install.sh │ │ └── __init__.py │ ├── applet_latte_spacer │ │ └── __init__.py │ ├── applet_window_title │ │ └── __init__.py │ ├── mac_inline_battery │ │ └── __init__.py │ ├── applet_latte_separator │ │ └── __init__.py │ ├── applet_latte_sidebar_button │ │ └── __init__.py │ ├── uswitch │ │ └── __init__.py │ ├── kde_plasmoid_chiliclock │ │ └── __init__.py │ ├── notification_center │ │ └── __init__.py │ └── macify_linux_lookandfeel │ │ └── __init__.py ├── modules │ ├── __init__.py │ ├── hotkeys.py │ ├── spotlight.py │ ├── dockandpanel.py │ ├── plasmoids.py │ └── lookandfeel.py ├── globals.py ├── core.py └── utils.py ├── setup.py ├── images ├── macify-linux-1.png ├── macify-linux-2.png ├── macify-linux-3.png ├── macify-linux-4.png ├── macify-linux-5.png └── macify-linux-before.png ├── install.sh ├── .gitignore ├── README.md └── LICENSE /macifylinux/__init__.py: -------------------------------------------------------------------------------- 1 | from macifylinux.core import run 2 | -------------------------------------------------------------------------------- /setup.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/python3 2 | import macifylinux 3 | 4 | macifylinux.run() 5 | -------------------------------------------------------------------------------- /macifylinux/templates/sddm/theme.conf.user: -------------------------------------------------------------------------------- 1 | [General] 2 | background=$BACKGROUND_IMAGE 3 | type=image -------------------------------------------------------------------------------- /images/macify-linux-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonchun/macify-linux/HEAD/images/macify-linux-1.png -------------------------------------------------------------------------------- /images/macify-linux-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonchun/macify-linux/HEAD/images/macify-linux-2.png -------------------------------------------------------------------------------- /images/macify-linux-3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonchun/macify-linux/HEAD/images/macify-linux-3.png -------------------------------------------------------------------------------- /images/macify-linux-4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonchun/macify-linux/HEAD/images/macify-linux-4.png -------------------------------------------------------------------------------- /images/macify-linux-5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonchun/macify-linux/HEAD/images/macify-linux-5.png -------------------------------------------------------------------------------- /macifylinux/components/kde_plasma_chili/remove.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | sudo rm -rf ${SDDM_THEMES_DIR}/plasma-chili 3 | -------------------------------------------------------------------------------- /images/macify-linux-before.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonchun/macify-linux/HEAD/images/macify-linux-before.png -------------------------------------------------------------------------------- /macifylinux/components/kde_hello/remove.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | eval "$(python3 globals.py)" 3 | echo "Not Implemented!" 4 | -------------------------------------------------------------------------------- /macifylinux/components/latte_dock/install.sh: -------------------------------------------------------------------------------- 1 | eval "$(python3 globals.py)" 2 | 3 | cd ${SOURCES_DIR}/latte-dock 4 | bash ./install.sh 5 | -------------------------------------------------------------------------------- /macifylinux/components/custom_wallpaper/remove.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | eval "$(python3 globals.py)" 3 | rm -f ${WALLPAPERS_DIR}/${DEFAULT_WALLPAPER} -------------------------------------------------------------------------------- /macifylinux/components/mcmojave_cursors/remove.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | eval "$(python3 globals.py)" 3 | 4 | rm -rf ${ICONS_DIR}/McMojave-cursors 5 | -------------------------------------------------------------------------------- /macifylinux/components/os_catalina_icons/remove.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | eval "$(python3 globals.py)" 3 | 4 | rm -rf ${ICONS_DIR}/Os-Catalina-icons 5 | -------------------------------------------------------------------------------- /macifylinux/components/mcmojave_kde/install.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | eval "$(python3 globals.py)" 3 | 4 | cd ${SOURCES_DIR}/McMojave-kde 5 | bash ./install.sh 6 | -------------------------------------------------------------------------------- /macifylinux/components/mcmojave_kde/remove.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | eval "$(python3 globals.py)" 3 | 4 | cd ${SOURCES_DIR}/McMojave-kde 5 | bash ./uninstall.sh 6 | -------------------------------------------------------------------------------- /macifylinux/components/applet_window_appmenu/install.sh: -------------------------------------------------------------------------------- 1 | eval "$(python3 globals.py)" 2 | 3 | cd ${SOURCES_DIR}/applet-window-appmenu/ 4 | bash ./install.sh 5 | -------------------------------------------------------------------------------- /macifylinux/components/os_catalina_icons/install.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | eval "$(python3 globals.py)" 3 | 4 | cp -rf ${SOURCES_DIR}/Os-Catalina-icons ${ICONS_DIR} 5 | -------------------------------------------------------------------------------- /macifylinux/components/mcmojave_cursors/install.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | eval "$(python3 globals.py)" 3 | 4 | cp -Trf ${SOURCES_DIR}/McMojave-cursors/dist ${ICONS_DIR}/McMojave-cursors 5 | -------------------------------------------------------------------------------- /macifylinux/components/kde_plasma_chili/install.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | eval "$(python3 globals.py)" 3 | 4 | sudo cp -Trf ${SOURCES_DIR}/kde-plasma-chili ${SDDM_THEMES_DIR}/plasma-chili 5 | -------------------------------------------------------------------------------- /macifylinux/components/sf_fonts/remove.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | eval "$(python3 globals.py)" 3 | 4 | rm -rf ${FONTS_DIR}/SFCompact 5 | rm -rf ${FONTS_DIR}/SFMono 6 | rm -rf ${FONTS_DIR}/SFPro 7 | -------------------------------------------------------------------------------- /macifylinux/components/albert/install.sh: -------------------------------------------------------------------------------- 1 | eval "$(python3 globals.py)" 2 | 3 | cd ${SOURCES_DIR} 4 | echo ${SOURCES_DIR} 5 | mkdir -p albert-build 6 | cd albert-build 7 | cmake ../albert -DCMAKE_INSTALL_PREFIX=/usr/local -DCMAKE_BUILD_TYPE=Debug 8 | make 9 | sudo make install 10 | -------------------------------------------------------------------------------- /macifylinux/components/latte_dock/configure.sh: -------------------------------------------------------------------------------- 1 | eval "$(python3 globals.py)" 2 | 3 | LATTE_CONF_DIR=~/.config/latte/ 4 | 5 | # copy layout.latte file as a template 6 | cp -f "$COMPONENTS_DIR/latte_dock/macifyLinux.layout.latte" ${LATTE_CONF_DIR} 7 | chmod 644 ${LATTE_CONF_DIR}/macifyLinux.layout.latte 8 | -------------------------------------------------------------------------------- /macifylinux/components/sf_fonts/install.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | eval "$(python3 globals.py)" 3 | 4 | cp -rf ${SOURCES_DIR}/sfwin/SFCompact ${FONTS_DIR} 5 | cp -rf ${SOURCES_DIR}/sfwin/SFMono ${FONTS_DIR} 6 | cp -rf ${SOURCES_DIR}/sfwin/SFPro ${FONTS_DIR} 7 | 8 | # Refresh font cache 9 | fc-cache -fv 10 | -------------------------------------------------------------------------------- /install.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | GIT_CMD=$(which git 2>/dev/null) 4 | if [ -z "$GIT_CMD" ] 5 | then 6 | echo "git not found. need to install it!" 7 | sudo apt-get install -y git 8 | fi 9 | 10 | mkdir -p ~/sources 11 | cd ~/sources 12 | git clone https://github.com/Jonchun/macify-linux.git 13 | cd macify-linux 14 | python3 setup.py -------------------------------------------------------------------------------- /macifylinux/modules/__init__.py: -------------------------------------------------------------------------------- 1 | from glob import glob 2 | from importlib import import_module 3 | from pathlib import Path 4 | 5 | glob_list = glob("{}/*.py".format(Path(__file__).parent)) 6 | 7 | __all__ = [] 8 | for file in glob_list: 9 | file = Path(file) 10 | if file.name == "__init__.py": 11 | continue 12 | import_module("macifylinux.modules.{}".format(file.stem)) 13 | -------------------------------------------------------------------------------- /macifylinux/components/kinto/install.sh: -------------------------------------------------------------------------------- 1 | eval "$(python3 globals.py)" 2 | 3 | # Start the ibus-daemon and run im-config before starting kinto. I don't actually know what this does. 4 | ibus-daemon -drx 5 | im-config -n ibus 6 | 7 | cd ${SOURCES_DIR}/kinto 8 | python3 setup.py 9 | 10 | # Restart the keyswap service for good measure. I've had it get stuck sometimes. 11 | # systemctl --user restart keyswap 12 | -------------------------------------------------------------------------------- /macifylinux/templates/xsettingsd/xsettingsd.conf: -------------------------------------------------------------------------------- 1 | Net/ThemeName "Breeze" 2 | 3 | Gtk/EnableAnimations 1 4 | 5 | Gtk/DecorationLayout "close,minimize,maximize:" 6 | 7 | Gtk/PrimaryButtonWarpsSlider 0 8 | 9 | Gtk/ToolbarStyle 3 10 | 11 | Gtk/MenuImages 1 12 | 13 | Gtk/ButtonImages 1 14 | 15 | Gtk/CursorThemeName "$CURSOR_THEME" 16 | 17 | Net/IconThemeName "$ICON_THEME" 18 | 19 | Gtk/FontName "SF Pro Text, 10" 20 | -------------------------------------------------------------------------------- /macifylinux/modules/hotkeys.py: -------------------------------------------------------------------------------- 1 | """Hotkeys Module""" 2 | from macifylinux.components import kinto 3 | 4 | components = [kinto] 5 | 6 | 7 | def install(*args, **kwargs): 8 | for component in components: 9 | component.install(*args, **kwargs) 10 | 11 | 12 | def upgrade(*args, **kwargs): 13 | for component in components: 14 | component.upgrade(*args, **kwargs) 15 | 16 | 17 | def remove(*args, **kwargs): 18 | for component in components: 19 | component.remove(*args, **kwargs) 20 | -------------------------------------------------------------------------------- /macifylinux/modules/spotlight.py: -------------------------------------------------------------------------------- 1 | """Spotlight Module""" 2 | from macifylinux.components import albert 3 | 4 | components = [albert] 5 | 6 | 7 | def install(*args, **kwargs): 8 | for component in components: 9 | component.install(*args, **kwargs) 10 | 11 | 12 | def upgrade(*args, **kwargs): 13 | for component in components: 14 | component.upgrade(*args, **kwargs) 15 | 16 | 17 | def remove(*args, **kwargs): 18 | for component in components: 19 | component.remove(*args, **kwargs) 20 | -------------------------------------------------------------------------------- /macifylinux/templates/lookandfeel/com.github.jonchun.macify-linux-dark/contents/defaults: -------------------------------------------------------------------------------- 1 | [kdeglobals][KDE] 2 | widgetStyle=Breeze 3 | 4 | [kdeglobals][General] 5 | ColorScheme=HelloDark 6 | 7 | [kdeglobals][Icons] 8 | Theme=Os-Catalina-icons 9 | 10 | [plasmarc][Theme] 11 | name=hellodark 12 | 13 | [kwinrc][org.kde.kdecoration2] 14 | ButtonsOnLeft=XIA 15 | ButtonsOnRight= 16 | library=org.kde.hello 17 | BorderSizeAuto=false 18 | BorderSize=None 19 | theme=hello 20 | 21 | [kcminputrc][Mouse] 22 | cursorTheme=McMojave-cursors 23 | -------------------------------------------------------------------------------- /macifylinux/modules/dockandpanel.py: -------------------------------------------------------------------------------- 1 | """Dock & Panel Module""" 2 | from macifylinux.components import latte_dock 3 | 4 | components = [latte_dock] 5 | 6 | 7 | def install(*args, **kwargs): 8 | for component in components: 9 | component.install(*args, **kwargs) 10 | 11 | 12 | def upgrade(*args, **kwargs): 13 | for component in components: 14 | component.upgrade(*args, **kwargs) 15 | 16 | 17 | def remove(*args, **kwargs): 18 | for component in components: 19 | component.remove(*args, **kwargs) 20 | -------------------------------------------------------------------------------- /macifylinux/templates/lookandfeel/com.github.jonchun.macify-linux-light/contents/defaults: -------------------------------------------------------------------------------- 1 | [kdeglobals][KDE] 2 | widgetStyle=Breeze 3 | 4 | [kdeglobals][General] 5 | ColorScheme=HelloLight 6 | 7 | [kdeglobals][Icons] 8 | Theme=Os-Catalina-icons 9 | 10 | [plasmarc][Theme] 11 | name=hellolight 12 | 13 | [kwinrc][org.kde.kdecoration2] 14 | ButtonsOnLeft=XIA 15 | ButtonsOnRight= 16 | library=org.kde.hello 17 | BorderSizeAuto=false 18 | BorderSize=None 19 | theme=hello 20 | 21 | [kcminputrc][Mouse] 22 | cursorTheme=McMojave-cursors 23 | -------------------------------------------------------------------------------- /macifylinux/templates/changeWallpaper.js: -------------------------------------------------------------------------------- 1 | /* global desktops */ 2 | const all_desktops = desktops(); 3 | for (let i=0; i < all_desktops.length; i++) { 4 | const current_desktop = all_desktops[i]; 5 | current_desktop.wallpaperPlugin = "org.kde.image"; 6 | current_desktop.currentConfigGroup = Array("Wallpaper", 7 | "org.kde.image", 8 | "General"); 9 | current_desktop.writeConfig("Image", "file://$IMAGE_PATH"); 10 | } 11 | -------------------------------------------------------------------------------- /macifylinux/components/albert/configure.sh: -------------------------------------------------------------------------------- 1 | eval "$(python3 globals.py)" 2 | 3 | ALBERT_CONF_DIR=~/.config/albert/ 4 | mkdir -p ${ALBERT_CONF_DIR} 5 | 6 | # copy conf file as a template 7 | cp "$COMPONENTS_DIR/albert/albert.conf" ${ALBERT_CONF_DIR} 8 | chmod 664 ${ALBERT_CONF_DIR}/albert.conf 9 | 10 | # This prevents the albert configuration menu from popping up on first start. Might need to update this later. 11 | echo "0.16.1" > ${ALBERT_CONF_DIR}/last_used_version 12 | chmod 664 ${ALBERT_CONF_DIR}/last_used_version 13 | 14 | # Configure autostart 15 | mkdir -p ~/.config/autostart 16 | rm -f ~/.config/autostart/albert.desktop 17 | ln -s /usr/local/share/applications/albert.desktop ~/.config/autostart/ 18 | -------------------------------------------------------------------------------- /macifylinux/templates/lookandfeel/com.github.jonchun.macify-linux-dark/metadata.desktop: -------------------------------------------------------------------------------- 1 | [Desktop Entry] 2 | Name=macify-linux-dark 3 | Comment=macify-linux dark theme 4 | Encoding=UTF-8 5 | Keywords=Desktop;Workspace;Appearance;Look and Feel; 6 | 7 | Type=Service 8 | 9 | X-KDE-ServiceTypes=Plasma/LookAndFeel 10 | X-KDE-ParentApp= 11 | X-KDE-PluginInfo-Author=Jonathan Chun 12 | X-KDE-PluginInfo-Category= 13 | X-KDE-PluginInfo-Email=git@jonathanchun.com 14 | X-KDE-PluginInfo-License=GPL3.0 15 | X-KDE-PluginInfo-Name=com.github.jonchun.macify-linux-dark 16 | X-KDE-PluginInfo-Version= 17 | X-KDE-PluginInfo-Website=https://github.com/Jonchun/macify-linux 18 | X-KDE-fallbackPackage=org.kde.breeze.desktop 19 | X-Plasma-MainScript=defaults 20 | -------------------------------------------------------------------------------- /macifylinux/templates/lookandfeel/com.github.jonchun.macify-linux-light/metadata.desktop: -------------------------------------------------------------------------------- 1 | [Desktop Entry] 2 | Name=macify-linux-light 3 | Comment=macify-linux light theme 4 | Encoding=UTF-8 5 | Keywords=Desktop;Workspace;Appearance;Look and Feel; 6 | 7 | Type=Service 8 | 9 | X-KDE-ServiceTypes=Plasma/LookAndFeel 10 | X-KDE-ParentApp= 11 | X-KDE-PluginInfo-Author=Jonathan Chun 12 | X-KDE-PluginInfo-Category= 13 | X-KDE-PluginInfo-Email=git@jonathanchun.com 14 | X-KDE-PluginInfo-License=GPL3.0 15 | X-KDE-PluginInfo-Name=com.github.jonchun.macify-linux-light 16 | X-KDE-PluginInfo-Version= 17 | X-KDE-PluginInfo-Website=https://github.com/Jonchun/macify-linux 18 | X-KDE-fallbackPackage=org.kde.breeze.desktop 19 | X-Plasma-MainScript=defaults 20 | -------------------------------------------------------------------------------- /macifylinux/components/applet_latte_spacer/__init__.py: -------------------------------------------------------------------------------- 1 | """Latte Spacer Plasmoid""" 2 | import logging 3 | from pathlib import Path 4 | 5 | from macifylinux.globals import GLOBALS as G 6 | import macifylinux.utils as u 7 | 8 | component_name = Path(__file__).parent.name 9 | logger = logging.getLogger("macifylinux.components.{}".format(component_name)) 10 | 11 | apt_requirements = [] 12 | build_requirements = [] 13 | repo_url = "https://github.com/psifidotos/applet-latte-spacer.git" 14 | repo_name = Path(repo_url).stem 15 | 16 | 17 | def install(*args, **kwargs): 18 | u.git_clone(repo_url, G["SOURCES_DIR"]) 19 | u.plasmoid_install(G["SOURCES_DIR"] / Path(repo_name)) 20 | 21 | 22 | def upgrade(*args, **kwargs): 23 | u.plasmoid_upgrade(G["SOURCES_DIR"] / Path(repo_name)) 24 | 25 | 26 | def remove(*args, **kwargs): 27 | # run remove.sh 28 | u.plasmoid_remove(G["SOURCES_DIR"] / Path(repo_name)) 29 | -------------------------------------------------------------------------------- /macifylinux/components/applet_window_title/__init__.py: -------------------------------------------------------------------------------- 1 | """Window Title Plasmoid""" 2 | import logging 3 | from pathlib import Path 4 | 5 | from macifylinux.globals import GLOBALS as G 6 | import macifylinux.utils as u 7 | 8 | component_name = Path(__file__).parent.name 9 | logger = logging.getLogger("macifylinux.components.{}".format(component_name)) 10 | 11 | apt_requirements = [] 12 | build_requirements = [] 13 | repo_url = "https://github.com/psifidotos/applet-window-title.git" 14 | repo_name = Path(repo_url).stem 15 | 16 | 17 | def install(*args, **kwargs): 18 | u.git_clone(repo_url, G["SOURCES_DIR"]) 19 | u.plasmoid_install(G["SOURCES_DIR"] / Path(repo_name)) 20 | 21 | 22 | def upgrade(*args, **kwargs): 23 | u.plasmoid_upgrade(G["SOURCES_DIR"] / Path(repo_name)) 24 | 25 | 26 | def remove(*args, **kwargs): 27 | # run remove.sh 28 | u.plasmoid_remove(G["SOURCES_DIR"] / Path(repo_name)) 29 | -------------------------------------------------------------------------------- /macifylinux/components/mac_inline_battery/__init__.py: -------------------------------------------------------------------------------- 1 | """Mac Inline Battery Plasmoid""" 2 | import logging 3 | from pathlib import Path 4 | 5 | from macifylinux.globals import GLOBALS as G 6 | import macifylinux.utils as u 7 | 8 | component_name = Path(__file__).parent.name 9 | logger = logging.getLogger("macifylinux.components.{}".format(component_name)) 10 | 11 | apt_requirements = [] 12 | build_requirements = [] 13 | repo_url = "https://github.com/Polunom/mac-inline-battery.git" 14 | repo_name = Path(repo_url).stem 15 | 16 | 17 | def install(*args, **kwargs): 18 | u.git_clone(repo_url, G["SOURCES_DIR"]) 19 | u.plasmoid_install(G["SOURCES_DIR"] / Path(repo_name)) 20 | 21 | 22 | def upgrade(*args, **kwargs): 23 | u.plasmoid_upgrade(G["SOURCES_DIR"] / Path(repo_name)) 24 | 25 | 26 | def remove(*args, **kwargs): 27 | # run remove.sh 28 | u.plasmoid_remove(G["SOURCES_DIR"] / Path(repo_name)) 29 | -------------------------------------------------------------------------------- /macifylinux/components/applet_latte_separator/__init__.py: -------------------------------------------------------------------------------- 1 | """Latte Separator Plasmoid""" 2 | import logging 3 | from pathlib import Path 4 | 5 | from macifylinux.globals import GLOBALS as G 6 | import macifylinux.utils as u 7 | 8 | component_name = Path(__file__).parent.name 9 | logger = logging.getLogger("macifylinux.components.{}".format(component_name)) 10 | 11 | apt_requirements = [] 12 | build_requirements = [] 13 | repo_url = "https://github.com/psifidotos/applet-latte-separator.git" 14 | repo_name = Path(repo_url).stem 15 | 16 | 17 | def install(*args, **kwargs): 18 | u.git_clone(repo_url, G["SOURCES_DIR"]) 19 | u.plasmoid_install(G["SOURCES_DIR"] / Path(repo_name)) 20 | 21 | 22 | def upgrade(*args, **kwargs): 23 | u.plasmoid_upgrade(G["SOURCES_DIR"] / Path(repo_name)) 24 | 25 | 26 | def remove(*args, **kwargs): 27 | # run remove.sh 28 | u.plasmoid_remove(G["SOURCES_DIR"] / Path(repo_name)) 29 | -------------------------------------------------------------------------------- /macifylinux/components/mcmojave_kde/__init__.py: -------------------------------------------------------------------------------- 1 | """McMojave KDE Themes""" 2 | import logging 3 | from pathlib import Path 4 | 5 | from macifylinux.globals import GLOBALS as G 6 | import macifylinux.utils as u 7 | 8 | component_name = Path(__file__).parent.name 9 | logger = logging.getLogger("macifylinux.components.{}".format(component_name)) 10 | 11 | apt_requirements = [] 12 | build_requirements = [] 13 | repo_url = "https://github.com/vinceliuice/McMojave-kde.git" 14 | repo_name = Path(repo_url).stem 15 | 16 | 17 | def install(*args, **kwargs): 18 | u.git_clone(repo_url, G["SOURCES_DIR"]) 19 | # run install.sh 20 | u.bash_action(action="install", file=__file__, name=component_name) 21 | 22 | 23 | def upgrade(*args, **kwargs): 24 | install(*args, **kwargs) 25 | 26 | 27 | def remove(*args, **kwargs): 28 | # run remove.sh 29 | u.bash_action(action="remove", file=__file__, name=component_name) 30 | -------------------------------------------------------------------------------- /macifylinux/components/mcmojave_cursors/__init__.py: -------------------------------------------------------------------------------- 1 | """McMojave Cursors""" 2 | import logging 3 | from pathlib import Path 4 | 5 | from macifylinux.globals import GLOBALS as G 6 | import macifylinux.utils as u 7 | 8 | component_name = Path(__file__).parent.name 9 | logger = logging.getLogger("macifylinux.components.{}".format(component_name)) 10 | 11 | apt_requirements = [] 12 | build_requirements = [] 13 | repo_url = "https://github.com/vinceliuice/McMojave-cursors.git" 14 | repo_name = Path(repo_url).stem 15 | 16 | 17 | def install(*args, **kwargs): 18 | u.git_clone(repo_url, G["SOURCES_DIR"]) 19 | # run install.sh 20 | u.bash_action(action="install", file=__file__, name=component_name) 21 | 22 | 23 | def upgrade(*args, **kwargs): 24 | install(*args, **kwargs) 25 | 26 | 27 | def remove(*args, **kwargs): 28 | # run remove.sh 29 | u.bash_action(action="remove", file=__file__, name=component_name) 30 | -------------------------------------------------------------------------------- /macifylinux/components/applet_latte_sidebar_button/__init__.py: -------------------------------------------------------------------------------- 1 | """Latte Spacer Plasmoid""" 2 | import logging 3 | from pathlib import Path 4 | 5 | from macifylinux.globals import GLOBALS as G 6 | import macifylinux.utils as u 7 | 8 | component_name = Path(__file__).parent.name 9 | logger = logging.getLogger("macifylinux.components.{}".format(component_name)) 10 | 11 | apt_requirements = [] 12 | build_requirements = [] 13 | repo_url = "https://github.com/psifidotos/applet-latte-sidebar-button.git" 14 | repo_name = Path(repo_url).stem 15 | 16 | 17 | def install(*args, **kwargs): 18 | u.git_clone(repo_url, G["SOURCES_DIR"]) 19 | u.plasmoid_install(G["SOURCES_DIR"] / Path(repo_name)) 20 | 21 | 22 | def upgrade(*args, **kwargs): 23 | u.plasmoid_upgrade(G["SOURCES_DIR"] / Path(repo_name)) 24 | 25 | 26 | def remove(*args, **kwargs): 27 | # run remove.sh 28 | u.plasmoid_remove(G["SOURCES_DIR"] / Path(repo_name)) 29 | -------------------------------------------------------------------------------- /macifylinux/components/kinto/__init__.py: -------------------------------------------------------------------------------- 1 | """Kinto""" 2 | import logging 3 | from pathlib import Path 4 | import subprocess 5 | 6 | from macifylinux.globals import GLOBALS as G 7 | import macifylinux.utils as u 8 | 9 | component_name = Path(__file__).parent.name 10 | logger = logging.getLogger("macifylinux.components.{}".format(component_name)) 11 | 12 | apt_requirements = ["xbindkeys", "xdotool", "ibus"] 13 | build_requirements = [] 14 | repo_url = "https://github.com/rbreaves/kinto.git" 15 | repo_name = Path(repo_url).stem 16 | 17 | 18 | def install(*args, **kwargs): 19 | u.git_clone(repo_url, G["SOURCES_DIR"]) 20 | # run install.sh 21 | u.bash_action( 22 | action="install", file=__file__, name=component_name, interactive=True 23 | ) 24 | 25 | 26 | def upgrade(*args, **kwargs): 27 | install(*args, **kwargs) 28 | 29 | 30 | def remove(*args, **kwargs): 31 | # run remove.sh 32 | u.bash_action(action="remove", file=__file__, name=component_name) 33 | -------------------------------------------------------------------------------- /macifylinux/components/uswitch/__init__.py: -------------------------------------------------------------------------------- 1 | """Latte Spacer Plasmoid""" 2 | import logging 3 | from pathlib import Path 4 | 5 | from macifylinux.globals import GLOBALS as G 6 | import macifylinux.utils as u 7 | 8 | component_name = Path(__file__).parent.name 9 | logger = logging.getLogger("macifylinux.components.{}".format(component_name)) 10 | 11 | apt_requirements = [] 12 | build_requirements = [] 13 | repo_url = "https://gitlab.com/divinae/uswitch.git" 14 | repo_name = Path(repo_url).stem 15 | 16 | 17 | def install(*args, **kwargs): 18 | u.git_clone(repo_url, G["SOURCES_DIR"]) 19 | u.plasmoid_install( 20 | G["SOURCES_DIR"] / Path(repo_name) / Path("package"), pretty_name="uswitch" 21 | ) 22 | 23 | 24 | def upgrade(*args, **kwargs): 25 | u.plasmoid_upgrade( 26 | G["SOURCES_DIR"] / Path(repo_name) / Path("package"), pretty_name="uswitch" 27 | ) 28 | 29 | 30 | def remove(*args, **kwargs): 31 | # run remove.sh 32 | u.plasmoid_remove( 33 | G["SOURCES_DIR"] / Path(repo_name) / Path("package"), pretty_name="uswitch" 34 | ) 35 | -------------------------------------------------------------------------------- /macifylinux/components/kde_plasmoid_chiliclock/__init__.py: -------------------------------------------------------------------------------- 1 | """Chili Clock Plasmoid""" 2 | import logging 3 | from pathlib import Path 4 | 5 | from macifylinux.globals import GLOBALS as G 6 | import macifylinux.utils as u 7 | 8 | component_name = Path(__file__).parent.name 9 | logger = logging.getLogger("macifylinux.components.{}".format(component_name)) 10 | 11 | apt_requirements = [] 12 | build_requirements = [] 13 | repo_url = "https://github.com/MarianArlt/kde-plasmoid-chiliclock.git" 14 | repo_name = Path(repo_url).stem 15 | 16 | 17 | def install(*args, **kwargs): 18 | u.git_clone(repo_url, G["SOURCES_DIR"]) 19 | u.plasmoid_install( 20 | G["SOURCES_DIR"] / Path(repo_name) / Path("org.kde.plasma.chiliclock") 21 | ) 22 | 23 | 24 | def upgrade(*args, **kwargs): 25 | u.plasmoid_upgrade( 26 | G["SOURCES_DIR"] / Path(repo_name) / Path("org.kde.plasma.chiliclock") 27 | ) 28 | 29 | 30 | def remove(*args, **kwargs): 31 | # run remove.sh 32 | u.plasmoid_remove( 33 | G["SOURCES_DIR"] / Path(repo_name) / Path("org.kde.plasma.chiliclock") 34 | ) 35 | -------------------------------------------------------------------------------- /macifylinux/components/kde_hello/install.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | eval "$(python3 globals.py)" 3 | 4 | # Sorry I am not 100% sure what I'm doing here either. Just copy-pasting from the repos :D 5 | # I didn't even do exactly what was documented and got it to work by mistake I think... 6 | # https://github.com/n4n0GH/hello/issues/41#issuecomment-562063700 7 | 8 | REPO_DIR=${SOURCES_DIR}/hello 9 | 10 | # build kwin-effects 11 | cd ${REPO_DIR}/kwin-effects/ 12 | mkdir -p build 13 | cd build 14 | cmake ../ -DCMAKE_INSTALL_PREFIX=/usr -DQT5BUILD=ON 15 | 16 | # build window-decoration 17 | cd ${REPO_DIR}/window-decoration 18 | bash ./build.sh 19 | 20 | # build the entire project 21 | cd ${REPO_DIR} 22 | mkdir -p build 23 | cd build 24 | cmake -DCMAKE_INSTALL_PREFIX=/usr .. 25 | make 26 | sudo make install 27 | 28 | # Install hello colors 29 | cp -f ${REPO_DIR}/color-scheme/HelloLight.colors ${COLOR_SCHEMES_DIR} 30 | cp -f ${REPO_DIR}/color-scheme/HelloDark.colors ${COLOR_SCHEMES_DIR} 31 | 32 | # Install hello plasma theme 33 | cp -rf ${REPO_DIR}/plasma-theme/hellolight ${PLASMA_DIR} 34 | cp -rf ${REPO_DIR}/plasma-theme/hellodark ${PLASMA_DIR} 35 | -------------------------------------------------------------------------------- /macifylinux/components/os_catalina_icons/__init__.py: -------------------------------------------------------------------------------- 1 | """OS Catalina Icons""" 2 | import logging 3 | from pathlib import Path 4 | 5 | from macifylinux.globals import GLOBALS as G 6 | import macifylinux.utils as u 7 | 8 | component_name = Path(__file__).parent.name 9 | logger = logging.getLogger("macifylinux.components.{}".format(component_name)) 10 | 11 | apt_requirements = [] 12 | build_requirements = [] 13 | repo_url = "https://github.com/zayronxio/Os-Catalina-icons" 14 | repo_name = Path(repo_url).stem 15 | 16 | 17 | def install(*args, **kwargs): 18 | u.git_clone(repo_url, G["SOURCES_DIR"]) 19 | # run install.sh 20 | u.bash_action(action="install", file=__file__, name=component_name) 21 | 22 | # icons 23 | u.kwriteconfig( 24 | { 25 | "file": "~/.config/kdeglobals", 26 | "group": "Icons", 27 | "key": "Theme", 28 | "value": "Os-Catalina-icons", 29 | } 30 | ) 31 | 32 | 33 | def upgrade(*args, **kwargs): 34 | install(*args, **kwargs) 35 | 36 | 37 | def remove(*args, **kwargs): 38 | # run remove.sh 39 | u.bash_action(action="remove", file=__file__, name=component_name) 40 | -------------------------------------------------------------------------------- /macifylinux/modules/plasmoids.py: -------------------------------------------------------------------------------- 1 | """Plasmoids needed""" 2 | from macifylinux.components import applet_latte_separator 3 | from macifylinux.components import applet_latte_sidebar_button 4 | from macifylinux.components import applet_latte_spacer 5 | from macifylinux.components import applet_window_title 6 | from macifylinux.components import applet_window_appmenu 7 | from macifylinux.components import kde_plasmoid_chiliclock 8 | from macifylinux.components import mac_inline_battery 9 | from macifylinux.components import uswitch 10 | 11 | components = [ 12 | applet_latte_separator, 13 | applet_latte_sidebar_button, 14 | applet_latte_spacer, 15 | applet_window_title, 16 | applet_window_appmenu, 17 | kde_plasmoid_chiliclock, 18 | mac_inline_battery, 19 | uswitch, 20 | ] 21 | 22 | 23 | def install(*args, **kwargs): 24 | for component in components: 25 | component.install(*args, **kwargs) 26 | 27 | 28 | def upgrade(*args, **kwargs): 29 | for component in components: 30 | component.upgrade(*args, **kwargs) 31 | 32 | 33 | def remove(*args, **kwargs): 34 | for component in components: 35 | component.remove(*args, **kwargs) 36 | -------------------------------------------------------------------------------- /macifylinux/components/custom_wallpaper/__init__.py: -------------------------------------------------------------------------------- 1 | """Custom Wallpaper""" 2 | import logging 3 | from pathlib import Path 4 | 5 | from macifylinux.globals import GLOBALS as G 6 | import macifylinux.utils as u 7 | 8 | apt_requirements = ["curl"] 9 | build_requirements = [] 10 | component_name = "custom_wallpaper" 11 | logger = logging.getLogger("macifylinux.components.{}".format(component_name)) 12 | 13 | 14 | def install(*args, **kwargs): 15 | # run install.sh 16 | u.bash_action(action="install", file=__file__, name=component_name) 17 | 18 | # change desktop wallapaper 19 | wallpaper = G["WALLPAPERS_DIR"] / Path(G["DEFAULT_WALLPAPER"]) 20 | u.change_desktop_wallpaper(wallpaper) 21 | 22 | # change lockscreen wallpaper 23 | u.kwriteconfig( 24 | { 25 | "key": "Image", 26 | "value": "file://{}".format(wallpaper), 27 | "group": ["Greeter", "Wallpaper", "org.kde.image", "General"], 28 | "file": "~/.config/kscreenlockerrc", 29 | } 30 | ) 31 | 32 | 33 | def upgrade(*args, **kwargs): 34 | install(*args, **kwargs) 35 | 36 | 37 | def remove(*args, **kwargs): 38 | # run remove.sh 39 | u.bash_action(action="remove", file=__file__, name=component_name) 40 | -------------------------------------------------------------------------------- /macifylinux/components/custom_wallpaper/install.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | eval "$(python3 globals.py)" 3 | 4 | # -O/--remote-name 5 | # Write output to a local file named like the remote file we get. 6 | # (Only the file part of the remote file is used, the path is cut off.) 7 | 8 | # -L/--location 9 | # (HTTP/HTTPS) If the server reports that the requested page has moved 10 | # to a different location (indicated with a Location: header and a 3XX 11 | # response code), this option will make curl redo the request on the new 12 | # place. If used together with -i/--include or -I/--head, headers from 13 | # all requested pages will be shown. When authentication is used, curl only 14 | # sends its credentials to the initial host. If a redirect takes curl to a 15 | # different host, it won't be able to intercept the user+password. 16 | # See also --location-trusted on how to change this. You can limit the 17 | # amount of redirects to follow by using the --max-redirs option. 18 | 19 | # -J/--remote-header-name 20 | # (HTTP) This option tells the -O/--remote-name option to use the 21 | # server-specified Content-Disposition filename instead of extracting a 22 | # filename from the URL. 23 | curl --silent --location -o ${WALLPAPERS_DIR}/${DEFAULT_WALLPAPER} "https://unsplash.com/photos/RPT3AjdXlZc/download?force=true" 24 | -------------------------------------------------------------------------------- /macifylinux/components/notification_center/__init__.py: -------------------------------------------------------------------------------- 1 | """Mac Inline Battery Plasmoid""" 2 | import logging 3 | from pathlib import Path 4 | 5 | from macifylinux.globals import GLOBALS as G 6 | import macifylinux.utils as u 7 | 8 | component_name = Path(__file__).parent.name 9 | logger = logging.getLogger("macifylinux.components.{}".format(component_name)) 10 | 11 | apt_requirements = [] 12 | build_requirements = [] 13 | 14 | def install(*args, **kwargs): 15 | # currently, notification center just consists of tweaking a few default values for the built in notifications plasmoid. 16 | # will hopefully change this soon to be better with a custom plasmoid 17 | # ========== START PLASMANOTIFYRC ========== 18 | configs = [] 19 | 20 | configs.append( 21 | {"group": "Notifications", "key": "LowPriorityHistory", "value": "true",} 22 | ) 23 | 24 | configs.append( 25 | {"group": "Notifications", "key": "PopupPosition", "value": "TopRight",} 26 | ) 27 | 28 | configs.append( 29 | {"group": "Notifications", "key": "PopupTimeout", "value": "5000",} 30 | ) 31 | 32 | u.kwriteconfigs("~/.config/plasmanotifyrc", configs) 33 | 34 | # ========== END PLASMANOTIFYRC ========== 35 | 36 | 37 | def upgrade(*args, **kwargs): 38 | install(*args, **kwargs) 39 | 40 | 41 | def remove(*args, **kwargs): 42 | # Not sure how to unconfigure these to default. Should look into the kwriteconfig5 options 43 | pass 44 | -------------------------------------------------------------------------------- /macifylinux/components/applet_window_appmenu/__init__.py: -------------------------------------------------------------------------------- 1 | """Window App Menu""" 2 | import logging 3 | from pathlib import Path 4 | import subprocess 5 | 6 | from macifylinux.globals import GLOBALS as G 7 | import macifylinux.utils as u 8 | 9 | component_name = Path(__file__).parent.name 10 | logger = logging.getLogger("macifylinux.components.{}".format(component_name)) 11 | 12 | apt_requirements = [] 13 | build_requirements = [ 14 | "cmake", 15 | "extra-cmake-modules", 16 | "libkdecorations2-dev", 17 | "qtdeclarative5-dev", 18 | "libkf5windowsystem-dev", 19 | "libkf5plasma-dev", 20 | "libkf5configwidgets-dev", 21 | "libsm-dev", 22 | "libqt5x11extras5-dev", 23 | ] 24 | # needed to add these packages when attempting to compile in Kubuntu 20.04 25 | apt_requirements_kubuntu_20 = ["libx11-xcb-dev", "libxcb-randr0-dev"] 26 | apt_requirements.extend(apt_requirements_kubuntu_20) 27 | 28 | repo_url = "https://github.com/psifidotos/applet-window-appmenu.git" 29 | repo_name = Path(repo_url).stem 30 | 31 | 32 | def install(*args, **kwargs): 33 | u.git_clone(repo_url, G["SOURCES_DIR"]) 34 | # run install.sh 35 | u.bash_action( 36 | action="install", file=__file__, name=component_name, stderr_level=logging.DEBUG 37 | ) 38 | 39 | 40 | def upgrade(*args, **kwargs): 41 | install(*args, **kwargs) 42 | 43 | 44 | def remove(*args, **kwargs): 45 | # run remove.sh 46 | u.bash_action(action="remove", file=__file__, name=component_name) 47 | -------------------------------------------------------------------------------- /macifylinux/components/albert/__init__.py: -------------------------------------------------------------------------------- 1 | """Albert""" 2 | import logging 3 | from pathlib import Path 4 | 5 | from macifylinux.globals import GLOBALS as G 6 | import macifylinux.utils as u 7 | 8 | component_name = Path(__file__).parent.name 9 | logger = logging.getLogger("macifylinux.components.{}".format(component_name)) 10 | 11 | apt_requirements = [] 12 | build_requirements = [ 13 | "cmake", 14 | "libmuparser-dev", 15 | "libqt5charts5-dev", 16 | "libqt5svg5-dev", 17 | "libqt5x11extras5-dev", 18 | "python3-dev", 19 | "python3-distutils", 20 | "qtdeclarative5-dev", 21 | ] 22 | repo_url = "https://github.com/Jonchun/albert.git" 23 | repo_name = Path(repo_url).stem 24 | 25 | 26 | def install(*args, **kwargs): 27 | u.git_clone(repo_url, G["SOURCES_DIR"], flags="--branch MacifyLinux --recursive") 28 | # run install.sh 29 | u.bash_action( 30 | action="install", file=__file__, name=component_name, stderr_level=logging.DEBUG 31 | ) 32 | 33 | # run configure.sh 34 | u.bash_action(action="configure", file=__file__, name=component_name) 35 | 36 | # start albert 37 | albert_desktop_file = Path("/usr/local/share/applications/albert.desktop") 38 | u.run_shell_bg("nohup /bin/sh {}".format(albert_desktop_file.resolve())) 39 | 40 | 41 | def upgrade(*args, **kwargs): 42 | install(*args, **kwargs) 43 | 44 | 45 | def remove(*args, **kwargs): 46 | # run remove.sh 47 | u.bash_action(action="remove", file=__file__, name=component_name) 48 | -------------------------------------------------------------------------------- /macifylinux/components/albert/albert.conf: -------------------------------------------------------------------------------- 1 | [General] 2 | frontendId=org.albert.frontend.widgetboxmodel 3 | hotkey=Ctrl+Space 4 | showTray=false 5 | telemetry=false 6 | 7 | [org.albert.extension.applications] 8 | enabled=true 9 | use_generic_name=true 10 | use_keywords=true 11 | use_non_localized_name=false 12 | 13 | [org.albert.extension.calculator] 14 | enabled=true 15 | 16 | [org.albert.extension.externalextensions] 17 | enabled=false 18 | 19 | [org.albert.extension.files] 20 | enabled=true 21 | 22 | [org.albert.extension.firefoxbookmarks] 23 | enabled=false 24 | fuzzy=true 25 | openWithFirefox=true 26 | 27 | [org.albert.extension.hashgenerator] 28 | enabled=true 29 | 30 | [org.albert.extension.python] 31 | enabled=false 32 | [org.albert.extension.snippets] 33 | enabled=true 34 | 35 | [org.albert.extension.system] 36 | enabled=true 37 | 38 | [org.albert.extension.terminal] 39 | enabled=true 40 | 41 | [org.albert.extension.websearch] 42 | enabled=true 43 | 44 | [org.albert.frontend.qmlboxmodel] 45 | alwaysOnTop=true 46 | clearOnHide=false 47 | hideOnClose=false 48 | hideOnFocusLoss=true 49 | showCentered=true 50 | stylePath=/usr/local/share/albert/org.albert.frontend.qmlboxmodel/styles/BoxModel/MainComponent.qml 51 | 52 | [org.albert.frontend.widgetboxmodel] 53 | alwaysOnTop=true 54 | clearOnHide=false 55 | displayIcons=true 56 | displayScrollbar=false 57 | displayShadow=true 58 | hideOnClose=false 59 | hideOnFocusLoss=true 60 | itemCount=5 61 | showCentered=true 62 | theme=Spotlight 63 | windowPosition=@Point(620 279) 64 | -------------------------------------------------------------------------------- /macifylinux/templates/removeDefaultPanels.js: -------------------------------------------------------------------------------- 1 | function areArraysEqualSets(a1, a2) { 2 | // https://stackoverflow.com/a/55614659 3 | let superSet = {}; 4 | for (let i = 0; i < a1.length; i++) { 5 | const e = a1[i] + typeof a1[i]; 6 | superSet[e] = 1; 7 | } 8 | 9 | for (let i = 0; i < a2.length; i++) { 10 | const e = a2[i] + typeof a2[i]; 11 | if (!superSet[e]) { 12 | return false; 13 | } 14 | superSet[e] = 2; 15 | } 16 | 17 | for (let e in superSet) { 18 | if (superSet[e] === 1) { 19 | return false; 20 | } 21 | } 22 | 23 | return true; 24 | } 25 | 26 | function isPanelDefault(panel) { 27 | const widgets = panel.widgets(); 28 | const widgetArray = []; 29 | const defaultArray = [ 30 | "org.kde.plasma.kickoff", 31 | "org.kde.plasma.pager", 32 | "org.kde.plasma.taskmanager", 33 | "org.kde.plasma.systemtray", 34 | "org.kde.plasma.digitalclock", 35 | "org.kde.plasma.showdesktop" 36 | ]; 37 | 38 | for (var widgetIndex = 0; widgetIndex < widgets.length; widgetIndex++) { 39 | var w = widgets[widgetIndex]; 40 | widgetArray.push(w.type) 41 | } 42 | 43 | if (areArraysEqualSets(defaultArray, widgetArray)) { 44 | return true; 45 | } else { 46 | return false; 47 | } 48 | } 49 | 50 | // Delete all existing desktop panels 51 | function removeDefaultPanels() { 52 | const allPanels = panels(); 53 | 54 | for (let panelIndex = 0; panelIndex < allPanels.length; panelIndex++) { 55 | const p = allPanels[panelIndex]; 56 | if (p.type === "org.kde.panel" && isPanelDefault(p)) { 57 | p.remove(); 58 | } 59 | } 60 | } 61 | 62 | removeDefaultPanels(); -------------------------------------------------------------------------------- /macifylinux/components/macify_linux_lookandfeel/__init__.py: -------------------------------------------------------------------------------- 1 | """MacifyLinux LookAndFeel Package""" 2 | import logging 3 | from pathlib import Path 4 | 5 | from macifylinux.globals import GLOBALS as G 6 | import macifylinux.utils as u 7 | 8 | component_name = Path(__file__).parent.name 9 | logger = logging.getLogger("macifylinux.components.{}".format(component_name)) 10 | 11 | apt_requirements = [] 12 | build_requirements = [] 13 | light_laf = u.get_template("lookandfeel/com.github.jonchun.macify-linux-light") 14 | dark_laf = u.get_template("lookandfeel/com.github.jonchun.macify-linux-dark") 15 | 16 | 17 | def install(*args, **kwargs): 18 | u.plasmoid_tool( 19 | light_laf, 20 | action="install", 21 | package_type="Plasma/LookAndFeel", 22 | pretty_name="macify-linux-light lookandfeel", 23 | ) 24 | u.plasmoid_tool( 25 | dark_laf, 26 | action="install", 27 | package_type="Plasma/LookAndFeel", 28 | pretty_name="macify-linux-dark lookandfeel", 29 | ) 30 | 31 | 32 | def upgrade(*args, **kwargs): 33 | u.plasmoid_tool( 34 | light_laf, 35 | action="upgrade", 36 | package_type="Plasma/LookAndFeel", 37 | pretty_name="macify-linux-light lookandfeel", 38 | ) 39 | u.plasmoid_tool( 40 | dark_laf, 41 | action="upgrade", 42 | package_type="Plasma/LookAndFeel", 43 | pretty_name="macify-linux-dark lookandfeel", 44 | ) 45 | 46 | 47 | def remove(*args, **kwargs): 48 | u.plasmoid_tool( 49 | light_laf, 50 | action="remove", 51 | package_type="Plasma/LookAndFeel", 52 | pretty_name="macify-linux-light lookandfeel", 53 | ) 54 | u.plasmoid_tool( 55 | dark_laf, 56 | action="remove", 57 | package_type="Plasma/LookAndFeel", 58 | pretty_name="macify-linux-dark lookandfeel", 59 | ) 60 | -------------------------------------------------------------------------------- /macifylinux/globals.py: -------------------------------------------------------------------------------- 1 | from pathlib import Path 2 | 3 | G = {"LOCAL_DIRS": []} 4 | # ==================== Start LOCAL_DIRS ==================== 5 | G["SOURCES_DIR"] = Path("~/sources/").expanduser() 6 | G["LOCAL_DIRS"].append(G["SOURCES_DIR"]) 7 | 8 | G["ICONS_DIR"] = Path("~/.local/share/icons/").expanduser() 9 | G["LOCAL_DIRS"].append(G["ICONS_DIR"]) 10 | 11 | G["FONTS_DIR"] = Path("~/.local/share/fonts/").expanduser() 12 | G["LOCAL_DIRS"].append(G["FONTS_DIR"]) 13 | 14 | G["AURORAE_DIR"] = Path("~/.local/share/aurorae/themes/").expanduser() 15 | G["LOCAL_DIRS"].append(G["AURORAE_DIR"]) 16 | 17 | G["COLOR_SCHEMES_DIR"] = Path("~/.local/share/color-schemes/").expanduser() 18 | G["LOCAL_DIRS"].append(G["COLOR_SCHEMES_DIR"]) 19 | 20 | G["PLASMA_DIR"] = Path("~/.local/share/plasma/desktoptheme/").expanduser() 21 | G["LOCAL_DIRS"].append(G["PLASMA_DIR"]) 22 | 23 | G["LOOK_FEEL_DIR"] = Path("~/.local/share/plasma/look-and-feel/").expanduser() 24 | G["LOCAL_DIRS"].append(G["LOOK_FEEL_DIR"]) 25 | 26 | G["LAYOUTS_DIR"] = Path("~/.local/share/plasma/layout-templates/").expanduser() 27 | G["LOCAL_DIRS"].append(G["LAYOUTS_DIR"]) 28 | 29 | G["KVANTUM_DIR"] = Path("~/.config/Kvantum/").expanduser() 30 | G["LOCAL_DIRS"].append(G["KVANTUM_DIR"]) 31 | 32 | G["WALLPAPERS_DIR"] = Path("~/.local/share/wallpapers/").expanduser() 33 | G["LOCAL_DIRS"].append(G["WALLPAPERS_DIR"]) 34 | 35 | # ==================== End LOCAL_DIRS ==================== 36 | 37 | G["COMPONENTS_DIR"] = Path(__file__).parent / Path("components") 38 | 39 | G["DEFAULT_WALLPAPER"] = "kym-ellis-RPT3AjdXlZc-unsplash.jpg" 40 | 41 | G["SDDM_THEMES_DIR"] = "/usr/share/sddm/themes" 42 | 43 | GLOBALS = G 44 | 45 | if __name__ == "__main__": 46 | # if this globals script is called directly, it outputs bash 47 | output = [] 48 | for key, val in GLOBALS.items(): 49 | if not (isinstance(val, str) or isinstance(val, Path)): 50 | continue 51 | output.append('{}="{}"'.format(key, str(val))) 52 | 53 | print("; ".join(output)) 54 | -------------------------------------------------------------------------------- /macifylinux/components/sf_fonts/__init__.py: -------------------------------------------------------------------------------- 1 | """SF Fonts""" 2 | import logging 3 | from pathlib import Path 4 | 5 | from macifylinux.globals import GLOBALS as G 6 | import macifylinux.utils as u 7 | 8 | component_name = Path(__file__).parent.name 9 | logger = logging.getLogger("macifylinux.components.{}".format(component_name)) 10 | 11 | apt_requirements = [] 12 | build_requirements = [] 13 | repo_url = "https://github.com/blaisck/sfwin.git" 14 | repo_name = Path(repo_url).stem 15 | 16 | 17 | def config(): 18 | configs = [] 19 | # Fonts 20 | configs.append( 21 | {"key": "fixed", "value": "'SF Mono,10,-1,5,50,0,0,0,0,0'", "group": "General",} 22 | ) 23 | configs.append( 24 | { 25 | "key": "font", 26 | "value": "'SF Pro Text,10,-1,5,50,0,0,0,0,0'", 27 | "group": "General", 28 | } 29 | ) 30 | configs.append( 31 | { 32 | "key": "menuFont", 33 | "value": "'SF Pro Text,10,-1,5,50,0,0,0,0,0'", 34 | "group": "General", 35 | } 36 | ) 37 | 38 | configs.append( 39 | { 40 | "key": "smallestReadableFont", 41 | "value": "'SF Pro Text,8,-1,5,50,0,0,0,0,0'", 42 | "group": "General", 43 | } 44 | ) 45 | 46 | configs.append( 47 | { 48 | "key": "toolBarFont", 49 | "value": "'SF Pro Text,10,-1,5,50,0,0,0,0,0'", 50 | "group": "General", 51 | } 52 | ) 53 | 54 | configs.append( 55 | { 56 | "key": "activeFont", 57 | "value": "'SF Pro Text,10,-1,5,50,0,0,0,0,0'", 58 | "group": "WM", 59 | } 60 | ) 61 | 62 | u.kwriteconfigs("~/.config/kdeglobals", configs) 63 | 64 | # ========== END KDEGLOBALS ========== 65 | 66 | 67 | def install(*args, **kwargs): 68 | u.git_clone(repo_url, G["SOURCES_DIR"]) 69 | # run install.sh 70 | u.bash_action(action="install", file=__file__, name=component_name) 71 | config() 72 | 73 | 74 | def upgrade(*args, **kwargs): 75 | install(*args, **kwargs) 76 | 77 | 78 | def remove(*args, **kwargs): 79 | # run remove.sh 80 | u.bash_action(action="remove", file=__file__, name=component_name) 81 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Byte-compiled / optimized / DLL files 2 | __pycache__/ 3 | *.py[cod] 4 | *$py.class 5 | 6 | # C extensions 7 | *.so 8 | 9 | # Distribution / packaging 10 | .Python 11 | build/ 12 | develop-eggs/ 13 | dist/ 14 | downloads/ 15 | eggs/ 16 | .eggs/ 17 | lib/ 18 | lib64/ 19 | parts/ 20 | sdist/ 21 | var/ 22 | wheels/ 23 | pip-wheel-metadata/ 24 | share/python-wheels/ 25 | *.egg-info/ 26 | .installed.cfg 27 | *.egg 28 | MANIFEST 29 | 30 | # PyInstaller 31 | # Usually these files are written by a python script from a template 32 | # before PyInstaller builds the exe, so as to inject date/other infos into it. 33 | *.manifest 34 | *.spec 35 | 36 | # Installer logs 37 | pip-log.txt 38 | pip-delete-this-directory.txt 39 | 40 | # Unit test / coverage reports 41 | htmlcov/ 42 | .tox/ 43 | .nox/ 44 | .coverage 45 | .coverage.* 46 | .cache 47 | nosetests.xml 48 | coverage.xml 49 | *.cover 50 | *.py,cover 51 | .hypothesis/ 52 | .pytest_cache/ 53 | 54 | # Translations 55 | *.mo 56 | *.pot 57 | 58 | # Django stuff: 59 | *.log 60 | local_settings.py 61 | db.sqlite3 62 | db.sqlite3-journal 63 | 64 | # Flask stuff: 65 | instance/ 66 | .webassets-cache 67 | 68 | # Scrapy stuff: 69 | .scrapy 70 | 71 | # Sphinx documentation 72 | docs/_build/ 73 | 74 | # PyBuilder 75 | target/ 76 | 77 | # Jupyter Notebook 78 | .ipynb_checkpoints 79 | 80 | # IPython 81 | profile_default/ 82 | ipython_config.py 83 | 84 | # pyenv 85 | .python-version 86 | 87 | # pipenv 88 | # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control. 89 | # However, in case of collaboration, if having platform-specific dependencies or dependencies 90 | # having no cross-platform support, pipenv may install dependencies that don't work, or not 91 | # install all needed dependencies. 92 | #Pipfile.lock 93 | 94 | # PEP 582; used by e.g. github.com/David-OConnor/pyflow 95 | __pypackages__/ 96 | 97 | # Celery stuff 98 | celerybeat-schedule 99 | celerybeat.pid 100 | 101 | # SageMath parsed files 102 | *.sage.py 103 | 104 | # Environments 105 | .env 106 | .venv 107 | env/ 108 | venv/ 109 | ENV/ 110 | env.bak/ 111 | venv.bak/ 112 | 113 | # Spyder project settings 114 | .spyderproject 115 | .spyproject 116 | 117 | # Rope project settings 118 | .ropeproject 119 | 120 | # mkdocs documentation 121 | /site 122 | 123 | # mypy 124 | .mypy_cache/ 125 | .dmypy.json 126 | dmypy.json 127 | 128 | # Pyre type checker 129 | .pyre/ 130 | -------------------------------------------------------------------------------- /macifylinux/components/kde_plasma_chili/__init__.py: -------------------------------------------------------------------------------- 1 | """Chili Login Screen""" 2 | import logging 3 | from pathlib import Path 4 | import tempfile 5 | 6 | from macifylinux.globals import GLOBALS as G 7 | import macifylinux.utils as u 8 | 9 | component_name = Path(__file__).parent.name 10 | logger = logging.getLogger("macifylinux.components.{}".format(component_name)) 11 | 12 | apt_requirements = [] 13 | build_requirements = [] 14 | repo_url = "https://github.com/Jonchun/hello.git" 15 | repo_name = Path(repo_url).stem 16 | 17 | 18 | def configure(): 19 | # ========== START SDDM ========== 20 | # On KDE Neon, the file is at /etc/sddm.conf.d/kde_settings.conf 21 | # this might be different in other distros. 22 | u.kwriteconfig( 23 | { 24 | "key": "Current", 25 | "value": "plasma-chili", 26 | "group": "Theme", 27 | "file": "/etc/sddm.conf.d/kde_settings.conf", 28 | }, 29 | root=True, 30 | ) 31 | 32 | # Configure wallpaper of SDDM 33 | with u.get_template("sddm/theme.conf.user").open() as f: 34 | sddm_theme_conf = f.read() 35 | sddm_theme_conf = sddm_theme_conf.replace( 36 | "$BACKGROUND_IMAGE", G["DEFAULT_WALLPAPER"] 37 | ) 38 | 39 | default_wallpaper = G["WALLPAPERS_DIR"] / G["DEFAULT_WALLPAPER"] 40 | 41 | # Create theme.user.conf (points to wallpaper) and move it to theme directory. Doing it weird like this because sudo is required. 42 | tmp_file = tempfile.NamedTemporaryFile("w", delete=False) 43 | tmp_file.write(sddm_theme_conf) 44 | tmp_file.close() 45 | logger.debug("Wallpaper: %s", default_wallpaper) 46 | u.cp(default_wallpaper, "/usr/share/sddm/themes/plasma-chili", root=True) 47 | tmp_file_path = Path(tmp_file.name) 48 | tmp_file_path.chmod(0o664) 49 | u.cp( 50 | tmp_file_path, "/usr/share/sddm/themes/plasma-chili/theme.conf.user", root=True 51 | ) 52 | tmp_file_path.unlink() 53 | 54 | # ========== END SDDM ========== 55 | 56 | 57 | def install(*args, **kwargs): 58 | u.git_clone("https://github.com/MarianArlt/kde-plasma-chili.git", G["SOURCES_DIR"]) 59 | # run install.sh 60 | u.bash_action(action="install", file=__file__, name=component_name) 61 | configure() 62 | 63 | # ========== END SDDM ========== 64 | 65 | 66 | def upgrade(*args, **kwargs): 67 | install(*args, **kwargs) 68 | 69 | 70 | def remove(*args, **kwargs): 71 | # run remove.sh 72 | u.bash_action(action="remove", file=__file__, name=component_name) 73 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # macify-linux 2 | Automated setup scripts to transform Linux into macOS. 3 | 4 | ## Intro 5 | This project was started because I grew obsessed with the idea of making the macOS-like experience available for free. I am personally sick of vendor-locking from Apple, so am excited about moving to Linux, and want to make this available to others as well who might not be willing to put in the time into customization, or find it hard to get started. 6 | 7 | Please feel free to open issues with comments/suggestions. 8 | 9 | ## Goals 10 | - Must be relatively easy for users new to Linux to start using. This is why an Ubuntu-based distro was chosen. 11 | - Must be easy for developers used to macOS to start using in this setup. They should have their workflow impacted minimally in terms of the available hotkeys, software, etc. 12 | 13 | **WARNING:** This utility is currently pre-alpha. It is absolutely not ready for a full release. However, it should still run fine for testing, especially if you're just spinning up a VM to check it out. 14 | 15 | ## Installation 16 | First, you need to be on a fresh install of KDE Neon 17 | ``` 18 | wget https://raw.githubusercontent.com/Jonchun/macify-linux/master/install.sh 19 | bash install.sh 20 | ``` 21 | 22 | ## Screenshots 23 | Before: 24 | ![macify-linux-1.png](https://raw.githubusercontent.com/Jonchun/macify-linux/master/images/macify-linux-before.png) 25 | 26 | After: 27 | ![macify-linux-1.png](https://raw.githubusercontent.com/Jonchun/macify-linux/master/images/macify-linux-1.png) 28 | 29 | Global Menu: 30 | ![macify-linux-2.png](https://raw.githubusercontent.com/Jonchun/macify-linux/master/images/macify-linux-2.png) 31 | 32 | Dolphin File browser + Notifications Widget: 33 | ![macify-linux-3.png](https://raw.githubusercontent.com/Jonchun/macify-linux/master/images/macify-linux-3.png) 34 | 35 | Login Screen (Chili!!!): 36 | ![macify-linux-4.png](https://raw.githubusercontent.com/Jonchun/macify-linux/master/images/macify-linux-4.png) 37 | 38 | Spotlight search alternative (Albert): 39 | ![macify-linux-5.png](https://raw.githubusercontent.com/Jonchun/macify-linux/master/images/macify-linux-5.png) 40 | 41 | ## Notes 42 | This is definitely a "rough draft" of the script! PLEASE DO NOT USE IT IN ANYTHING OTHER THAN A VM! (Unless you're willing to spend time troubleshooting/backtracking if things go wrong) 43 | 44 | ## TODO 45 | - Make the installer interactive so you can choose light/dark and more 46 | - Work on customizing widgets so they don't look like they're about to pop out of their panels 47 | - Test on hardware instead of only VMs 48 | -------------------------------------------------------------------------------- /macifylinux/components/latte_dock/__init__.py: -------------------------------------------------------------------------------- 1 | """Albert""" 2 | import logging 3 | from pathlib import Path 4 | import time 5 | 6 | from macifylinux.globals import GLOBALS as G 7 | import macifylinux.utils as u 8 | 9 | component_name = Path(__file__).parent.name 10 | logger = logging.getLogger("macifylinux.components.{}".format(component_name)) 11 | 12 | apt_requirements = [] 13 | build_requirements = [ 14 | "build-essential", 15 | "cmake", 16 | "extra-cmake-modules", 17 | "gettext", 18 | "git", 19 | "libkf5activities-dev", 20 | "libkf5archive-dev", 21 | "libkf5crash-dev", 22 | "libkf5declarative-dev", 23 | "libkf5iconthemes-dev", 24 | "libkf5newstuff-dev", 25 | "libkf5notifications-dev", 26 | "libkf5plasma-dev", 27 | "libkf5wayland-dev", 28 | "libkf5windowsystem-dev", 29 | "libkf5xmlgui-dev", 30 | "libqt5x11extras5-dev", 31 | "libsm-dev", 32 | "libunity-dev", 33 | "libxcb-util-dev", 34 | "libxcb-util0-dev", 35 | "qtdeclarative5-dev", 36 | ] 37 | 38 | # needed to add these packages when attempting to compile in Kubuntu 18.04 39 | apt_requirements_kubuntu_18 = ["libkf5sysguard-dev"] 40 | apt_requirements.extend(apt_requirements_kubuntu_18) 41 | 42 | repo_url = "https://github.com/KDE/latte-dock.git" 43 | repo_name = Path(repo_url).stem 44 | 45 | 46 | def install(*args, **kwargs): 47 | from_source = kwargs.get("from_source", False) 48 | if from_source: 49 | u.git_clone(repo_url, G["SOURCES_DIR"]) 50 | # run install.sh 51 | u.bash_action( 52 | action="install", 53 | file=__file__, 54 | name=component_name, 55 | stderr_level=logging.DEBUG, 56 | ) 57 | else: 58 | u.apt_install(["latte-dock"]) 59 | 60 | # Start and stop latte once after installing in order to generate the default configs. 61 | start_latte() 62 | time.sleep(2) 63 | stop_latte() 64 | 65 | # run configure.sh 66 | u.bash_action(action="configure", file=__file__, name=component_name) 67 | 68 | # remove any default panels we find automatically 69 | script = u.get_template("removeDefaultPanels.js") 70 | u.eval_plasma_script(script) 71 | 72 | # Edit latte config files 73 | u.kwriteconfig( 74 | { 75 | "file": "~/.config/lattedockrc", 76 | "group": "UniversalSettings", 77 | "key": "currentLayout", 78 | "value": "macifyLinux", 79 | } 80 | ) 81 | u.kwriteconfig( 82 | { 83 | "file": "~/.config/lattedockrc", 84 | "group": "UniversalSettings", 85 | "key": "lastNonAssignedLayout", 86 | "value": "macifyLinux", 87 | } 88 | ) 89 | start_latte() 90 | 91 | def upgrade(*args, **kwargs): 92 | install(*args, **kwargs) 93 | 94 | 95 | def remove(*args, **kwargs): 96 | # run remove.sh 97 | u.bash_action(action="remove", file=__file__, name=component_name) 98 | 99 | 100 | def start_latte(): 101 | logger.debug("Starting Latte Dock.") 102 | u.run_shell_bg("gtk-launch org.kde.latte-dock.desktop") 103 | 104 | 105 | def stop_latte(): 106 | logger.debug("Stopping Latte Dock.") 107 | u.run_shell_bg("killall -9 latte-dock") 108 | -------------------------------------------------------------------------------- /macifylinux/components/kde_hello/__init__.py: -------------------------------------------------------------------------------- 1 | """Hello Window Decorations""" 2 | import logging 3 | from pathlib import Path 4 | 5 | from macifylinux.globals import GLOBALS as G 6 | import macifylinux.utils as u 7 | 8 | component_name = Path(__file__).parent.name 9 | logger = logging.getLogger("macifylinux.components.{}".format(component_name)) 10 | 11 | apt_requirements = [] 12 | build_requirements = [ 13 | "build-essential", 14 | "cmake", 15 | "extra-cmake-modules", 16 | "g++", 17 | "gettext", 18 | "kinit-dev", 19 | "kwin-dev", 20 | "libkdecorations2-dev", 21 | "libkf5config-dev", 22 | "libkf5configwidgets-dev", 23 | "libkf5coreaddons-dev", 24 | "libkf5crash-dev", 25 | "libkf5globalaccel-dev", 26 | "libkf5guiaddons-dev", 27 | "libkf5kio-dev", 28 | "libkf5notifications-dev", 29 | "libkf5package-dev", 30 | "libkf5windowsystem-dev", 31 | "libqt5x11extras5-dev", 32 | "qtbase5-dev", 33 | "qtdeclarative5-dev", 34 | "qttools5-dev", 35 | ] 36 | repo_url = "https://github.com/Jonchun/hello.git" 37 | repo_name = Path(repo_url).stem 38 | 39 | 40 | def configure(*args, **kwargs): 41 | style = kwargs.get("style", "light") 42 | if style == "light": 43 | color_scheme = "HelloLight" 44 | plasma_theme = "hellolight" 45 | elif style == "dark": 46 | # todo. not tested/working. 47 | color_scheme = "HelloDark" 48 | plasma_theme = "hellodark" 49 | 50 | # set plasma theme 51 | u.kwriteconfig( 52 | { 53 | "file": "~/.config/plasmarc", 54 | "group": "Theme", 55 | "key": "name", 56 | "value": plasma_theme, 57 | } 58 | ) 59 | 60 | # set color scheme 61 | configs = [] 62 | configs.append( 63 | {"group": "General", "key": "Name", "value": color_scheme,} 64 | ) 65 | configs.append( 66 | {"group": "General", "key": "ColorScheme", "value": color_scheme,} 67 | ) 68 | u.kwriteconfigs("~/.config/kdeglobals", configs) 69 | 70 | # Style the titlebar buttons to add a little bit of margin on left & make it thinner. 71 | configs = [] 72 | configs.append( 73 | {"group": "Windeco", "key": "TitleBarHeightSpin", "value": 1,} 74 | ) 75 | configs.append( 76 | {"group": "Windeco", "key": "ButtonMarginSpin", "value": 4,} 77 | ) 78 | u.kwriteconfigs("~/.config/hellorc", configs) 79 | 80 | # Set the kwinrc to hello 81 | configs = [] 82 | configs.append( 83 | {"group": "org.kde.kdecoration2", "key": "library", "value": "org.kde.hello",} 84 | ) 85 | configs.append( 86 | {"group": "org.kde.kdecoration2", "key": "theme", "value": "hello",} 87 | ) 88 | u.kwriteconfigs("~/.config/kwinrc", configs) 89 | 90 | 91 | def install(*args, **kwargs): 92 | u.git_clone(repo_url, G["SOURCES_DIR"]) 93 | # run install.sh 94 | u.bash_action( 95 | action="install", file=__file__, name=component_name, stderr_level=logging.DEBUG 96 | ) 97 | configure(*args, **kwargs) 98 | 99 | 100 | def upgrade(*args, **kwargs): 101 | install(*args, **kwargs) 102 | 103 | 104 | def remove(*args, **kwargs): 105 | # run remove.sh 106 | u.bash_action(action="remove", file=__file__, name=component_name) 107 | -------------------------------------------------------------------------------- /macifylinux/core.py: -------------------------------------------------------------------------------- 1 | import logging 2 | from pathlib import Path 3 | import subprocess 4 | 5 | from macifylinux.globals import GLOBALS as G 6 | import macifylinux.modules as m 7 | import macifylinux.utils as u 8 | 9 | logger = logging.getLogger("macifylinux") 10 | 11 | 12 | def configure_logging(): 13 | logger.setLevel(logging.DEBUG) 14 | formatter = logging.Formatter( 15 | "[%(levelname)s] %(name)s-%(asctime).19s | %(message)s" 16 | ) 17 | # create file handler which logs all debug messages 18 | fh = logging.FileHandler("macifylinux.log") 19 | fh.setLevel(logging.DEBUG) 20 | fh.setFormatter(formatter) 21 | logger.addHandler(fh) 22 | 23 | # create console handler with a higher log level 24 | console_formatter = logging.Formatter("[%(levelname)s] %(message)s") 25 | ch = logging.StreamHandler() 26 | ch.setLevel(logging.INFO) 27 | ch.setFormatter(console_formatter) 28 | logger.addHandler(ch) 29 | 30 | 31 | def install_prerequisites(): 32 | u.apt_update() 33 | u.apt_install( 34 | ["build-essential", "git", "software-properties-common"], 35 | "General Dependencies", 36 | ) 37 | 38 | 39 | def print_requirements(modules): 40 | for module in modules: 41 | if isinstance(module, tuple): 42 | module, _, _ = module 43 | module_reqs = u.get_module_requirements(module) 44 | print("Module: {}".format(Path(module.__file__).stem)) 45 | module_reqs.sort() 46 | for req in module_reqs: 47 | print(" {}".format(req)) 48 | print("") 49 | 50 | 51 | def print_components(modules): 52 | for module in modules: 53 | if isinstance(module, tuple): 54 | module, _, _ = module 55 | module_components = module.components 56 | print("Module: {}".format(Path(module.__file__).stem)) 57 | for component in module_components: 58 | try: 59 | repo_url = component.repo_url 60 | print(" {}: {}".format(component.component_name, repo_url)) 61 | except Exception as e: 62 | print(" {}: No git repo available".format(component.component_name)) 63 | print("") 64 | 65 | 66 | def run(): 67 | configure_logging() 68 | u.get_sudo() 69 | logger.info( 70 | "Only basic information will be output on screen. To see full debug logs, you can tail -f macifylinux.log." 71 | ) 72 | install_prerequisites() 73 | 74 | # Make sure all of the local directories we want to use exist. 75 | for local_dir in G["LOCAL_DIRS"]: 76 | local_dir.mkdir(parents=True, exist_ok=True) 77 | 78 | modules = [] 79 | # install Kinto(hotkeys module) first because it requires user interaction. 80 | modules.append(m.hotkeys) 81 | # modules.append((m.lookandfeel, [], {"style": "light"})) 82 | modules.append(m.lookandfeel) 83 | # spotlight should be installed after lookandfeel because it needs access to the installed icons 84 | # modules.append(m.spotlight) 85 | modules.append(m.plasmoids) 86 | # dockandpanel should be installed AFTER plasmoids because latte-dock depends on the installed plasmoids. 87 | modules.append(m.dockandpanel) 88 | 89 | for module in modules: 90 | args = [] 91 | kwargs = {} 92 | if isinstance(module, tuple): 93 | module, args, kwargs = module 94 | 95 | pretty_name = module.__doc__ 96 | if not pretty_name: 97 | pretty_name = module.__name__ 98 | logger.info("Installing module: %s", pretty_name) 99 | module_build_reqs = u.get_module_build_requirements(module) 100 | module_reqs = u.get_module_requirements(module) 101 | logger.debug("%s", module_reqs) 102 | u.apt_install(module_build_reqs, "{} build requirements".format(pretty_name)) 103 | u.apt_install(module_reqs, "{} requirements".format(pretty_name)) 104 | module.install(*args, **kwargs) 105 | 106 | # if module.pre(*args, **kwargs): 107 | # module.run(*args, **kwargs) 108 | # else: 109 | # logger.error( 110 | # "Problem while processing prerequisites for: %s", module.__name__ 111 | # ) 112 | 113 | logger.info("Setup Complete. Please restart your machine.") 114 | -------------------------------------------------------------------------------- /macifylinux/modules/lookandfeel.py: -------------------------------------------------------------------------------- 1 | """Look and Feel Module""" 2 | import logging 3 | from pathlib import Path 4 | import tempfile 5 | 6 | from macifylinux.components import custom_wallpaper 7 | from macifylinux.components import kde_hello 8 | from macifylinux.components import kde_plasma_chili 9 | from macifylinux.components import macify_linux_lookandfeel 10 | from macifylinux.components import mcmojave_cursors 11 | 12 | # from macifylinux.components import mcmojave_kde 13 | from macifylinux.components import notification_center 14 | from macifylinux.components import os_catalina_icons 15 | from macifylinux.components import sf_fonts 16 | 17 | from macifylinux.globals import GLOBALS as G 18 | import macifylinux.utils as u 19 | 20 | logger = logging.getLogger("macifylinux.modules.lookandfeel") 21 | 22 | components = [ 23 | macify_linux_lookandfeel, 24 | custom_wallpaper, 25 | mcmojave_cursors, 26 | notification_center, 27 | os_catalina_icons, 28 | sf_fonts, 29 | kde_plasma_chili, 30 | kde_hello, 31 | ] 32 | 33 | 34 | def install(*args, **kwargs): 35 | # install mcmojave_kde first as it is the base theme. everything else overwrites it. 36 | # mcmojave_kde.install(*args, **kwargs) 37 | # style = kwargs.get("style", "light") 38 | # if style == "light": 39 | # theme = "McMojave-light" 40 | # elif style == "dark": 41 | # # todo. not tested/working. 42 | # theme = "McMojave" 43 | 44 | # https://userbase.kde.org/KDE_Connect/Tutorials/Useful_commands#Change_look_and_feel 45 | 46 | for component in components: 47 | component.install(*args, **kwargs) 48 | 49 | configure(*args, **kwargs) 50 | 51 | cmd = "lookandfeeltool -a 'com.github.jonchun.{}'".format("macify-linux-light") 52 | u.run_shell(cmd, stderr_level=logging.DEBUG) 53 | 54 | 55 | def upgrade(*args, **kwargs): 56 | for component in components: 57 | component.upgrade(*args, **kwargs) 58 | 59 | 60 | def remove(*args, **kwargs): 61 | for component in components: 62 | component.remove(*args, **kwargs) 63 | 64 | 65 | def configure(*args, **kwargs): 66 | # ========== START KDEGLOBALS ========== 67 | configs = [] 68 | 69 | # widget style 70 | configs.append( 71 | {"group": "General", "key": "widgetStyle", "value": "Breeze",} 72 | ) 73 | configs.append( 74 | {"group": "KDE", "key": "widgetStyle", "value": "Breeze",} 75 | ) 76 | 77 | # Dolphin 78 | u.kwriteconfig( 79 | { 80 | "file": "~/.config/dolphinrc", 81 | "group": "General", 82 | "key": "ShowFullPath", 83 | "value": "true", 84 | } 85 | ) 86 | 87 | # This is to change browsing dolphing to doubleclick rather than single. For some reason it's in globals and not dolphinrc. 88 | u.kwriteconfig( 89 | { 90 | "file": "~/.config/kdeglobals", 91 | "group": "KDE", 92 | "key": "SingleClick", 93 | "value": "false", 94 | } 95 | ) 96 | 97 | # xsettingsd 98 | # not sure what this is, but seems important... someone please PR with a better explanation. 99 | xsettingsd_dir = Path("~/.config/xsettingsd").expanduser() 100 | xsettingsd_dir.mkdir(parents=True, exist_ok=True) 101 | xsettingsd_conf = xsettingsd_dir / Path("xsettingsd.conf") 102 | xsettingsd_template = u.get_template("xsettingsd/xsettingsd.conf") 103 | 104 | if xsettingsd_conf.is_file(): 105 | xsettingsd_conf.rename( 106 | xsettingsd_conf.with_name("{}.bak".format(xsettingsd_conf.name)) 107 | ) 108 | with xsettingsd_template.open() as f: 109 | content = f.read() 110 | # this should later be moved into a search/replace within the icons and cursors components respectively 111 | content = content.replace("$ICON_THEME", "Os-Catalina-icons").replace( 112 | "$CURSOR_THEME", "McMojave-cursors" 113 | ) 114 | 115 | with xsettingsd_conf.open("w") as f: 116 | f.write(content) 117 | xsettingsd_conf.chmod(0o664) 118 | 119 | # ========== START KWINRC ========== 120 | # Windows / Window Decorations 121 | configs = [] 122 | 123 | configs.append( 124 | {"group": "org.kde.kdecoration2", "key": "BorderSize", "value": "None",} 125 | ) 126 | 127 | configs.append( 128 | {"group": "org.kde.kdecoration2", "key": "BorderSizeAuto", "value": "false",} 129 | ) 130 | 131 | # This section moves the window buttons to the left. Some users might prefer it on the right so will have to add options later. 132 | configs.append( 133 | {"group": "org.kde.kdecoration2", "key": "ButtonsOnLeft", "value": "XIA",} 134 | ) 135 | configs.append( 136 | {"group": "org.kde.kdecoration2", "key": "ButtonsOnRight", "value": "''",} 137 | ) 138 | 139 | u.kwriteconfigs("~/.config/kwinrc", configs) 140 | 141 | # ========== END KWINRC ========== 142 | 143 | # Change splash screen back to breeze 144 | u.kwriteconfig( 145 | { 146 | "key": "Theme", 147 | "value": "org.kde.breeze.desktop", 148 | "group": "KSplash", 149 | "file": "~/.config/ksplashrc", 150 | } 151 | ) 152 | 153 | u.restart_kwin() 154 | u.restart_plasma() 155 | -------------------------------------------------------------------------------- /macifylinux/utils.py: -------------------------------------------------------------------------------- 1 | import logging 2 | from pathlib import Path 3 | import re 4 | import select 5 | import subprocess 6 | import shutil 7 | import sys 8 | import urllib.request 9 | 10 | 11 | logger = logging.getLogger("macifylinux.utils") 12 | 13 | 14 | def apt_add_ppa(ppa_name): 15 | # sudo add-apt-repository ppa:krisives/kde-hello 16 | logger.info("Adding PPA: %s", ppa_name) 17 | cmd = "sudo add-apt-repository -y ppa:{}".format(ppa_name) 18 | try: 19 | run_shell(cmd, stderr_level=logging.DEBUG) 20 | except subprocess.CalledProcessError: 21 | logger.error("Unable to add ppa: %s", ppa_name) 22 | logger.debug("", exc_info=True) 23 | 24 | 25 | def apt_install(package_names, display_name=None): 26 | packages = " ".join(package_names) 27 | if not display_name: 28 | display_name = package_names 29 | logger.info("Installing packages: %s", display_name) 30 | cmd = "sudo apt-get install -y {}".format(packages) 31 | try: 32 | run_shell(cmd, stderr_level=logging.DEBUG) 33 | except subprocess.CalledProcessError: 34 | logger.error("Unable to install package(s): %s", display_name) 35 | logger.debug("Package List: %s", packages, exc_info=True) 36 | 37 | 38 | def apt_update(): 39 | logger.info("Updating apt repositories.") 40 | cmd = "sudo apt-get update" 41 | try: 42 | run_shell(cmd, stderr_level=logging.DEBUG) 43 | except subprocess.CalledProcessError: 44 | logger.error("Unable to apt-get update.") 45 | 46 | 47 | def change_desktop_wallpaper(wallpaper_file): 48 | with get_template("changeWallpaper.js").open() as f: 49 | wallpaper_script = f.read() 50 | wallpaper_script = wallpaper_script.replace("$IMAGE_PATH", str(wallpaper_file)) 51 | eval_plasma_script(wallpaper_script, is_file=False) 52 | 53 | 54 | def eval_plasma_script(script, is_file=True): 55 | script_file = script 56 | # Takes a path object and executes the script 57 | if is_file: 58 | with script.open() as f: 59 | script = f.read() 60 | 61 | try: 62 | cmd = "dbus-send --session --dest=org.kde.plasmashell --type=method_call /PlasmaShell org.kde.PlasmaShell.evaluateScript 'string:\n{}'".format( 63 | script 64 | ) 65 | """ 66 | cmd = "qdbus org.kde.plasmashell /PlasmaShell org.kde.PlasmaShell.evaluateScript 'string: \n{}'".format( 67 | script 68 | ) 69 | """ 70 | subprocess.Popen(cmd, shell=True) 71 | """ 72 | 73 | cmd = 'qdbus org.kde.plasmashell /PlasmaShell org.kde.PlasmaShell.evaluateScript "$(cat {})"'.format( 74 | script_file 75 | ) 76 | cmd = [ 77 | "qdbus org.kde.plasmashell", "/PlasmaShell", "org.kde.PlasmaShell.evaluateScript", "$(cat {})" 78 | ] 79 | run_shell(cmd) 80 | """ 81 | except subprocess.CalledProcessError: 82 | logger.error("Unable to evaluate plasma script: %s", script_file) 83 | logger.debug("", exc_info=True) 84 | 85 | 86 | def copy_file(src_file, dest_file, recursive=False): 87 | if recursive: 88 | try: 89 | shutil.copytree(src_file, dest_file) 90 | return 1 91 | except FileExistsError: 92 | shutil.rmtree(dest_file) 93 | return copy_file(src_file, dest_file, recursive) 94 | else: 95 | shutil.copy(src_file, dest_file) 96 | return 1 97 | 98 | 99 | def cp(source, dest, flags="", root=False): 100 | sudo = "" 101 | if root: 102 | sudo = "sudo" 103 | if flags: 104 | flags = "-{}".format(flags) 105 | cmd = "{} /bin/cp {} {} {}".format(sudo, flags, source, dest) 106 | try: 107 | run_shell(cmd) 108 | except subprocess.CalledProcessError: 109 | logger.error("Unable to cp): %s -> %s", source, dest) 110 | logger.debug("cp flags: %s", flags, exc_info=True) 111 | 112 | 113 | """ 114 | def bash_action(*args, name=None, file=None, action="install"): 115 | # attempts to run $action.sh inside of the same directory as the current file. 116 | # ~/macify-linux/macifylinux/modules/example/__init__.py -> ~/macify-linux/macifylinux/modules/example/install.sh 117 | bash_file = Path(file).parent / Path("{}.sh".format(action)) 118 | if bash_file.is_file(): 119 | run_shell("cd {} && bash {} {}".format(Path(__file__).parent, bash_file, " ".join(args))) 120 | else: 121 | logger.debug("No `%s.sh` found for component: %s.", action, name) 122 | """ 123 | 124 | 125 | def bash_action( 126 | *args, 127 | name=None, 128 | file=None, 129 | action="install", 130 | interactive=False, 131 | stdout_level=None, 132 | stderr_level=None 133 | ): 134 | # attempts to run $action.sh inside of the same directory as the current file. 135 | # ~/macify-linux/macifylinux/modules/example/__init__.py -> ~/macify-linux/macifylinux/modules/example/install.sh 136 | bash_file = Path(file).parent / Path("{}.sh".format(action)) 137 | if bash_file.is_file(): 138 | commands = [] 139 | # cd into the root module directory first. 140 | commands.append("cd {}".format(Path(__file__).parent)) 141 | # execute `action.sh` and pass along any args. 142 | commands.append("bash {} {}".format(bash_file, " ".join(args))) 143 | if interactive: 144 | try: 145 | subprocess.run(" && ".join(commands), shell=True, check=True) 146 | except subprocess.CalledProcessError: 147 | logger.error("Problem while interactively executing: `%s`", bash_file) 148 | logger.debug("", exc_info=True) 149 | else: 150 | # This is a bit confusing, but basically allowing for optional kwargs stdout_level and stderr_level to be passed through 151 | log_levels = {} 152 | if stdout_level: 153 | log_levels["stdout_level"] = stdout_level 154 | if stderr_level: 155 | log_levels["stderr_level"] = stderr_level 156 | run_shell(" && ".join(commands), **log_levels) 157 | else: 158 | logger.debug("No `%s.sh` found for component: %s.", action, name) 159 | 160 | 161 | def get_module_build_requirements(module): 162 | module_build_req = [] 163 | components = module.components 164 | for component in components: 165 | try: 166 | component_build_req = component.build_requirements 167 | module_build_req.extend(component_build_req) 168 | except AttributeError: 169 | # If component doesn't have build_requirements, assume no requirements. 170 | continue 171 | # just get rid of duplicates by turning into a set and then back to a list 172 | return list(set(module_build_req)) 173 | 174 | 175 | def get_module_requirements(module): 176 | module_apt_req = [] 177 | components = module.components 178 | for component in components: 179 | try: 180 | component_apt_req = component.apt_requirements 181 | module_apt_req.extend(component_apt_req) 182 | except AttributeError: 183 | # If component doesn't have apt_requirements, assume no requirements. 184 | continue 185 | # just get rid of duplicates by turning into a set and then back to a list 186 | return list(set(module_apt_req)) 187 | 188 | 189 | def get_sudo(): 190 | logger.info( 191 | "This script will require sudo permissions for certain actions. You will be prompted for your credentials." 192 | ) 193 | try: 194 | run_shell("sudo -k") 195 | run_shell("sudo -v", stderr_level=logging.DEBUG) 196 | except subprocess.CalledProcessError: 197 | logger.error("Unable to obtain sudo password. Exiting.") 198 | sys.exit(1) 199 | # run_shell('sudo -k') 200 | 201 | 202 | def get_template(template_name): 203 | template_dir = Path(__file__).parent / Path("templates") 204 | return template_dir / Path(template_name) 205 | 206 | 207 | def git_clone(repo_url, target_dir, flags=""): 208 | # This method attempts to clone a git repo, and git pulls instead if it already exists. 209 | cmd = "git -C {} clone {} {}".format(target_dir, flags, repo_url) 210 | logger.info(cmd) 211 | logger.info("git cloning %s...", repo_url) 212 | repo_dir = Path(target_dir) / Path(repo_url).stem 213 | try: 214 | run_shell(cmd, stderr_level=logging.DEBUG) 215 | logger.debug("git clone complete for %s.", repo_url) 216 | return repo_dir 217 | except subprocess.CalledProcessError as e: 218 | if e.returncode == 128: 219 | logger.info("%s already exists! git fetch instead...", repo_url) 220 | 221 | commands = [ 222 | "cd {}".format(repo_dir), 223 | "git fetch", 224 | ] 225 | run_shell( 226 | " && ".join(commands), stderr_level=logging.DEBUG, 227 | ) 228 | return repo_dir 229 | logger.error("git clone failed for %s.", repo_url) 230 | logger.debug("", exc_info=True) 231 | return False 232 | 233 | 234 | def plasmoid_install(plasmoid_dir, pretty_name=None): 235 | plasmoid_tool(plasmoid_dir, action="install", pretty_name=pretty_name) 236 | 237 | 238 | def plasmoid_remove(plasmoid_dir, pretty_name=None): 239 | plasmoid_tool(plasmoid_dir, action="upgrade", pretty_name=pretty_name) 240 | 241 | 242 | def plasmoid_tool( 243 | plasmoid_dir, action=None, package_type="Plasma/Applet", pretty_name=None 244 | ): 245 | if not action: 246 | raise Exception("Invalid action") 247 | if not pretty_name: 248 | pretty_name = plasmoid_dir.name 249 | logger.info("Plasmoid %s starting: %s", action, pretty_name) 250 | cmd = "kpackagetool5 --type {} --{} {}".format(package_type, action, plasmoid_dir) 251 | try: 252 | run_shell(cmd, stderr_level=logging.DEBUG) 253 | except subprocess.CalledProcessError as e: 254 | if "already exist" in e.output: 255 | logger.warning("Plasmoid is already installed. Skipping: %s", plasmoid_dir) 256 | else: 257 | logger.error("Failed during %s for plasmoid: %s", action, plasmoid_dir) 258 | logger.debug("", exc_info=True) 259 | 260 | 261 | def plasmoid_upgrade(plasmoid_dir, pretty_name=None): 262 | plasmoid_tool(plasmoid_dir, action="upgrade", pretty_name=pretty_name) 263 | 264 | 265 | def kconfig(config, action="", root=False): 266 | """ 267 | { 268 | 'key': 'key', 269 | 'value': 'value', 270 | 'group': [], 271 | 'file': None 272 | } 273 | """ 274 | key = config.get("key") 275 | value = config.get("value") 276 | group = config.get("group", "") 277 | file = config.get("file", "") 278 | 279 | key = "--key {}".format(key) 280 | if file: 281 | file = "--file {}".format(file) 282 | if group: 283 | if not isinstance(group, list): 284 | group = [group] 285 | group = ["--group {}".format(g) for g in group] 286 | group_str = " ".join(group) 287 | 288 | sudo = "sudo " if root else "" 289 | if action == "read": 290 | cmd = "{}kreadconfig5 {} {} {}".format(sudo, file, group_str, key) 291 | elif action == "write": 292 | cmd = "{}kwriteconfig5 {} {} {} {}".format(sudo, file, group_str, key, value) 293 | else: 294 | raise Exception("Invalid action") 295 | 296 | logger.debug(cmd) 297 | 298 | try: 299 | return run_shell(cmd, stderr_level=logging.DEBUG) 300 | except subprocess.CalledProcessError: 301 | logger.error("Unable to %s with kconfig!", action) 302 | logger.debug("%s", config, exc_info=True) 303 | 304 | 305 | def kreadconfig(config, root=False): 306 | return kconfig(config, action="read", root=root)["stdout"][0] 307 | 308 | 309 | def kwriteconfig(config, root=False): 310 | return kconfig(config, action="write", root=root) 311 | 312 | 313 | def kwriteconfigs(file, configs, root=False): 314 | # helper utility method to write multiple configs to the same file. 315 | # configs = list of dicts 316 | for config in configs: 317 | config["file"] = file 318 | kconfig(config, action="write", root=root) 319 | 320 | 321 | def restart_kwin(): 322 | # execute it directly via Popen so that there are no open pipes when program exits. 323 | subprocess.Popen("kwin --replace > /dev/null 2>&1", shell=True) 324 | 325 | 326 | def restart_plasma(): 327 | # execute it directly via Popen so that there are no open pipes when program exits. 328 | subprocess.Popen("plasmashell --replace > /dev/null 2>&1", shell=True) 329 | 330 | 331 | def setup_symlink(source, target, target_is_directory=False): 332 | """Backs up any existing target to target_bak and then creates a symlink from source to target""" 333 | if target_is_directory: 334 | named_target = target / Path(source.name) 335 | return setup_symlink(source, named_target) 336 | if target.exists(): 337 | if not target.is_symlink(): 338 | logger.warning("%s already exists. renaming to %s_bak.", target, target) 339 | target.rename(target.with_name("{}_bak".format(target.name))) 340 | target.symlink_to(source) 341 | return True 342 | target_resolved = str(target.resolve()).replace(str(Path.home()), "~") 343 | target = str(target).replace(str(Path.home()), "~") 344 | logger.warning( 345 | "%s -> %s is already a symlink. Skipping.", target, target_resolved 346 | ) 347 | return False 348 | target.symlink_to(source) 349 | logger.debug("created symlink %s -> %s", source, target) 350 | return True 351 | 352 | 353 | def start_plasma(): 354 | logger.debug("Starting Plasma.") 355 | # execute it directly via Popen so that there are no open pipes when program exits. 356 | subprocess.Popen("kstart5 plasmashell > /dev/null 2>&1", shell=True) 357 | 358 | 359 | def stop_plasma(): 360 | logger.debug("Stopping Plasma.") 361 | try: 362 | output = run_shell("kquitapp5 plasmashell", stderr_level=logging.DEBUG) 363 | except subprocess.CalledProcessError as e: 364 | if "could not be found" in e.output: 365 | logger.debug("Tried to quit Plasmashell but it's not running.") 366 | else: 367 | logger.error("Unexpected issue with stopping plasma.") 368 | logger.debug("", exc_info=True) 369 | 370 | 371 | def run_shell( 372 | cmd, 373 | stdout_level=logging.DEBUG, 374 | stderr_level=logging.WARNING, 375 | root=False, 376 | change_dir=None, 377 | ): 378 | """ 379 | https://gist.github.com/bgreenlee/1402841 380 | """ 381 | 382 | # Commands to run 383 | cmds = [] 384 | # this gets the root path of the main python module 385 | module_path = Path(__file__).parent 386 | # always cd to the the root path first so we always know exactly where we are starting our bash scripts. 387 | cmds.append("cd {}".format(module_path)) 388 | 389 | if root: 390 | cmd = "sudo {}".format(cmd) 391 | 392 | # strip any whitespace from command 393 | cmd = cmd.strip() 394 | cmds.append(cmd) 395 | logger.debug("Running Shell Command: %s", cmd) 396 | p = subprocess.Popen( 397 | " && ".join(cmds), stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell=True 398 | ) 399 | 400 | log_level = {p.stdout: stdout_level, p.stderr: stderr_level} 401 | log_cache = { 402 | p.stdout: [], 403 | p.stderr: [], 404 | } 405 | 406 | def check_io(): 407 | ready = select.select([p.stdout, p.stderr], [], [], 1000)[0] 408 | 409 | for io in ready: 410 | line = io.readline().strip() 411 | if not line: 412 | continue 413 | try: 414 | logger.log(log_level[io], line.decode().rstrip()) 415 | log_cache[io].append(line.decode().rstrip()) 416 | except UnicodeDecodeError: 417 | continue 418 | """ 419 | lines = io.readlines() 420 | for line in lines: 421 | logger.log(log_level[io], line[:-1].decode()) 422 | log_cache[io].append(line[:-1].decode()) 423 | """ 424 | 425 | # keep checking stdout/stderr until the child exits 426 | while p.poll() is None: 427 | check_io() 428 | # check again to catch anything after the process exits 429 | check_io() 430 | p.wait() 431 | 432 | if p.returncode != 0: 433 | # https://github.com/python/cpython/blob/c6e5c1123bac6cbb4c85265155af5349dcea522e/Lib/subprocess.py#L114 434 | output = "\n".join(log_cache[p.stderr]).strip() 435 | raise subprocess.CalledProcessError( 436 | p.returncode, cmd, output=output, stderr=p.stderr 437 | ) 438 | 439 | ret_dict = {"stdout": log_cache[p.stdout], "stderr": log_cache[p.stderr]} 440 | return ret_dict 441 | 442 | 443 | def run_shell_bg(cmd): 444 | """ 445 | When you want to just ignore all output and one-shot run something, this is helpful. 446 | e.g. this is useful if you want to start lattedock in the background and don't care about its output spamming up the session. 447 | https://gist.github.com/yinjimmy/d6ad0742d03d54518e9f 448 | """ 449 | subprocess.Popen("{} > /dev/null 2>&1 &".format(cmd), shell=True, close_fds=True) 450 | -------------------------------------------------------------------------------- /macifylinux/components/latte_dock/macifyLinux.layout.latte: -------------------------------------------------------------------------------- 1 | [ActionPlugins][1] 2 | RightButton;NoModifier=org.kde.latte.contextmenu 3 | 4 | [Containments][1] 5 | activityId= 6 | byPassWM=false 7 | dockWindowBehavior=true 8 | enableKWinEdges=true 9 | formfactor=2 10 | immutability=1 11 | isPreferredForShortcuts=true 12 | lastScreen=-1 13 | location=4 14 | onPrimary=true 15 | plugin=org.kde.latte.containment 16 | raiseOnActivityChange=false 17 | raiseOnDesktopChange=false 18 | settingsComplexity=4 19 | timerFloatHide=2700 20 | timerHide=100 21 | timerShow=100 22 | viewType=0 23 | visibility=0 24 | wallpaperplugin=org.kde.image 25 | 26 | [Containments][1][Applets][2] 27 | immutability=1 28 | plugin=org.kde.latte.plasmoid 29 | 30 | [Containments][1][Applets][2][Configuration] 31 | PreloadWeight=0 32 | 33 | [Containments][1][Applets][2][Configuration][General] 34 | isInLatteDock=true 35 | launchers59=applications:org.kde.dolphin.desktop,applications:firefox.desktop,applications:org.kde.kwrite.desktop,applications:vlc.desktop,applications:org.kde.gwenview.desktop,applications:org.kde.okular.desktop,applications:org.kde.plasma.emojier.desktop,applications:org.kde.ksysguard.desktop,applications:org.kde.discover.desktop,applications:systemsettings.desktop,applications:org.kde.konsole.desktop,file:///latte-separator1.desktop 36 | 37 | [Containments][1][Applets][279] 38 | immutability=1 39 | plugin=org.kde.plasma.kickerdash 40 | 41 | [Containments][1][Applets][279][Configuration] 42 | PreloadWeight=68 43 | 44 | [Containments][1][Applets][279][Configuration][ConfigDialog] 45 | DialogHeight=540 46 | DialogWidth=720 47 | 48 | [Containments][1][Applets][279][Configuration][General] 49 | customButtonImage=app-launcher 50 | favoritesPortedToKAstats=true 51 | useCustomButtonImage=true 52 | 53 | [Containments][1][Applets][84] 54 | immutability=1 55 | plugin=org.kde.plasma.trash 56 | 57 | [Containments][1][Applets][84][Configuration] 58 | PreloadWeight=0 59 | 60 | [Containments][1][Applets][87] 61 | immutability=1 62 | plugin=audoban.applet.separator 63 | 64 | [Containments][1][Applets][95] 65 | immutability=1 66 | plugin=org.kde.latte.separator 67 | 68 | [Containments][1][Applets][95][Configuration] 69 | PreloadWeight=0 70 | 71 | [Containments][1][Applets][95][Configuration][ConfigDialog] 72 | DialogHeight=540 73 | DialogWidth=720 74 | 75 | [Containments][1][Applets][95][Configuration][General] 76 | lengthMargin=3 77 | thickMargin=3 78 | 79 | [Containments][1][ConfigDialog] 80 | DialogHeight=910 81 | DialogWidth=509 82 | 83 | [Containments][1][Configuration] 84 | PreloadWeight=0 85 | 86 | [Containments][1][General] 87 | advanced=true 88 | appletOrder=279;2;95;84 89 | configurationSticker=true 90 | glowOpacity=0 91 | glowOption=OnActive 92 | hoverAction=HighlightWindows 93 | iconMargin=30 94 | iconSize=16 95 | infoBadgeProminentColorEnabled=true 96 | lengthExtMargin=5 97 | mouseWheelActions=false 98 | panelSize=100 99 | panelTransparency=50 100 | proportionIconSize=5 101 | shadowOpacity=50 102 | taskScrollAction=ScrollNone 103 | thickMargin=13 104 | unifiedGlobalShortcuts=false 105 | userBlocksColorizingApplets=84 106 | zoomLevel=3 107 | 108 | [Containments][1][Indicator] 109 | customType=org.kde.latte.unity 110 | enabled=true 111 | enabledForApplets=false 112 | padding=0.05000000074505806 113 | type=org.kde.latte.default 114 | 115 | [Containments][1][Indicator][org.kde.latte.dashtopanel][General] 116 | style=Ciliora 117 | 118 | [Containments][1][Indicator][org.kde.latte.default][General] 119 | activeStyle=Dot 120 | glowEnabled=true 121 | glowOpacity=0.2 122 | minimizedTaskColoredDifferently=true 123 | 124 | [Containments][1][Indicator][org.kde.latte.plasma][General] 125 | clickedAnimationEnabled=true 126 | 127 | [Containments][1][Indicator][org.kde.latte.unity][General] 128 | colorsForMinimized=true 129 | fillShapesForMinimized=false 130 | glowOpacity=0.7 131 | 132 | [Containments][59] 133 | activityId= 134 | byPassWM=false 135 | enableKWinEdges=true 136 | formfactor=2 137 | immutability=1 138 | isPreferredForShortcuts=false 139 | lastScreen=-1 140 | location=3 141 | onPrimary=true 142 | plugin=org.kde.latte.containment 143 | raiseOnActivityChange=false 144 | raiseOnDesktopChange=false 145 | settingsComplexity=4 146 | timerFloatHide=2700 147 | timerHide=700 148 | timerShow=0 149 | viewType=1 150 | visibility=0 151 | wallpaperplugin=org.kde.image 152 | 153 | [Containments][59][Applets][245] 154 | immutability=1 155 | plugin=org.kde.latte.spacer 156 | 157 | [Containments][59][Applets][245][Configuration] 158 | PreloadWeight=0 159 | 160 | [Containments][59][Applets][245][Configuration][ConfigDialog] 161 | DialogHeight=540 162 | DialogWidth=720 163 | 164 | [Containments][59][Applets][245][Configuration][General] 165 | containmentType=Latte 166 | lengthPercentage=100 167 | lengthPixels=15 168 | 169 | [Containments][59][Applets][248] 170 | immutability=1 171 | plugin=org.kde.latte.spacer 172 | 173 | [Containments][59][Applets][248][Configuration] 174 | PreloadWeight=0 175 | 176 | [Containments][59][Applets][248][Configuration][ConfigDialog] 177 | DialogHeight=540 178 | DialogWidth=720 179 | 180 | [Containments][59][Applets][248][Configuration][General] 181 | containmentType=Latte 182 | lengthPercentage=25 183 | lengthPixels=4 184 | lengthType=Percentage 185 | 186 | [Containments][59][Applets][251] 187 | immutability=1 188 | plugin=org.kde.plasma.networkmanagement 189 | 190 | [Containments][59][Applets][251][Configuration] 191 | PreloadWeight=0 192 | 193 | [Containments][59][Applets][254] 194 | immutability=1 195 | plugin=org.kde.plasma.chiliclock 196 | 197 | [Containments][59][Applets][254][Configuration] 198 | PreloadWeight=0 199 | 200 | [Containments][59][Applets][254][Configuration][Appearance] 201 | customDateFormat=ddd 202 | customSpacing=1.6203703703703702 203 | dateFormat=customDate 204 | fixedFont=true 205 | fontFamily=SF Pro Text 206 | fontSize=14 207 | showSeconds=false 208 | showSeparator=false 209 | use24hFormat=0 210 | 211 | [Containments][59][Applets][254][Configuration][ConfigDialog] 212 | DialogHeight=540 213 | DialogWidth=720 214 | 215 | [Containments][59][Applets][255] 216 | immutability=1 217 | plugin=org.kde.latte.spacer 218 | 219 | [Containments][59][Applets][255][Configuration] 220 | PreloadWeight=0 221 | 222 | [Containments][59][Applets][255][Configuration][ConfigDialog] 223 | DialogHeight=540 224 | DialogWidth=720 225 | 226 | [Containments][59][Applets][255][Configuration][General] 227 | containmentType=Latte 228 | lengthPercentage=50 229 | lengthPixels=5 230 | 231 | [Containments][59][Applets][256] 232 | immutability=1 233 | plugin=org.kde.latte.spacer 234 | 235 | [Containments][59][Applets][256][Configuration] 236 | PreloadWeight=0 237 | 238 | [Containments][59][Applets][256][Configuration][ConfigDialog] 239 | DialogHeight=540 240 | DialogWidth=720 241 | 242 | [Containments][59][Applets][256][Configuration][General] 243 | containmentType=Latte 244 | lengthPercentage=45 245 | lengthPixels=10 246 | 247 | [Containments][59][Applets][263] 248 | immutability=1 249 | plugin=org.kde.plasma.uswitcher 250 | 251 | [Containments][59][Applets][263][Configuration] 252 | PreloadWeight=30 253 | 254 | [Containments][59][Applets][263][Configuration][ConfigDialog] 255 | DialogHeight=540 256 | DialogWidth=720 257 | 258 | [Containments][59][Applets][263][Configuration][General] 259 | icon=file:///usr/share/icons/breeze/apps/22/plasma.svg 260 | showName=false 261 | showSett=true 262 | 263 | [Containments][59][Applets][264] 264 | immutability=1 265 | plugin=org.kde.windowtitle 266 | 267 | [Containments][59][Applets][264][Configuration] 268 | PreloadWeight=10 269 | 270 | [Containments][59][Applets][264][Configuration][ConfigDialog] 271 | DialogHeight=540 272 | DialogWidth=1920 273 | 274 | [Containments][59][Applets][264][Configuration][General] 275 | appMenuIsPresent=true 276 | containmentType=Latte 277 | filterActivityInfo=false 278 | showIcon=false 279 | subsMatch="Telegram Desktop","Gimp-.*","Firefox Web Browser","Google Chrome","VLC Media Player" 280 | subsReplace="Telegram","Gimp","Firefox","Chrome","VLC" 281 | 282 | [Containments][59][Applets][265] 283 | immutability=1 284 | plugin=org.kde.windowappmenu 285 | 286 | [Containments][59][Applets][265][Configuration] 287 | PreloadWeight=10 288 | 289 | [Containments][59][Applets][265][Configuration][ConfigDialog] 290 | DialogHeight=540 291 | DialogWidth=720 292 | 293 | [Containments][59][Applets][265][Configuration][General] 294 | containmentType=Latte 295 | spacing=8 296 | supportsActiveWindowSchemes=true 297 | windowTitleIsPresent=true 298 | 299 | [Containments][59][Applets][266] 300 | immutability=1 301 | plugin=org.kde.latte.spacer 302 | 303 | [Containments][59][Applets][266][Configuration] 304 | PreloadWeight=10 305 | 306 | [Containments][59][Applets][266][Configuration][ConfigDialog] 307 | DialogHeight=540 308 | DialogWidth=720 309 | 310 | [Containments][59][Applets][266][Configuration][General] 311 | containmentType=Latte 312 | lengthPixels=5 313 | 314 | [Containments][59][Applets][268] 315 | immutability=1 316 | plugin=org.kde.latte.spacer 317 | 318 | [Containments][59][Applets][268][Configuration] 319 | PreloadWeight=10 320 | 321 | [Containments][59][Applets][268][Configuration][ConfigDialog] 322 | DialogHeight=540 323 | DialogWidth=720 324 | 325 | [Containments][59][Applets][268][Configuration][General] 326 | containmentType=Latte 327 | lengthPercentage=25 328 | lengthType=Percentage 329 | 330 | [Containments][59][Applets][269] 331 | immutability=1 332 | plugin=org.kde.latte.spacer 333 | 334 | [Containments][59][Applets][269][Configuration] 335 | PreloadWeight=10 336 | 337 | [Containments][59][Applets][269][Configuration][ConfigDialog] 338 | DialogHeight=540 339 | DialogWidth=720 340 | 341 | [Containments][59][Applets][269][Configuration][General] 342 | containmentType=Latte 343 | lengthPercentage=20 344 | lengthType=Percentage 345 | 346 | [Containments][59][Applets][270] 347 | immutability=1 348 | plugin=org.kde.plasma.volume 349 | 350 | [Containments][59][Applets][270][Configuration] 351 | PreloadWeight=10 352 | 353 | [Containments][59][Applets][272] 354 | immutability=1 355 | plugin=org.kde.milou 356 | 357 | [Containments][59][Applets][272][Configuration] 358 | PreloadWeight=55 359 | 360 | [Containments][59][Applets][272][Configuration][ConfigDialog] 361 | DialogHeight=540 362 | DialogWidth=720 363 | 364 | [Containments][59][Applets][275] 365 | immutability=1 366 | plugin=org.kde.plasma.inlineBattery 367 | 368 | [Containments][59][Applets][275][Configuration] 369 | PreloadWeight=10 370 | 371 | [Containments][59][Applets][275][Configuration][ConfigDialog] 372 | DialogHeight=540 373 | DialogWidth=720 374 | 375 | [Containments][59][Applets][275][Configuration][General] 376 | fontSize=12 377 | iconHeight=12 378 | iconWidth=20 379 | padding=3 380 | 381 | [Containments][59][Applets][276] 382 | immutability=1 383 | plugin=org.kde.latte.spacer 384 | 385 | [Containments][59][Applets][276][Configuration] 386 | PreloadWeight=10 387 | 388 | [Containments][59][Applets][276][Configuration][ConfigDialog] 389 | DialogHeight=540 390 | DialogWidth=720 391 | 392 | [Containments][59][Applets][276][Configuration][General] 393 | containmentType=Latte 394 | lengthPercentage=25 395 | lengthPixels=8 396 | 397 | [Containments][59][Applets][277] 398 | immutability=1 399 | plugin=org.kde.latte.spacer 400 | 401 | [Containments][59][Applets][277][Configuration] 402 | PreloadWeight=10 403 | 404 | [Containments][59][Applets][277][Configuration][ConfigDialog] 405 | DialogHeight=540 406 | DialogWidth=720 407 | 408 | [Containments][59][Applets][277][Configuration][General] 409 | containmentType=Latte 410 | lengthPixels=4 411 | 412 | [Containments][59][Applets][278] 413 | immutability=1 414 | plugin=org.kde.latte.spacer 415 | 416 | [Containments][59][Applets][278][Configuration] 417 | PreloadWeight=10 418 | 419 | [Containments][59][Applets][278][Configuration][ConfigDialog] 420 | DialogHeight=540 421 | DialogWidth=720 422 | 423 | [Containments][59][Applets][278][Configuration][General] 424 | containmentType=Latte 425 | lengthPixels=4 426 | 427 | [Containments][59][Applets][290] 428 | immutability=1 429 | plugin=org.kde.latte.spacer 430 | 431 | [Containments][59][Applets][290][Configuration][ConfigDialog] 432 | DialogHeight=540 433 | DialogWidth=720 434 | 435 | [Containments][59][Applets][290][Configuration][General] 436 | containmentType=Latte 437 | lengthPixels=8 438 | 439 | [Containments][59][Applets][320] 440 | immutability=1 441 | plugin=org.kde.plasma.notifications 442 | 443 | [Containments][59][Applets][320][Configuration] 444 | PreloadWeight=95 445 | 446 | [Containments][59][Applets][67] 447 | immutability=1 448 | plugin=org.kde.activeWindowControl 449 | 450 | [Containments][59][Applets][67][Configuration][AppMenu] 451 | appmenuDoNotHide=true 452 | appmenuEnabled=true 453 | appmenuFillHeight=true 454 | appmenuNextToButtons=true 455 | appmenuNextToIconAndText=true 456 | appmenuOuterSideMargin=10 457 | appmenuSeparatorEnabled=false 458 | appmenuSwitchSidesWithIconAndText=true 459 | 460 | [Containments][59][Applets][67][Configuration][Appearance] 461 | autoFillWidth=true 462 | boldFontWeight=true 463 | fontSizeScale=1.15 464 | noWindowText=Plasma 465 | showControlButtons=false 466 | showWindowIcon=false 467 | textType=1 468 | tooltipTextType=1 469 | 470 | [Containments][59][Applets][67][Configuration][ConfigDialog] 471 | DialogHeight=540 472 | DialogWidth=720 473 | 474 | [Containments][59][Applets][71] 475 | immutability=1 476 | plugin=org.kde.weatherWidget 477 | 478 | [Containments][59][Applets][71][Configuration] 479 | PreloadWeight=5 480 | 481 | [Containments][59][Applets][71][Configuration][ConfigDialog] 482 | DialogHeight=540 483 | DialogWidth=720 484 | 485 | [Containments][59][Applets][71][Configuration][General] 486 | lastReloadedMsJson={"cache_5a5440a6c6026f3e61c6aee598cae8dc":1570294524885,"cache_886d4a8aaf351187fc9f4f75258e4cee":1576916969684,"cache_b1a8e5fbe9292daf3d4d554c04e048d9":1576917235157} 487 | places=[{"providerId":"owm","placeIdentifier":"1581130","placeAlias":""}] 488 | 489 | [Containments][59][Applets][72] 490 | immutability=1 491 | plugin=org.kde.plasma.systemtray 492 | 493 | [Containments][59][Applets][72][Configuration] 494 | PreloadWeight=5 495 | SystrayContainmentId=73 496 | 497 | [Containments][59][Applets][92] 498 | immutability=1 499 | plugin=org.kde.windowbuttons 500 | 501 | [Containments][59][Applets][92][Configuration] 502 | PreloadWeight=0 503 | 504 | [Containments][59][Applets][92][Configuration][ConfigDialog] 505 | DialogHeight=443 506 | DialogWidth=687 507 | 508 | [Containments][59][Applets][92][Configuration][General] 509 | buttonSizePercentage=76 510 | buttons=5|3|4|10|2|9 511 | containmentType=Latte 512 | inactiveStateEnabled=true 513 | selectedPlugin= 514 | selectedScheme=kdeglobals 515 | slideAnimation=true 516 | spacing=2 517 | useDecorationMetrics=false 518 | visibility=ActiveMaximizedWindow 519 | 520 | [Containments][59][ConfigDialog] 521 | DialogHeight=855 522 | DialogWidth=509 523 | 524 | [Containments][59][Configuration] 525 | PreloadWeight=0 526 | 527 | [Containments][59][General] 528 | activeIndicator=None 529 | advanced=true 530 | appletOrder=248;263;268;264;269;265;266;72;278;251;277;270;276;275;256;254;255;272;273;290;320;245 531 | autoDecreaseIconSize=false 532 | dragActiveWindowEnabled=true 533 | iconMargin=55 534 | iconSize=16 535 | inConfigureAppletsMode=true 536 | mouseWheelActions=false 537 | panelPosition=10 538 | panelSize=100 539 | panelTransparency=90 540 | proportionIconSize=2 541 | shadowOpacity=35 542 | shadowSize=40 543 | shadows=None 544 | splitterPosition=6 545 | splitterPosition2=8 546 | taskScrollAction=ScrollNone 547 | thickMargin=10 548 | zoomLevel=0 549 | 550 | [Containments][59][Indicator] 551 | customType= 552 | enabled=false 553 | enabledForApplets=false 554 | padding=0.10000000149011612 555 | type=org.kde.latte.default 556 | 557 | [Containments][73] 558 | PreloadWeight=0 559 | activityId= 560 | formfactor=2 561 | immutability=1 562 | lastScreen=-1 563 | location=3 564 | plugin=org.kde.plasma.private.systemtray 565 | wallpaperplugin=org.kde.image 566 | 567 | [Containments][73][Applets][103] 568 | immutability=1 569 | plugin=org.kde.kscreen 570 | 571 | [Containments][73][Applets][103][Configuration] 572 | PreloadWeight=0 573 | 574 | [Containments][73][Applets][151] 575 | immutability=1 576 | plugin=org.kde.plasma.vault 577 | 578 | [Containments][73][Applets][151][Configuration] 579 | PreloadWeight=0 580 | 581 | [Containments][73][Applets][260] 582 | immutability=1 583 | plugin=org.kde.plasma.nightcolorcontrol 584 | 585 | [Containments][73][Applets][260][Configuration] 586 | PreloadWeight=0 587 | 588 | [Containments][73][Applets][317] 589 | immutability=1 590 | plugin=org.kde.plasma.mediacontroller 591 | 592 | [Containments][73][Applets][317][Configuration] 593 | PreloadWeight=10 594 | 595 | [Containments][73][Applets][76] 596 | immutability=1 597 | plugin=org.kde.plasma.devicenotifier 598 | 599 | [Containments][73][Applets][76][Configuration] 600 | PreloadWeight=0 601 | 602 | [Containments][73][Applets][77] 603 | immutability=1 604 | plugin=org.kde.kdeconnect 605 | 606 | [Containments][73][Applets][77][Configuration] 607 | PreloadWeight=0 608 | 609 | [Containments][73][Applets][78] 610 | immutability=1 611 | plugin=org.kde.plasma.keyboardindicator 612 | 613 | [Containments][73][Applets][78][Configuration] 614 | PreloadWeight=0 615 | 616 | [Containments][73][Applets][80] 617 | immutability=1 618 | plugin=org.kde.plasma.printmanager 619 | 620 | [Containments][73][Applets][80][Configuration] 621 | PreloadWeight=0 622 | 623 | [Containments][73][ConfigDialog] 624 | DialogHeight=540 625 | DialogWidth=720 626 | 627 | [Containments][73][General] 628 | blockedAutoColorItems=org.kde.plasma.notifications 629 | extraItems=org.kde.kdeconnect,org.kde.plasma.bluetooth,org.kde.plasma.devicenotifier,org.kde.plasma.keyboardindicator,org.kde.plasma.mediacontroller,org.kde.plasma.pkupdates,org.kde.kscreen,org.kde.plasma.vault,org.kde.plasma.printmanager,org.kde.plasma.nightcolorcontrol,org.kde.plasma.custom-notifier 630 | hiddenItems=octopi-notifier,org.kde.plasma.devicenotifier,org.kde.plasma.vault 631 | knownItems=org.kde.kdeconnect,org.kde.plasma.battery,org.kde.plasma.bluetooth,org.kde.plasma.clipboard,org.kde.plasma.devicenotifier,org.kde.plasma.keyboardindicator,org.kde.plasma.mediacontroller,org.kde.plasma.networkmanagement,org.kde.plasma.notifications,org.kde.plasma.printmanager,org.kde.plasma.volume,org.kde.plasma.pkupdates,org.kde.plasma.mediacontroller_plus,org.kde.plasma.vault,org.kde.plasma.nightcolorcontrol,org.kde.plasma.custom-notifier 632 | 633 | [LayoutSettings] 634 | activities= 635 | background= 636 | backgroundStyle=0 637 | color=darkgrey 638 | customBackground= 639 | customTextColor=fcfcfc 640 | disableBordersForMaximizedWindows=true 641 | lastUsedActivity= 642 | launchers= 643 | preferredForShortcutsTouched=true 644 | sharedLayout= 645 | showInMenu=true 646 | textColor= 647 | version=2 648 | 649 | [ScreenMapping] 650 | screenMapping= 651 | -------------------------------------------------------------------------------- /macifylinux/templates/lattedock/macifyLinux.layout.latte.fixedHeight: -------------------------------------------------------------------------------- 1 | [ActionPlugins][1] 2 | RightButton;NoModifier=org.kde.latte.contextmenu 3 | 4 | [Containments][1] 5 | activityId= 6 | byPassWM=false 7 | dockWindowBehavior=true 8 | enableKWinEdges=true 9 | formfactor=2 10 | immutability=1 11 | isPreferredForShortcuts=true 12 | lastScreen=-1 13 | location=4 14 | onPrimary=true 15 | plugin=org.kde.latte.containment 16 | raiseOnActivityChange=false 17 | raiseOnDesktopChange=false 18 | settingsComplexity=4 19 | timerFloatHide=2700 20 | timerHide=100 21 | timerShow=100 22 | viewType=0 23 | visibility=0 24 | wallpaperplugin=org.kde.image 25 | 26 | [Containments][1][Applets][2] 27 | immutability=1 28 | plugin=org.kde.latte.plasmoid 29 | 30 | [Containments][1][Applets][2][Configuration] 31 | PreloadWeight=0 32 | 33 | [Containments][1][Applets][2][Configuration][General] 34 | isInLatteDock=true 35 | launchers59=applications:org.kde.dolphin.desktop,applications:firefox.desktop,applications:org.kde.kwrite.desktop,applications:vlc.desktop,applications:org.kde.gwenview.desktop,applications:org.kde.okular.desktop,applications:org.kde.plasma.emojier.desktop,applications:org.kde.ksysguard.desktop,applications:org.kde.discover.desktop,applications:systemsettings.desktop,applications:org.kde.konsole.desktop,file:///latte-separator1.desktop 36 | 37 | [Containments][1][Applets][279] 38 | immutability=1 39 | plugin=org.kde.plasma.kickerdash 40 | 41 | [Containments][1][Applets][279][Configuration] 42 | PreloadWeight=68 43 | 44 | [Containments][1][Applets][279][Configuration][ConfigDialog] 45 | DialogHeight=540 46 | DialogWidth=720 47 | 48 | [Containments][1][Applets][279][Configuration][General] 49 | customButtonImage=app-launcher 50 | favoritesPortedToKAstats=true 51 | useCustomButtonImage=true 52 | 53 | [Containments][1][Applets][84] 54 | immutability=1 55 | plugin=org.kde.plasma.trash 56 | 57 | [Containments][1][Applets][84][Configuration] 58 | PreloadWeight=0 59 | 60 | [Containments][1][Applets][87] 61 | immutability=1 62 | plugin=audoban.applet.separator 63 | 64 | [Containments][1][Applets][95] 65 | immutability=1 66 | plugin=org.kde.latte.separator 67 | 68 | [Containments][1][Applets][95][Configuration] 69 | PreloadWeight=0 70 | 71 | [Containments][1][Applets][95][Configuration][ConfigDialog] 72 | DialogHeight=540 73 | DialogWidth=720 74 | 75 | [Containments][1][Applets][95][Configuration][General] 76 | lengthMargin=3 77 | thickMargin=3 78 | 79 | [Containments][1][ConfigDialog] 80 | DialogHeight=910 81 | DialogWidth=509 82 | 83 | [Containments][1][Configuration] 84 | PreloadWeight=0 85 | 86 | [Containments][1][General] 87 | advanced=true 88 | appletOrder=279;2;95;84 89 | configurationSticker=true 90 | glowOpacity=0 91 | glowOption=OnActive 92 | hoverAction=HighlightWindows 93 | iconMargin=30 94 | iconSize=16 95 | infoBadgeProminentColorEnabled=true 96 | lengthExtMargin=5 97 | mouseWheelActions=false 98 | panelSize=100 99 | panelTransparency=70 100 | proportionIconSize=5 101 | shadowOpacity=50 102 | taskScrollAction=ScrollNone 103 | thickMargin=13 104 | unifiedGlobalShortcuts=false 105 | userBlocksColorizingApplets=84 106 | zoomLevel=3 107 | 108 | [Containments][1][Indicator] 109 | customType=org.kde.latte.unity 110 | enabled=true 111 | enabledForApplets=false 112 | padding=0.05000000074505806 113 | type=org.kde.latte.default 114 | 115 | [Containments][1][Indicator][org.kde.latte.dashtopanel][General] 116 | style=Ciliora 117 | 118 | [Containments][1][Indicator][org.kde.latte.default][General] 119 | activeStyle=Dot 120 | glowEnabled=true 121 | glowOpacity=0.2 122 | minimizedTaskColoredDifferently=true 123 | 124 | [Containments][1][Indicator][org.kde.latte.plasma][General] 125 | clickedAnimationEnabled=true 126 | 127 | [Containments][1][Indicator][org.kde.latte.unity][General] 128 | colorsForMinimized=true 129 | fillShapesForMinimized=false 130 | glowOpacity=0.7 131 | 132 | [Containments][281] 133 | activityId= 134 | byPassWM=false 135 | enableKWinEdges=true 136 | formfactor=3 137 | immutability=1 138 | isPreferredForShortcuts=false 139 | lastScreen=-1 140 | location=6 141 | onPrimary=true 142 | plugin=org.kde.latte.containment 143 | raiseOnActivityChange=false 144 | raiseOnDesktopChange=false 145 | settingsComplexity=4 146 | timerHide=700 147 | timerShow=0 148 | viewType=1 149 | visibility=8 150 | wallpaperplugin=org.kde.image 151 | 152 | [Containments][281][Applets][294] 153 | immutability=1 154 | plugin=org.kde.latte.spacer 155 | 156 | [Containments][281][Applets][294][Configuration][ConfigDialog] 157 | DialogHeight=540 158 | DialogWidth=720 159 | 160 | [Containments][281][Applets][294][Configuration][General] 161 | containmentType=Latte 162 | lengthType=Expanding 163 | 164 | [Containments][281][Applets][305] 165 | immutability=1 166 | plugin=org.kde.latte.spacer 167 | 168 | [Containments][281][Applets][305][Configuration][ConfigDialog] 169 | DialogHeight=540 170 | DialogWidth=720 171 | 172 | [Containments][281][Applets][305][Configuration][General] 173 | containmentType=Latte 174 | lengthPixels=15 175 | 176 | [Containments][281][Applets][308] 177 | immutability=1 178 | plugin=org.kde.latte.spacer 179 | 180 | [Containments][281][Applets][308][Configuration][ConfigDialog] 181 | DialogHeight=540 182 | DialogWidth=720 183 | 184 | [Containments][281][Applets][308][Configuration][General] 185 | containmentType=Latte 186 | lengthPixels=20 187 | 188 | [Containments][281][Applets][309] 189 | immutability=1 190 | plugin=org.kde.plasma.grouping 191 | 192 | [Containments][281][Applets][309][Configuration] 193 | ContainmentId=310 194 | 195 | [Containments][281][Applets][319] 196 | immutability=1 197 | plugin=org.kde.plasma.mediacontroller 198 | 199 | [Containments][281][ConfigDialog] 200 | DialogHeight=950 201 | DialogWidth=509 202 | 203 | [Containments][281][General] 204 | animationLauncherBouncing=false 205 | animationWindowAddedInGroup=false 206 | animationWindowInAttention=false 207 | animationsEnabled=false 208 | appletOrder=305;309;294;319;308 209 | blurEnabled=false 210 | iconSize=300 211 | inConfigureAppletsMode=true 212 | isStickedOnBottomEdge=true 213 | lastWindowsVisibilityMode=8 214 | mouseWheelActions=false 215 | panelPosition=10 216 | panelSize=100 217 | plasmaBackgroundForPopups=true 218 | shadows=None 219 | splitterPosition=2 220 | splitterPosition2=4 221 | taskScrollAction=ScrollNone 222 | thickMargin=5 223 | titleTooltips=false 224 | zoomLevel=0 225 | 226 | [Containments][281][Indicator] 227 | customType= 228 | enabled=false 229 | enabledForApplets=true 230 | padding=0.07999999821186066 231 | type=org.kde.latte.default 232 | 233 | [Containments][310] 234 | activityId= 235 | formfactor=3 236 | immutability=1 237 | lastScreen=-1 238 | location=6 239 | plugin=org.kde.plasma.private.grouping 240 | wallpaperplugin=org.kde.image 241 | 242 | [Containments][310][Applets][313] 243 | immutability=1 244 | plugin=org.kde.plasma.eventcalendar 245 | 246 | [Containments][310][Applets][313][Configuration] 247 | PreloadWeight=100 248 | 249 | [Containments][310][Applets][313][Configuration][Agenda] 250 | agendaWeatherOnRight=true 251 | agenda_weather_show_text=true 252 | twoColumns=false 253 | 254 | [Containments][310][Applets][313][Configuration][Calendar] 255 | month_show_border=false 256 | 257 | [Containments][310][Applets][313][Configuration][ConfigDialog] 258 | DialogHeight=858 259 | DialogWidth=896 260 | 261 | [Containments][310][Applets][313][Configuration][General] 262 | clock_line_2=true 263 | clock_maxheight=100 264 | clock_timeformat=dddd, 265 | clock_timeformat_2=MMMM d 266 | showBackground=false 267 | 268 | [Containments][310][Applets][313][Configuration][Google Calendar] 269 | calendar_list=W10= 270 | events_pollinterval=60 271 | 272 | [Containments][310][Applets][313][Configuration][Weather] 273 | weather_city_id=5368361 274 | weather_units=imperial 275 | 276 | [Containments][310][Applets][314] 277 | immutability=1 278 | plugin=org.kde.plasma.notifications 279 | 280 | [Containments][310][Applets][314][Configuration][ConfigDialog] 281 | DialogHeight=540 282 | DialogWidth=720 283 | 284 | [Containments][310][ConfigDialog] 285 | DialogHeight=540 286 | DialogWidth=720 287 | 288 | [Containments][59] 289 | activityId= 290 | byPassWM=false 291 | enableKWinEdges=true 292 | formfactor=2 293 | immutability=1 294 | isPreferredForShortcuts=false 295 | lastScreen=-1 296 | location=3 297 | onPrimary=true 298 | plugin=org.kde.latte.containment 299 | raiseOnActivityChange=false 300 | raiseOnDesktopChange=false 301 | settingsComplexity=4 302 | timerFloatHide=2700 303 | timerHide=700 304 | timerShow=0 305 | viewType=1 306 | visibility=0 307 | wallpaperplugin=org.kde.image 308 | 309 | [Containments][59][Applets][245] 310 | immutability=1 311 | plugin=org.kde.latte.spacer 312 | 313 | [Containments][59][Applets][245][Configuration] 314 | PreloadWeight=0 315 | 316 | [Containments][59][Applets][245][Configuration][ConfigDialog] 317 | DialogHeight=540 318 | DialogWidth=720 319 | 320 | [Containments][59][Applets][245][Configuration][General] 321 | containmentType=Latte 322 | lengthPercentage=100 323 | lengthPixels=15 324 | 325 | [Containments][59][Applets][248] 326 | immutability=1 327 | plugin=org.kde.latte.spacer 328 | 329 | [Containments][59][Applets][248][Configuration] 330 | PreloadWeight=0 331 | 332 | [Containments][59][Applets][248][Configuration][ConfigDialog] 333 | DialogHeight=540 334 | DialogWidth=720 335 | 336 | [Containments][59][Applets][248][Configuration][General] 337 | containmentType=Latte 338 | lengthPercentage=25 339 | lengthPixels=4 340 | lengthType=Percentage 341 | 342 | [Containments][59][Applets][251] 343 | immutability=1 344 | plugin=org.kde.plasma.networkmanagement 345 | 346 | [Containments][59][Applets][251][Configuration] 347 | PreloadWeight=0 348 | 349 | [Containments][59][Applets][254] 350 | immutability=1 351 | plugin=org.kde.plasma.chiliclock 352 | 353 | [Containments][59][Applets][254][Configuration] 354 | PreloadWeight=0 355 | 356 | [Containments][59][Applets][254][Configuration][Appearance] 357 | customDateFormat=ddd 358 | customSpacing=1.6203703703703702 359 | dateFormat=customDate 360 | fixedFont=true 361 | fontFamily=SF Pro Text 362 | fontSize=14 363 | showSeconds=false 364 | showSeparator=false 365 | use24hFormat=0 366 | 367 | [Containments][59][Applets][254][Configuration][ConfigDialog] 368 | DialogHeight=540 369 | DialogWidth=720 370 | 371 | [Containments][59][Applets][255] 372 | immutability=1 373 | plugin=org.kde.latte.spacer 374 | 375 | [Containments][59][Applets][255][Configuration] 376 | PreloadWeight=0 377 | 378 | [Containments][59][Applets][255][Configuration][ConfigDialog] 379 | DialogHeight=540 380 | DialogWidth=720 381 | 382 | [Containments][59][Applets][255][Configuration][General] 383 | containmentType=Latte 384 | lengthPercentage=50 385 | lengthPixels=5 386 | 387 | [Containments][59][Applets][256] 388 | immutability=1 389 | plugin=org.kde.latte.spacer 390 | 391 | [Containments][59][Applets][256][Configuration] 392 | PreloadWeight=0 393 | 394 | [Containments][59][Applets][256][Configuration][ConfigDialog] 395 | DialogHeight=540 396 | DialogWidth=720 397 | 398 | [Containments][59][Applets][256][Configuration][General] 399 | containmentType=Latte 400 | lengthPercentage=45 401 | lengthPixels=10 402 | 403 | [Containments][59][Applets][263] 404 | immutability=1 405 | plugin=org.kde.plasma.uswitcher 406 | 407 | [Containments][59][Applets][263][Configuration] 408 | PreloadWeight=25 409 | 410 | [Containments][59][Applets][263][Configuration][ConfigDialog] 411 | DialogHeight=540 412 | DialogWidth=720 413 | 414 | [Containments][59][Applets][263][Configuration][General] 415 | icon=file:///usr/share/icons/breeze/apps/22/plasma.svg 416 | showName=false 417 | showSett=true 418 | 419 | [Containments][59][Applets][264] 420 | immutability=1 421 | plugin=org.kde.windowtitle 422 | 423 | [Containments][59][Applets][264][Configuration] 424 | PreloadWeight=10 425 | 426 | [Containments][59][Applets][264][Configuration][ConfigDialog] 427 | DialogHeight=540 428 | DialogWidth=1920 429 | 430 | [Containments][59][Applets][264][Configuration][General] 431 | appMenuIsPresent=true 432 | containmentType=Latte 433 | filterActivityInfo=false 434 | showIcon=false 435 | subsMatch="Telegram Desktop","Gimp-.*","Firefox Web Browser","Google Chrome","VLC Media Player" 436 | subsReplace="Telegram","Gimp","Firefox","Chrome","VLC" 437 | 438 | [Containments][59][Applets][265] 439 | immutability=1 440 | plugin=org.kde.windowappmenu 441 | 442 | [Containments][59][Applets][265][Configuration] 443 | PreloadWeight=10 444 | 445 | [Containments][59][Applets][265][Configuration][ConfigDialog] 446 | DialogHeight=540 447 | DialogWidth=720 448 | 449 | [Containments][59][Applets][265][Configuration][General] 450 | containmentType=Latte 451 | spacing=8 452 | supportsActiveWindowSchemes=true 453 | windowTitleIsPresent=true 454 | 455 | [Containments][59][Applets][266] 456 | immutability=1 457 | plugin=org.kde.latte.spacer 458 | 459 | [Containments][59][Applets][266][Configuration] 460 | PreloadWeight=10 461 | 462 | [Containments][59][Applets][266][Configuration][ConfigDialog] 463 | DialogHeight=540 464 | DialogWidth=720 465 | 466 | [Containments][59][Applets][266][Configuration][General] 467 | containmentType=Latte 468 | lengthPixels=5 469 | 470 | [Containments][59][Applets][268] 471 | immutability=1 472 | plugin=org.kde.latte.spacer 473 | 474 | [Containments][59][Applets][268][Configuration] 475 | PreloadWeight=10 476 | 477 | [Containments][59][Applets][268][Configuration][ConfigDialog] 478 | DialogHeight=540 479 | DialogWidth=720 480 | 481 | [Containments][59][Applets][268][Configuration][General] 482 | containmentType=Latte 483 | lengthPercentage=25 484 | lengthType=Percentage 485 | 486 | [Containments][59][Applets][269] 487 | immutability=1 488 | plugin=org.kde.latte.spacer 489 | 490 | [Containments][59][Applets][269][Configuration] 491 | PreloadWeight=10 492 | 493 | [Containments][59][Applets][269][Configuration][ConfigDialog] 494 | DialogHeight=540 495 | DialogWidth=720 496 | 497 | [Containments][59][Applets][269][Configuration][General] 498 | containmentType=Latte 499 | lengthPercentage=20 500 | lengthType=Percentage 501 | 502 | [Containments][59][Applets][270] 503 | immutability=1 504 | plugin=org.kde.plasma.volume 505 | 506 | [Containments][59][Applets][270][Configuration] 507 | PreloadWeight=10 508 | 509 | [Containments][59][Applets][272] 510 | immutability=1 511 | plugin=org.kde.milou 512 | 513 | [Containments][59][Applets][272][Configuration] 514 | PreloadWeight=55 515 | 516 | [Containments][59][Applets][272][Configuration][ConfigDialog] 517 | DialogHeight=540 518 | DialogWidth=720 519 | 520 | [Containments][59][Applets][273] 521 | immutability=1 522 | plugin=org.kde.latte.spacer 523 | 524 | [Containments][59][Applets][273][Configuration] 525 | PreloadWeight=10 526 | 527 | [Containments][59][Applets][273][Configuration][ConfigDialog] 528 | DialogHeight=540 529 | DialogWidth=720 530 | 531 | [Containments][59][Applets][273][Configuration][General] 532 | containmentType=Latte 533 | lengthPercentage=50 534 | lengthPixels=5 535 | 536 | [Containments][59][Applets][275] 537 | immutability=1 538 | plugin=org.kde.plasma.inlineBattery 539 | 540 | [Containments][59][Applets][275][Configuration] 541 | PreloadWeight=10 542 | 543 | [Containments][59][Applets][275][Configuration][ConfigDialog] 544 | DialogHeight=540 545 | DialogWidth=720 546 | 547 | [Containments][59][Applets][275][Configuration][General] 548 | fontSize=12 549 | iconHeight=12 550 | iconWidth=20 551 | padding=3 552 | 553 | [Containments][59][Applets][276] 554 | immutability=1 555 | plugin=org.kde.latte.spacer 556 | 557 | [Containments][59][Applets][276][Configuration] 558 | PreloadWeight=10 559 | 560 | [Containments][59][Applets][276][Configuration][ConfigDialog] 561 | DialogHeight=540 562 | DialogWidth=720 563 | 564 | [Containments][59][Applets][276][Configuration][General] 565 | containmentType=Latte 566 | lengthPercentage=25 567 | lengthPixels=8 568 | 569 | [Containments][59][Applets][277] 570 | immutability=1 571 | plugin=org.kde.latte.spacer 572 | 573 | [Containments][59][Applets][277][Configuration] 574 | PreloadWeight=10 575 | 576 | [Containments][59][Applets][277][Configuration][ConfigDialog] 577 | DialogHeight=540 578 | DialogWidth=720 579 | 580 | [Containments][59][Applets][277][Configuration][General] 581 | containmentType=Latte 582 | lengthPixels=4 583 | 584 | [Containments][59][Applets][278] 585 | immutability=1 586 | plugin=org.kde.latte.spacer 587 | 588 | [Containments][59][Applets][278][Configuration] 589 | PreloadWeight=10 590 | 591 | [Containments][59][Applets][278][Configuration][ConfigDialog] 592 | DialogHeight=540 593 | DialogWidth=720 594 | 595 | [Containments][59][Applets][278][Configuration][General] 596 | containmentType=Latte 597 | lengthPixels=4 598 | 599 | [Containments][59][Applets][280] 600 | immutability=1 601 | plugin=org.kde.latte.sidebarbutton 602 | 603 | [Containments][59][Applets][280][Configuration] 604 | PreloadWeight=75 605 | 606 | [Containments][59][Applets][280][Configuration][ConfigDialog] 607 | DialogHeight=540 608 | DialogWidth=720 609 | 610 | [Containments][59][Applets][280][Configuration][General] 611 | iconSource=/home/jchun/.local/share/icons/Os-Catalina-icons/22x22/panel/launcher2.svg 612 | maximumIconSize=32 613 | screenEdge=6 614 | 615 | [Containments][59][Applets][290] 616 | immutability=1 617 | plugin=org.kde.latte.spacer 618 | 619 | [Containments][59][Applets][290][Configuration][ConfigDialog] 620 | DialogHeight=540 621 | DialogWidth=720 622 | 623 | [Containments][59][Applets][290][Configuration][General] 624 | containmentType=Latte 625 | lengthPixels=5 626 | 627 | [Containments][59][Applets][67] 628 | immutability=1 629 | plugin=org.kde.activeWindowControl 630 | 631 | [Containments][59][Applets][67][Configuration][AppMenu] 632 | appmenuDoNotHide=true 633 | appmenuEnabled=true 634 | appmenuFillHeight=true 635 | appmenuNextToButtons=true 636 | appmenuNextToIconAndText=true 637 | appmenuOuterSideMargin=10 638 | appmenuSeparatorEnabled=false 639 | appmenuSwitchSidesWithIconAndText=true 640 | 641 | [Containments][59][Applets][67][Configuration][Appearance] 642 | autoFillWidth=true 643 | boldFontWeight=true 644 | fontSizeScale=1.15 645 | noWindowText=Plasma 646 | showControlButtons=false 647 | showWindowIcon=false 648 | textType=1 649 | tooltipTextType=1 650 | 651 | [Containments][59][Applets][67][Configuration][ConfigDialog] 652 | DialogHeight=540 653 | DialogWidth=720 654 | 655 | [Containments][59][Applets][71] 656 | immutability=1 657 | plugin=org.kde.weatherWidget 658 | 659 | [Containments][59][Applets][71][Configuration] 660 | PreloadWeight=5 661 | 662 | [Containments][59][Applets][71][Configuration][ConfigDialog] 663 | DialogHeight=540 664 | DialogWidth=720 665 | 666 | [Containments][59][Applets][71][Configuration][General] 667 | lastReloadedMsJson={"cache_5a5440a6c6026f3e61c6aee598cae8dc":1570294524885,"cache_886d4a8aaf351187fc9f4f75258e4cee":1576916969684,"cache_b1a8e5fbe9292daf3d4d554c04e048d9":1576917235157} 668 | places=[{"providerId":"owm","placeIdentifier":"1581130","placeAlias":""}] 669 | 670 | [Containments][59][Applets][72] 671 | immutability=1 672 | plugin=org.kde.plasma.systemtray 673 | 674 | [Containments][59][Applets][72][Configuration] 675 | PreloadWeight=5 676 | SystrayContainmentId=73 677 | 678 | [Containments][59][Applets][92] 679 | immutability=1 680 | plugin=org.kde.windowbuttons 681 | 682 | [Containments][59][Applets][92][Configuration] 683 | PreloadWeight=0 684 | 685 | [Containments][59][Applets][92][Configuration][ConfigDialog] 686 | DialogHeight=443 687 | DialogWidth=687 688 | 689 | [Containments][59][Applets][92][Configuration][General] 690 | buttonSizePercentage=76 691 | buttons=5|3|4|10|2|9 692 | containmentType=Latte 693 | inactiveStateEnabled=true 694 | selectedPlugin= 695 | selectedScheme=kdeglobals 696 | slideAnimation=true 697 | spacing=2 698 | useDecorationMetrics=false 699 | visibility=ActiveMaximizedWindow 700 | 701 | [Containments][59][ConfigDialog] 702 | DialogHeight=909 703 | DialogWidth=509 704 | 705 | [Containments][59][Configuration] 706 | PreloadWeight=0 707 | 708 | [Containments][59][General] 709 | activeIndicator=None 710 | advanced=true 711 | appletOrder=248;263;268;264;269;265;266;72;278;251;277;270;276;275;256;254;255;272;273;290;280;245 712 | autoDecreaseIconSize=false 713 | dragActiveWindowEnabled=true 714 | iconMargin=55 715 | iconSize=20 716 | inConfigureAppletsMode=true 717 | mouseWheelActions=false 718 | panelPosition=10 719 | panelSize=100 720 | panelTransparency=90 721 | shadowOpacity=35 722 | shadowSize=40 723 | shadows=None 724 | splitterPosition=6 725 | splitterPosition2=8 726 | taskScrollAction=ScrollNone 727 | thickMargin=10 728 | zoomLevel=0 729 | 730 | [Containments][59][Indicator] 731 | customType= 732 | enabled=false 733 | enabledForApplets=false 734 | padding=0.10000000149011612 735 | type=org.kde.latte.default 736 | 737 | [Containments][73] 738 | PreloadWeight=0 739 | activityId= 740 | formfactor=2 741 | immutability=1 742 | lastScreen=-1 743 | location=3 744 | plugin=org.kde.plasma.private.systemtray 745 | wallpaperplugin=org.kde.image 746 | 747 | [Containments][73][Applets][103] 748 | immutability=1 749 | plugin=org.kde.kscreen 750 | 751 | [Containments][73][Applets][103][Configuration] 752 | PreloadWeight=0 753 | 754 | [Containments][73][Applets][151] 755 | immutability=1 756 | plugin=org.kde.plasma.vault 757 | 758 | [Containments][73][Applets][151][Configuration] 759 | PreloadWeight=0 760 | 761 | [Containments][73][Applets][260] 762 | immutability=1 763 | plugin=org.kde.plasma.nightcolorcontrol 764 | 765 | [Containments][73][Applets][260][Configuration] 766 | PreloadWeight=0 767 | 768 | [Containments][73][Applets][317] 769 | immutability=1 770 | plugin=org.kde.plasma.mediacontroller 771 | 772 | [Containments][73][Applets][317][Configuration] 773 | PreloadWeight=10 774 | 775 | [Containments][73][Applets][76] 776 | immutability=1 777 | plugin=org.kde.plasma.devicenotifier 778 | 779 | [Containments][73][Applets][76][Configuration] 780 | PreloadWeight=0 781 | 782 | [Containments][73][Applets][77] 783 | immutability=1 784 | plugin=org.kde.kdeconnect 785 | 786 | [Containments][73][Applets][77][Configuration] 787 | PreloadWeight=0 788 | 789 | [Containments][73][Applets][78] 790 | immutability=1 791 | plugin=org.kde.plasma.keyboardindicator 792 | 793 | [Containments][73][Applets][78][Configuration] 794 | PreloadWeight=0 795 | 796 | [Containments][73][Applets][80] 797 | immutability=1 798 | plugin=org.kde.plasma.printmanager 799 | 800 | [Containments][73][Applets][80][Configuration] 801 | PreloadWeight=0 802 | 803 | [Containments][73][ConfigDialog] 804 | DialogHeight=540 805 | DialogWidth=720 806 | 807 | [Containments][73][General] 808 | blockedAutoColorItems=org.kde.plasma.notifications 809 | extraItems=org.kde.kdeconnect,org.kde.plasma.bluetooth,org.kde.plasma.devicenotifier,org.kde.plasma.keyboardindicator,org.kde.plasma.mediacontroller,org.kde.plasma.pkupdates,org.kde.kscreen,org.kde.plasma.vault,org.kde.plasma.printmanager,org.kde.plasma.nightcolorcontrol,org.kde.plasma.custom-notifier 810 | hiddenItems=octopi-notifier,org.kde.plasma.devicenotifier,org.kde.plasma.vault 811 | knownItems=org.kde.kdeconnect,org.kde.plasma.battery,org.kde.plasma.bluetooth,org.kde.plasma.clipboard,org.kde.plasma.devicenotifier,org.kde.plasma.keyboardindicator,org.kde.plasma.mediacontroller,org.kde.plasma.networkmanagement,org.kde.plasma.notifications,org.kde.plasma.printmanager,org.kde.plasma.volume,org.kde.plasma.pkupdates,org.kde.plasma.mediacontroller_plus,org.kde.plasma.vault,org.kde.plasma.nightcolorcontrol,org.kde.plasma.custom-notifier 812 | 813 | [LayoutSettings] 814 | activities= 815 | background= 816 | backgroundStyle=0 817 | color=darkgrey 818 | customBackground= 819 | customTextColor=fcfcfc 820 | disableBordersForMaximizedWindows=true 821 | lastUsedActivity= 822 | launchers= 823 | preferredForShortcutsTouched=true 824 | sharedLayout= 825 | showInMenu=true 826 | textColor= 827 | version=2 828 | 829 | [ScreenMapping] 830 | screenMapping= 831 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 3, 29 June 2007 3 | 4 | Copyright (C) 2007 Free Software Foundation, Inc. 5 | Everyone is permitted to copy and distribute verbatim copies 6 | of this license document, but changing it is not allowed. 7 | 8 | Preamble 9 | 10 | The GNU General Public License is a free, copyleft license for 11 | software and other kinds of works. 12 | 13 | The licenses for most software and other practical works are designed 14 | to take away your freedom to share and change the works. By contrast, 15 | the GNU General Public License is intended to guarantee your freedom to 16 | share and change all versions of a program--to make sure it remains free 17 | software for all its users. We, the Free Software Foundation, use the 18 | GNU General Public License for most of our software; it applies also to 19 | any other work released this way by its authors. You can apply it to 20 | your programs, too. 21 | 22 | When we speak of free software, we are referring to freedom, not 23 | price. Our General Public Licenses are designed to make sure that you 24 | have the freedom to distribute copies of free software (and charge for 25 | them if you wish), that you receive source code or can get it if you 26 | want it, that you can change the software or use pieces of it in new 27 | free programs, and that you know you can do these things. 28 | 29 | To protect your rights, we need to prevent others from denying you 30 | these rights or asking you to surrender the rights. Therefore, you have 31 | certain responsibilities if you distribute copies of the software, or if 32 | you modify it: responsibilities to respect the freedom of others. 33 | 34 | For example, if you distribute copies of such a program, whether 35 | gratis or for a fee, you must pass on to the recipients the same 36 | freedoms that you received. You must make sure that they, too, receive 37 | or can get the source code. And you must show them these terms so they 38 | know their rights. 39 | 40 | Developers that use the GNU GPL protect your rights with two steps: 41 | (1) assert copyright on the software, and (2) offer you this License 42 | giving you legal permission to copy, distribute and/or modify it. 43 | 44 | For the developers' and authors' protection, the GPL clearly explains 45 | that there is no warranty for this free software. For both users' and 46 | authors' sake, the GPL requires that modified versions be marked as 47 | changed, so that their problems will not be attributed erroneously to 48 | authors of previous versions. 49 | 50 | Some devices are designed to deny users access to install or run 51 | modified versions of the software inside them, although the manufacturer 52 | can do so. This is fundamentally incompatible with the aim of 53 | protecting users' freedom to change the software. The systematic 54 | pattern of such abuse occurs in the area of products for individuals to 55 | use, which is precisely where it is most unacceptable. Therefore, we 56 | have designed this version of the GPL to prohibit the practice for those 57 | products. If such problems arise substantially in other domains, we 58 | stand ready to extend this provision to those domains in future versions 59 | of the GPL, as needed to protect the freedom of users. 60 | 61 | Finally, every program is threatened constantly by software patents. 62 | States should not allow patents to restrict development and use of 63 | software on general-purpose computers, but in those that do, we wish to 64 | avoid the special danger that patents applied to a free program could 65 | make it effectively proprietary. To prevent this, the GPL assures that 66 | patents cannot be used to render the program non-free. 67 | 68 | The precise terms and conditions for copying, distribution and 69 | modification follow. 70 | 71 | TERMS AND CONDITIONS 72 | 73 | 0. Definitions. 74 | 75 | "This License" refers to version 3 of the GNU General Public License. 76 | 77 | "Copyright" also means copyright-like laws that apply to other kinds of 78 | works, such as semiconductor masks. 79 | 80 | "The Program" refers to any copyrightable work licensed under this 81 | License. Each licensee is addressed as "you". "Licensees" and 82 | "recipients" may be individuals or organizations. 83 | 84 | To "modify" a work means to copy from or adapt all or part of the work 85 | in a fashion requiring copyright permission, other than the making of an 86 | exact copy. The resulting work is called a "modified version" of the 87 | earlier work or a work "based on" the earlier work. 88 | 89 | A "covered work" means either the unmodified Program or a work based 90 | on the Program. 91 | 92 | To "propagate" a work means to do anything with it that, without 93 | permission, would make you directly or secondarily liable for 94 | infringement under applicable copyright law, except executing it on a 95 | computer or modifying a private copy. Propagation includes copying, 96 | distribution (with or without modification), making available to the 97 | public, and in some countries other activities as well. 98 | 99 | To "convey" a work means any kind of propagation that enables other 100 | parties to make or receive copies. Mere interaction with a user through 101 | a computer network, with no transfer of a copy, is not conveying. 102 | 103 | An interactive user interface displays "Appropriate Legal Notices" 104 | to the extent that it includes a convenient and prominently visible 105 | feature that (1) displays an appropriate copyright notice, and (2) 106 | tells the user that there is no warranty for the work (except to the 107 | extent that warranties are provided), that licensees may convey the 108 | work under this License, and how to view a copy of this License. If 109 | the interface presents a list of user commands or options, such as a 110 | menu, a prominent item in the list meets this criterion. 111 | 112 | 1. Source Code. 113 | 114 | The "source code" for a work means the preferred form of the work 115 | for making modifications to it. "Object code" means any non-source 116 | form of a work. 117 | 118 | A "Standard Interface" means an interface that either is an official 119 | standard defined by a recognized standards body, or, in the case of 120 | interfaces specified for a particular programming language, one that 121 | is widely used among developers working in that language. 122 | 123 | The "System Libraries" of an executable work include anything, other 124 | than the work as a whole, that (a) is included in the normal form of 125 | packaging a Major Component, but which is not part of that Major 126 | Component, and (b) serves only to enable use of the work with that 127 | Major Component, or to implement a Standard Interface for which an 128 | implementation is available to the public in source code form. A 129 | "Major Component", in this context, means a major essential component 130 | (kernel, window system, and so on) of the specific operating system 131 | (if any) on which the executable work runs, or a compiler used to 132 | produce the work, or an object code interpreter used to run it. 133 | 134 | The "Corresponding Source" for a work in object code form means all 135 | the source code needed to generate, install, and (for an executable 136 | work) run the object code and to modify the work, including scripts to 137 | control those activities. However, it does not include the work's 138 | System Libraries, or general-purpose tools or generally available free 139 | programs which are used unmodified in performing those activities but 140 | which are not part of the work. For example, Corresponding Source 141 | includes interface definition files associated with source files for 142 | the work, and the source code for shared libraries and dynamically 143 | linked subprograms that the work is specifically designed to require, 144 | such as by intimate data communication or control flow between those 145 | subprograms and other parts of the work. 146 | 147 | The Corresponding Source need not include anything that users 148 | can regenerate automatically from other parts of the Corresponding 149 | Source. 150 | 151 | The Corresponding Source for a work in source code form is that 152 | same work. 153 | 154 | 2. Basic Permissions. 155 | 156 | All rights granted under this License are granted for the term of 157 | copyright on the Program, and are irrevocable provided the stated 158 | conditions are met. This License explicitly affirms your unlimited 159 | permission to run the unmodified Program. The output from running a 160 | covered work is covered by this License only if the output, given its 161 | content, constitutes a covered work. This License acknowledges your 162 | rights of fair use or other equivalent, as provided by copyright law. 163 | 164 | You may make, run and propagate covered works that you do not 165 | convey, without conditions so long as your license otherwise remains 166 | in force. You may convey covered works to others for the sole purpose 167 | of having them make modifications exclusively for you, or provide you 168 | with facilities for running those works, provided that you comply with 169 | the terms of this License in conveying all material for which you do 170 | not control copyright. Those thus making or running the covered works 171 | for you must do so exclusively on your behalf, under your direction 172 | and control, on terms that prohibit them from making any copies of 173 | your copyrighted material outside their relationship with you. 174 | 175 | Conveying under any other circumstances is permitted solely under 176 | the conditions stated below. Sublicensing is not allowed; section 10 177 | makes it unnecessary. 178 | 179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law. 180 | 181 | No covered work shall be deemed part of an effective technological 182 | measure under any applicable law fulfilling obligations under article 183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or 184 | similar laws prohibiting or restricting circumvention of such 185 | measures. 186 | 187 | When you convey a covered work, you waive any legal power to forbid 188 | circumvention of technological measures to the extent such circumvention 189 | is effected by exercising rights under this License with respect to 190 | the covered work, and you disclaim any intention to limit operation or 191 | modification of the work as a means of enforcing, against the work's 192 | users, your or third parties' legal rights to forbid circumvention of 193 | technological measures. 194 | 195 | 4. Conveying Verbatim Copies. 196 | 197 | You may convey verbatim copies of the Program's source code as you 198 | receive it, in any medium, provided that you conspicuously and 199 | appropriately publish on each copy an appropriate copyright notice; 200 | keep intact all notices stating that this License and any 201 | non-permissive terms added in accord with section 7 apply to the code; 202 | keep intact all notices of the absence of any warranty; and give all 203 | recipients a copy of this License along with the Program. 204 | 205 | You may charge any price or no price for each copy that you convey, 206 | and you may offer support or warranty protection for a fee. 207 | 208 | 5. Conveying Modified Source Versions. 209 | 210 | You may convey a work based on the Program, or the modifications to 211 | produce it from the Program, in the form of source code under the 212 | terms of section 4, provided that you also meet all of these conditions: 213 | 214 | a) The work must carry prominent notices stating that you modified 215 | it, and giving a relevant date. 216 | 217 | b) The work must carry prominent notices stating that it is 218 | released under this License and any conditions added under section 219 | 7. This requirement modifies the requirement in section 4 to 220 | "keep intact all notices". 221 | 222 | c) You must license the entire work, as a whole, under this 223 | License to anyone who comes into possession of a copy. This 224 | License will therefore apply, along with any applicable section 7 225 | additional terms, to the whole of the work, and all its parts, 226 | regardless of how they are packaged. This License gives no 227 | permission to license the work in any other way, but it does not 228 | invalidate such permission if you have separately received it. 229 | 230 | d) If the work has interactive user interfaces, each must display 231 | Appropriate Legal Notices; however, if the Program has interactive 232 | interfaces that do not display Appropriate Legal Notices, your 233 | work need not make them do so. 234 | 235 | A compilation of a covered work with other separate and independent 236 | works, which are not by their nature extensions of the covered work, 237 | and which are not combined with it such as to form a larger program, 238 | in or on a volume of a storage or distribution medium, is called an 239 | "aggregate" if the compilation and its resulting copyright are not 240 | used to limit the access or legal rights of the compilation's users 241 | beyond what the individual works permit. Inclusion of a covered work 242 | in an aggregate does not cause this License to apply to the other 243 | parts of the aggregate. 244 | 245 | 6. Conveying Non-Source Forms. 246 | 247 | You may convey a covered work in object code form under the terms 248 | of sections 4 and 5, provided that you also convey the 249 | machine-readable Corresponding Source under the terms of this License, 250 | in one of these ways: 251 | 252 | a) Convey the object code in, or embodied in, a physical product 253 | (including a physical distribution medium), accompanied by the 254 | Corresponding Source fixed on a durable physical medium 255 | customarily used for software interchange. 256 | 257 | b) Convey the object code in, or embodied in, a physical product 258 | (including a physical distribution medium), accompanied by a 259 | written offer, valid for at least three years and valid for as 260 | long as you offer spare parts or customer support for that product 261 | model, to give anyone who possesses the object code either (1) a 262 | copy of the Corresponding Source for all the software in the 263 | product that is covered by this License, on a durable physical 264 | medium customarily used for software interchange, for a price no 265 | more than your reasonable cost of physically performing this 266 | conveying of source, or (2) access to copy the 267 | Corresponding Source from a network server at no charge. 268 | 269 | c) Convey individual copies of the object code with a copy of the 270 | written offer to provide the Corresponding Source. This 271 | alternative is allowed only occasionally and noncommercially, and 272 | only if you received the object code with such an offer, in accord 273 | with subsection 6b. 274 | 275 | d) Convey the object code by offering access from a designated 276 | place (gratis or for a charge), and offer equivalent access to the 277 | Corresponding Source in the same way through the same place at no 278 | further charge. You need not require recipients to copy the 279 | Corresponding Source along with the object code. If the place to 280 | copy the object code is a network server, the Corresponding Source 281 | may be on a different server (operated by you or a third party) 282 | that supports equivalent copying facilities, provided you maintain 283 | clear directions next to the object code saying where to find the 284 | Corresponding Source. Regardless of what server hosts the 285 | Corresponding Source, you remain obligated to ensure that it is 286 | available for as long as needed to satisfy these requirements. 287 | 288 | e) Convey the object code using peer-to-peer transmission, provided 289 | you inform other peers where the object code and Corresponding 290 | Source of the work are being offered to the general public at no 291 | charge under subsection 6d. 292 | 293 | A separable portion of the object code, whose source code is excluded 294 | from the Corresponding Source as a System Library, need not be 295 | included in conveying the object code work. 296 | 297 | A "User Product" is either (1) a "consumer product", which means any 298 | tangible personal property which is normally used for personal, family, 299 | or household purposes, or (2) anything designed or sold for incorporation 300 | into a dwelling. In determining whether a product is a consumer product, 301 | doubtful cases shall be resolved in favor of coverage. For a particular 302 | product received by a particular user, "normally used" refers to a 303 | typical or common use of that class of product, regardless of the status 304 | of the particular user or of the way in which the particular user 305 | actually uses, or expects or is expected to use, the product. A product 306 | is a consumer product regardless of whether the product has substantial 307 | commercial, industrial or non-consumer uses, unless such uses represent 308 | the only significant mode of use of the product. 309 | 310 | "Installation Information" for a User Product means any methods, 311 | procedures, authorization keys, or other information required to install 312 | and execute modified versions of a covered work in that User Product from 313 | a modified version of its Corresponding Source. The information must 314 | suffice to ensure that the continued functioning of the modified object 315 | code is in no case prevented or interfered with solely because 316 | modification has been made. 317 | 318 | If you convey an object code work under this section in, or with, or 319 | specifically for use in, a User Product, and the conveying occurs as 320 | part of a transaction in which the right of possession and use of the 321 | User Product is transferred to the recipient in perpetuity or for a 322 | fixed term (regardless of how the transaction is characterized), the 323 | Corresponding Source conveyed under this section must be accompanied 324 | by the Installation Information. But this requirement does not apply 325 | if neither you nor any third party retains the ability to install 326 | modified object code on the User Product (for example, the work has 327 | been installed in ROM). 328 | 329 | The requirement to provide Installation Information does not include a 330 | requirement to continue to provide support service, warranty, or updates 331 | for a work that has been modified or installed by the recipient, or for 332 | the User Product in which it has been modified or installed. Access to a 333 | network may be denied when the modification itself materially and 334 | adversely affects the operation of the network or violates the rules and 335 | protocols for communication across the network. 336 | 337 | Corresponding Source conveyed, and Installation Information provided, 338 | in accord with this section must be in a format that is publicly 339 | documented (and with an implementation available to the public in 340 | source code form), and must require no special password or key for 341 | unpacking, reading or copying. 342 | 343 | 7. Additional Terms. 344 | 345 | "Additional permissions" are terms that supplement the terms of this 346 | License by making exceptions from one or more of its conditions. 347 | Additional permissions that are applicable to the entire Program shall 348 | be treated as though they were included in this License, to the extent 349 | that they are valid under applicable law. If additional permissions 350 | apply only to part of the Program, that part may be used separately 351 | under those permissions, but the entire Program remains governed by 352 | this License without regard to the additional permissions. 353 | 354 | When you convey a copy of a covered work, you may at your option 355 | remove any additional permissions from that copy, or from any part of 356 | it. (Additional permissions may be written to require their own 357 | removal in certain cases when you modify the work.) You may place 358 | additional permissions on material, added by you to a covered work, 359 | for which you have or can give appropriate copyright permission. 360 | 361 | Notwithstanding any other provision of this License, for material you 362 | add to a covered work, you may (if authorized by the copyright holders of 363 | that material) supplement the terms of this License with terms: 364 | 365 | a) Disclaiming warranty or limiting liability differently from the 366 | terms of sections 15 and 16 of this License; or 367 | 368 | b) Requiring preservation of specified reasonable legal notices or 369 | author attributions in that material or in the Appropriate Legal 370 | Notices displayed by works containing it; or 371 | 372 | c) Prohibiting misrepresentation of the origin of that material, or 373 | requiring that modified versions of such material be marked in 374 | reasonable ways as different from the original version; or 375 | 376 | d) Limiting the use for publicity purposes of names of licensors or 377 | authors of the material; or 378 | 379 | e) Declining to grant rights under trademark law for use of some 380 | trade names, trademarks, or service marks; or 381 | 382 | f) Requiring indemnification of licensors and authors of that 383 | material by anyone who conveys the material (or modified versions of 384 | it) with contractual assumptions of liability to the recipient, for 385 | any liability that these contractual assumptions directly impose on 386 | those licensors and authors. 387 | 388 | All other non-permissive additional terms are considered "further 389 | restrictions" within the meaning of section 10. If the Program as you 390 | received it, or any part of it, contains a notice stating that it is 391 | governed by this License along with a term that is a further 392 | restriction, you may remove that term. If a license document contains 393 | a further restriction but permits relicensing or conveying under this 394 | License, you may add to a covered work material governed by the terms 395 | of that license document, provided that the further restriction does 396 | not survive such relicensing or conveying. 397 | 398 | If you add terms to a covered work in accord with this section, you 399 | must place, in the relevant source files, a statement of the 400 | additional terms that apply to those files, or a notice indicating 401 | where to find the applicable terms. 402 | 403 | Additional terms, permissive or non-permissive, may be stated in the 404 | form of a separately written license, or stated as exceptions; 405 | the above requirements apply either way. 406 | 407 | 8. Termination. 408 | 409 | You may not propagate or modify a covered work except as expressly 410 | provided under this License. Any attempt otherwise to propagate or 411 | modify it is void, and will automatically terminate your rights under 412 | this License (including any patent licenses granted under the third 413 | paragraph of section 11). 414 | 415 | However, if you cease all violation of this License, then your 416 | license from a particular copyright holder is reinstated (a) 417 | provisionally, unless and until the copyright holder explicitly and 418 | finally terminates your license, and (b) permanently, if the copyright 419 | holder fails to notify you of the violation by some reasonable means 420 | prior to 60 days after the cessation. 421 | 422 | Moreover, your license from a particular copyright holder is 423 | reinstated permanently if the copyright holder notifies you of the 424 | violation by some reasonable means, this is the first time you have 425 | received notice of violation of this License (for any work) from that 426 | copyright holder, and you cure the violation prior to 30 days after 427 | your receipt of the notice. 428 | 429 | Termination of your rights under this section does not terminate the 430 | licenses of parties who have received copies or rights from you under 431 | this License. If your rights have been terminated and not permanently 432 | reinstated, you do not qualify to receive new licenses for the same 433 | material under section 10. 434 | 435 | 9. Acceptance Not Required for Having Copies. 436 | 437 | You are not required to accept this License in order to receive or 438 | run a copy of the Program. Ancillary propagation of a covered work 439 | occurring solely as a consequence of using peer-to-peer transmission 440 | to receive a copy likewise does not require acceptance. However, 441 | nothing other than this License grants you permission to propagate or 442 | modify any covered work. These actions infringe copyright if you do 443 | not accept this License. Therefore, by modifying or propagating a 444 | covered work, you indicate your acceptance of this License to do so. 445 | 446 | 10. Automatic Licensing of Downstream Recipients. 447 | 448 | Each time you convey a covered work, the recipient automatically 449 | receives a license from the original licensors, to run, modify and 450 | propagate that work, subject to this License. You are not responsible 451 | for enforcing compliance by third parties with this License. 452 | 453 | An "entity transaction" is a transaction transferring control of an 454 | organization, or substantially all assets of one, or subdividing an 455 | organization, or merging organizations. If propagation of a covered 456 | work results from an entity transaction, each party to that 457 | transaction who receives a copy of the work also receives whatever 458 | licenses to the work the party's predecessor in interest had or could 459 | give under the previous paragraph, plus a right to possession of the 460 | Corresponding Source of the work from the predecessor in interest, if 461 | the predecessor has it or can get it with reasonable efforts. 462 | 463 | You may not impose any further restrictions on the exercise of the 464 | rights granted or affirmed under this License. For example, you may 465 | not impose a license fee, royalty, or other charge for exercise of 466 | rights granted under this License, and you may not initiate litigation 467 | (including a cross-claim or counterclaim in a lawsuit) alleging that 468 | any patent claim is infringed by making, using, selling, offering for 469 | sale, or importing the Program or any portion of it. 470 | 471 | 11. Patents. 472 | 473 | A "contributor" is a copyright holder who authorizes use under this 474 | License of the Program or a work on which the Program is based. The 475 | work thus licensed is called the contributor's "contributor version". 476 | 477 | A contributor's "essential patent claims" are all patent claims 478 | owned or controlled by the contributor, whether already acquired or 479 | hereafter acquired, that would be infringed by some manner, permitted 480 | by this License, of making, using, or selling its contributor version, 481 | but do not include claims that would be infringed only as a 482 | consequence of further modification of the contributor version. For 483 | purposes of this definition, "control" includes the right to grant 484 | patent sublicenses in a manner consistent with the requirements of 485 | this License. 486 | 487 | Each contributor grants you a non-exclusive, worldwide, royalty-free 488 | patent license under the contributor's essential patent claims, to 489 | make, use, sell, offer for sale, import and otherwise run, modify and 490 | propagate the contents of its contributor version. 491 | 492 | In the following three paragraphs, a "patent license" is any express 493 | agreement or commitment, however denominated, not to enforce a patent 494 | (such as an express permission to practice a patent or covenant not to 495 | sue for patent infringement). To "grant" such a patent license to a 496 | party means to make such an agreement or commitment not to enforce a 497 | patent against the party. 498 | 499 | If you convey a covered work, knowingly relying on a patent license, 500 | and the Corresponding Source of the work is not available for anyone 501 | to copy, free of charge and under the terms of this License, through a 502 | publicly available network server or other readily accessible means, 503 | then you must either (1) cause the Corresponding Source to be so 504 | available, or (2) arrange to deprive yourself of the benefit of the 505 | patent license for this particular work, or (3) arrange, in a manner 506 | consistent with the requirements of this License, to extend the patent 507 | license to downstream recipients. "Knowingly relying" means you have 508 | actual knowledge that, but for the patent license, your conveying the 509 | covered work in a country, or your recipient's use of the covered work 510 | in a country, would infringe one or more identifiable patents in that 511 | country that you have reason to believe are valid. 512 | 513 | If, pursuant to or in connection with a single transaction or 514 | arrangement, you convey, or propagate by procuring conveyance of, a 515 | covered work, and grant a patent license to some of the parties 516 | receiving the covered work authorizing them to use, propagate, modify 517 | or convey a specific copy of the covered work, then the patent license 518 | you grant is automatically extended to all recipients of the covered 519 | work and works based on it. 520 | 521 | A patent license is "discriminatory" if it does not include within 522 | the scope of its coverage, prohibits the exercise of, or is 523 | conditioned on the non-exercise of one or more of the rights that are 524 | specifically granted under this License. You may not convey a covered 525 | work if you are a party to an arrangement with a third party that is 526 | in the business of distributing software, under which you make payment 527 | to the third party based on the extent of your activity of conveying 528 | the work, and under which the third party grants, to any of the 529 | parties who would receive the covered work from you, a discriminatory 530 | patent license (a) in connection with copies of the covered work 531 | conveyed by you (or copies made from those copies), or (b) primarily 532 | for and in connection with specific products or compilations that 533 | contain the covered work, unless you entered into that arrangement, 534 | or that patent license was granted, prior to 28 March 2007. 535 | 536 | Nothing in this License shall be construed as excluding or limiting 537 | any implied license or other defenses to infringement that may 538 | otherwise be available to you under applicable patent law. 539 | 540 | 12. No Surrender of Others' Freedom. 541 | 542 | If conditions are imposed on you (whether by court order, agreement or 543 | otherwise) that contradict the conditions of this License, they do not 544 | excuse you from the conditions of this License. If you cannot convey a 545 | covered work so as to satisfy simultaneously your obligations under this 546 | License and any other pertinent obligations, then as a consequence you may 547 | not convey it at all. For example, if you agree to terms that obligate you 548 | to collect a royalty for further conveying from those to whom you convey 549 | the Program, the only way you could satisfy both those terms and this 550 | License would be to refrain entirely from conveying the Program. 551 | 552 | 13. Use with the GNU Affero General Public License. 553 | 554 | Notwithstanding any other provision of this License, you have 555 | permission to link or combine any covered work with a work licensed 556 | under version 3 of the GNU Affero General Public License into a single 557 | combined work, and to convey the resulting work. The terms of this 558 | License will continue to apply to the part which is the covered work, 559 | but the special requirements of the GNU Affero General Public License, 560 | section 13, concerning interaction through a network will apply to the 561 | combination as such. 562 | 563 | 14. Revised Versions of this License. 564 | 565 | The Free Software Foundation may publish revised and/or new versions of 566 | the GNU General Public License from time to time. Such new versions will 567 | be similar in spirit to the present version, but may differ in detail to 568 | address new problems or concerns. 569 | 570 | Each version is given a distinguishing version number. If the 571 | Program specifies that a certain numbered version of the GNU General 572 | Public License "or any later version" applies to it, you have the 573 | option of following the terms and conditions either of that numbered 574 | version or of any later version published by the Free Software 575 | Foundation. If the Program does not specify a version number of the 576 | GNU General Public License, you may choose any version ever published 577 | by the Free Software Foundation. 578 | 579 | If the Program specifies that a proxy can decide which future 580 | versions of the GNU General Public License can be used, that proxy's 581 | public statement of acceptance of a version permanently authorizes you 582 | to choose that version for the Program. 583 | 584 | Later license versions may give you additional or different 585 | permissions. However, no additional obligations are imposed on any 586 | author or copyright holder as a result of your choosing to follow a 587 | later version. 588 | 589 | 15. Disclaimer of Warranty. 590 | 591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY 592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT 593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY 594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, 595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM 597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF 598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 599 | 600 | 16. Limitation of Liability. 601 | 602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY 605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE 606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF 607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD 608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), 609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF 610 | SUCH DAMAGES. 611 | 612 | 17. Interpretation of Sections 15 and 16. 613 | 614 | If the disclaimer of warranty and limitation of liability provided 615 | above cannot be given local legal effect according to their terms, 616 | reviewing courts shall apply local law that most closely approximates 617 | an absolute waiver of all civil liability in connection with the 618 | Program, unless a warranty or assumption of liability accompanies a 619 | copy of the Program in return for a fee. 620 | 621 | END OF TERMS AND CONDITIONS 622 | 623 | How to Apply These Terms to Your New Programs 624 | 625 | If you develop a new program, and you want it to be of the greatest 626 | possible use to the public, the best way to achieve this is to make it 627 | free software which everyone can redistribute and change under these terms. 628 | 629 | To do so, attach the following notices to the program. It is safest 630 | to attach them to the start of each source file to most effectively 631 | state the exclusion of warranty; and each file should have at least 632 | the "copyright" line and a pointer to where the full notice is found. 633 | 634 | 635 | Copyright (C) 636 | 637 | This program is free software: you can redistribute it and/or modify 638 | it under the terms of the GNU General Public License as published by 639 | the Free Software Foundation, either version 3 of the License, or 640 | (at your option) any later version. 641 | 642 | This program is distributed in the hope that it will be useful, 643 | but WITHOUT ANY WARRANTY; without even the implied warranty of 644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 645 | GNU General Public License for more details. 646 | 647 | You should have received a copy of the GNU General Public License 648 | along with this program. If not, see . 649 | 650 | Also add information on how to contact you by electronic and paper mail. 651 | 652 | If the program does terminal interaction, make it output a short 653 | notice like this when it starts in an interactive mode: 654 | 655 | Copyright (C) 656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 657 | This is free software, and you are welcome to redistribute it 658 | under certain conditions; type `show c' for details. 659 | 660 | The hypothetical commands `show w' and `show c' should show the appropriate 661 | parts of the General Public License. Of course, your program's commands 662 | might be different; for a GUI interface, you would use an "about box". 663 | 664 | You should also get your employer (if you work as a programmer) or school, 665 | if any, to sign a "copyright disclaimer" for the program, if necessary. 666 | For more information on this, and how to apply and follow the GNU GPL, see 667 | . 668 | 669 | The GNU General Public License does not permit incorporating your program 670 | into proprietary programs. If your program is a subroutine library, you 671 | may consider it more useful to permit linking proprietary applications with 672 | the library. If this is what you want to do, use the GNU Lesser General 673 | Public License instead of this License. But first, please read 674 | . 675 | --------------------------------------------------------------------------------