Skip to content

Commit

Permalink
Import using lnxlink package
Browse files Browse the repository at this point in the history
  • Loading branch information
bkbilly committed May 28, 2024
1 parent c3519ad commit 1598a6f
Show file tree
Hide file tree
Showing 38 changed files with 41 additions and 41 deletions.
8 changes: 4 additions & 4 deletions lnxlink/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@
import yaml
import distro
import paho.mqtt.client as mqtt
from . import modules
from . import config_setup
from .system_monitor import MonitorSuspend, GracefulKiller
from .modules.scripts.helpers import syscommand
from lnxlink import modules
from lnxlink import config_setup
from lnxlink.system_monitor import MonitorSuspend, GracefulKiller
from lnxlink.modules.scripts.helpers import syscommand


# Get the current version of the app
Expand Down
2 changes: 1 addition & 1 deletion lnxlink/config_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from pathlib import Path

import yaml
from .consts import SERVICEHEADLESS, SERVICEUSER, CONFIGTEMP
from lnxlink.consts import SERVICEHEADLESS, SERVICEUSER, CONFIGTEMP

logger = logging.getLogger("lnxlink")

Expand Down
2 changes: 1 addition & 1 deletion lnxlink/modules/active_window.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""Gets the active window"""
from .scripts.helpers import import_install_package
from lnxlink.modules.scripts.helpers import import_install_package


class Addon:
Expand Down
2 changes: 1 addition & 1 deletion lnxlink/modules/audio_select.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""Information and control of pulseaudio devices"""
import logging
from .scripts.helpers import import_install_package
from lnxlink.modules.scripts.helpers import import_install_package

logger = logging.getLogger("lnxlink")

Expand Down
2 changes: 1 addition & 1 deletion lnxlink/modules/bash.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""Run a terminal command"""
from .scripts.helpers import syscommand
from lnxlink.modules.scripts.helpers import syscommand


class Addon:
Expand Down
2 changes: 1 addition & 1 deletion lnxlink/modules/battery.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""Gets the battery information of connected devices"""
from shutil import which
import jc
from .scripts.helpers import syscommand
from lnxlink.modules.scripts.helpers import syscommand


class Addon:
Expand Down
2 changes: 1 addition & 1 deletion lnxlink/modules/boot_select.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import os
import re
from shutil import which
from .scripts.helpers import syscommand
from lnxlink.modules.scripts.helpers import syscommand


class Addon:
Expand Down
2 changes: 1 addition & 1 deletion lnxlink/modules/brightness.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import re
import logging
from shutil import which
from .scripts.helpers import syscommand
from lnxlink.modules.scripts.helpers import syscommand

logger = logging.getLogger("lnxlink")

Expand Down
2 changes: 1 addition & 1 deletion lnxlink/modules/camera_used.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""Checks if the webcam is used"""
from .scripts.helpers import syscommand
from lnxlink.modules.scripts.helpers import syscommand


class Addon:
Expand Down
2 changes: 1 addition & 1 deletion lnxlink/modules/display_env.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""Gets Display Environment"""
from .scripts.helpers import syscommand
from lnxlink.modules.scripts.helpers import syscommand


class Addon:
Expand Down
2 changes: 1 addition & 1 deletion lnxlink/modules/fullscreen.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""Checks if a window is in fullscreen"""
from .scripts.helpers import import_install_package
from lnxlink.modules.scripts.helpers import import_install_package


class Addon:
Expand Down
2 changes: 1 addition & 1 deletion lnxlink/modules/gamepad.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import struct
import logging
from threading import Thread
from .scripts.helpers import syscommand
from lnxlink.modules.scripts.helpers import syscommand

logger = logging.getLogger("lnxlink")

Expand Down
2 changes: 1 addition & 1 deletion lnxlink/modules/gpio.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import time
from collections import deque
from threading import Thread
from .scripts.helpers import import_install_package
from lnxlink.modules.scripts.helpers import import_install_package


class GpioHandle:
Expand Down
2 changes: 1 addition & 1 deletion lnxlink/modules/gpu.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import math
import logging
from shutil import which
from .scripts.helpers import import_install_package, syscommand
from lnxlink.modules.scripts.helpers import import_install_package, syscommand

logger = logging.getLogger("lnxlink")

Expand Down
2 changes: 1 addition & 1 deletion lnxlink/modules/idle.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""Gets the idle time of the system"""
import logging
from .scripts.helpers import import_install_package
from lnxlink.modules.scripts.helpers import import_install_package

logger = logging.getLogger("lnxlink")

Expand Down
2 changes: 1 addition & 1 deletion lnxlink/modules/keep_alive.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""Keeps display on"""
import re
from shutil import which
from .scripts.helpers import syscommand
from lnxlink.modules.scripts.helpers import syscommand


class Addon:
Expand Down
2 changes: 1 addition & 1 deletion lnxlink/modules/keyboard_hotkeys.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import json
import logging
from requests import post, get
from .scripts.helpers import import_install_package, syscommand
from lnxlink.modules.scripts.helpers import import_install_package, syscommand


logger = logging.getLogger("lnxlink")
Expand Down
2 changes: 1 addition & 1 deletion lnxlink/modules/media.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import traceback
import logging
import base64
from .scripts.helpers import import_install_package, syscommand
from lnxlink.modules.scripts.helpers import import_install_package, syscommand

logger = logging.getLogger("lnxlink")

Expand Down
2 changes: 1 addition & 1 deletion lnxlink/modules/microphone_used.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import glob
import json
import re
from .scripts.helpers import syscommand
from lnxlink.modules.scripts.helpers import syscommand


class Addon:
Expand Down
2 changes: 1 addition & 1 deletion lnxlink/modules/mounts.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""Gets mount usage from all mounted directories"""
import logging
from .scripts.helpers import syscommand, import_install_package
from lnxlink.modules.scripts.helpers import syscommand, import_install_package

