четверг, 16 мая 2024 г.

Как в KDE отключить запуск меню по кнопке WIN (Meta)

In KDE Plasma 5.8, the super/win key is also used to trigger the launcher, when pressed and released without combining it with another key. To disable the feature,

  1. put this into ~/.config/kwinrc:

    [ModifierOnlyShortcuts]
    Meta=
    
  2. then reload the window manager (kwin), either by logging out and logging back in, or with with this command:

    qdbus org.kde.KWin /KWin reconfigure
    

Equivalently run this

kwriteconfig5 --file kwinrc --group ModifierOnlyShortcuts --key Meta ""

вторник, 14 мая 2024 г.

Как устанавливать пакет python внутри conda env

При создании нового окружения установка пакета с помощью pip install выдает ошибку:

~/Projects/Youtube/spider> pip3 install openwakeword


error: externally-managed-environment

× This environment is externally managed
╰─> To install Python packages system-wide, try
   zypper install python311-xyz, where xyz is the package
   you are trying to install.
    
   If you wish to install a non-rpm packaged Python package,
   create a virtual environment using python3.11 -m venv path/to/venv.
   Then use path/to/venv/bin/python and path/to/venv/bin/pip.
    
   If you wish to install a non-rpm packaged Python application,
   it may be easiest to use `pipx install xyz`, which will manage a
   virtual environment for you. Install pipx via `zypper install python311-pipx` .

note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
hint: See PEP 668 for the detailed specification.

Чтобы решить проблему нужно установить pip внутри окружения:

conda install pip

После этого pip будет работать.

пятница, 10 мая 2024 г.

Как посмотреть загрузку NPU в Orange PI 5 plus

cat /sys/kernel/debug/rknpu/load
NPU load:  Core0:  0%, Core1:  0%, Core2:  0%,

 

Как отключить виджет проверки обновлений в KDE Plasma6


sudo zypper remove discover6-notifier

sudo zypper addlock discover6-notifier