logger = logging.getLogger("lnxlink")

Expand Down
2 changes: 1 addition & 1 deletion lnxlink/modules/mouse.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import logging
import threading
from shutil import which
from .scripts.helpers import syscommand
from lnxlink.modules.scripts.helpers import syscommand

logger = logging.getLogger("lnxlink")

Expand Down
2 changes: 1 addition & 1 deletion lnxlink/modules/notify.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import time
import logging
import requests
from .scripts.helpers import import_install_package
from lnxlink.modules.scripts.helpers import import_install_package

logger = logging.getLogger("lnxlink")

Expand Down
2 changes: 1 addition & 1 deletion lnxlink/modules/power_profile.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""Selects the Power Profile"""
import re
from shutil import which
from .scripts.helpers import syscommand
from lnxlink.modules.scripts.helpers import syscommand


class Addon:
Expand Down
2 changes: 1 addition & 1 deletion lnxlink/modules/restart.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""Restarts the system"""
import logging
from .scripts.helpers import syscommand
from lnxlink.modules.scripts.helpers import syscommand

logger = logging.getLogger("lnxlink")

Expand Down
2 changes: 1 addition & 1 deletion lnxlink/modules/screen_onoff.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import re
import logging
from shutil import which
from .scripts.helpers import syscommand
from lnxlink.modules.scripts.helpers import syscommand

logger = logging.getLogger("lnxlink")

Expand Down
2 changes: 1 addition & 1 deletion lnxlink/modules/screenshot.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""Shows an image of the desktop as a camera entity"""
import base64
from threading import Thread
from .scripts.helpers import import_install_package
from lnxlink.modules.scripts.helpers import import_install_package


class Addon:
Expand Down
2 changes: 1 addition & 1 deletion lnxlink/modules/send_keys.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import os
import logging
from shutil import which
from .scripts.helpers import syscommand
from lnxlink.modules.scripts.helpers import syscommand

logger = logging.getLogger("lnxlink")

Expand Down
2 changes: 1 addition & 1 deletion lnxlink/modules/shutdown.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""Shutdown the system"""
import logging
from .scripts.helpers import syscommand
from lnxlink.modules.scripts.helpers import syscommand

logger = logging.getLogger("lnxlink")

Expand Down
2 changes: 1 addition & 1 deletion lnxlink/modules/speaker_used.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import glob
import json
import re
from .scripts.helpers import syscommand
from lnxlink.modules.scripts.helpers import syscommand


class Addon:
Expand Down
2 changes: 1 addition & 1 deletion lnxlink/modules/speech_recognition.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from importlib import import_module
from threading import Thread
import logging
from .scripts.helpers import import_install_package
from lnxlink.modules.scripts.helpers import import_install_package

logger = logging.getLogger("lnxlink")

Expand Down
2 changes: 1 addition & 1 deletion lnxlink/modules/suspend.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""Suspend/sleep the system"""
from .scripts.helpers import syscommand
from lnxlink.modules.scripts.helpers import syscommand


class Addon:
Expand Down
2 changes: 1 addition & 1 deletion lnxlink/modules/sys_updates.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""Checks for system updates"""
import time
from shutil import which
from .scripts.helpers import syscommand
from lnxlink.modules.scripts.helpers import syscommand


class Addon:
Expand Down
2 changes: 1 addition & 1 deletion lnxlink/modules/systemd.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""Controls systemd services"""
import logging
from shutil import which
from .scripts.helpers import syscommand
from lnxlink.modules.scripts.helpers import syscommand

logger = logging.getLogger("lnxlink")

Expand Down
2 changes: 1 addition & 1 deletion lnxlink/modules/update.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import logging
import time
import requests
from .scripts.helpers import syscommand
from lnxlink.modules.scripts.helpers import syscommand

logger = logging.getLogger("lnxlink")

Expand Down
2 changes: 1 addition & 1 deletion lnxlink/modules/webcam.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""Shows an image from the webcamera"""
import base64
from threading import Thread
from .scripts.helpers import import_install_package
from lnxlink.modules.scripts.helpers import import_install_package


class Addon:
Expand Down
2 changes: 1 addition & 1 deletion lnxlink/modules/wifi.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import os
import re
from shutil import which
from .scripts.helpers import syscommand
from lnxlink.modules.scripts.helpers import syscommand


class Addon:
Expand Down
2 changes: 1 addition & 1 deletion lnxlink/modules/xdg_open.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""Open URLs or files"""
import logging
from shutil import which
from .scripts.helpers import syscommand
from lnxlink.modules.scripts.helpers import syscommand

logger = logging.getLogger("lnxlink")

Expand Down
2 changes: 1 addition & 1 deletion lnxlink/system_monitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import logging
import traceback

from .modules.scripts.helpers import import_install_package
from lnxlink.modules.scripts.helpers import import_install_package

logger = logging.getLogger("lnxlink")

Expand Down

0 comments on commit 1598a6f

Please sign in to comment.