From 307b2e33abe6f01b90d06e39f87f9718ea5f1069 Mon Sep 17 00:00:00 2001 From: Zeyad Moustafa Kamal Date: Mon, 3 Feb 2025 19:20:12 +0200 Subject: [PATCH] update scripts to use the new python interpreter --- .../ags/scripts/color_generation/generate_colors_material.py | 3 ++- .config/ags/scripts/hyprland/get_keybinds.py | 3 ++- .config/ags/scripts/wayland-idle-inhibitor.py | 3 +-- .config/hypr/hyprland/env.conf | 3 +++ 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.config/ags/scripts/color_generation/generate_colors_material.py b/.config/ags/scripts/color_generation/generate_colors_material.py index 714e95970..b7e634eb6 100755 --- a/.config/ags/scripts/color_generation/generate_colors_material.py +++ b/.config/ags/scripts/color_generation/generate_colors_material.py @@ -1,4 +1,5 @@ -#!/usr/bin/env python3 +#!/usr/bin/env -S\_/bin/sh\_-xc\_"exec\_\$ILLOGICAL_IMPULSE_VIRTUAL_ENV/bin/python\_-E\_"\$0"\_"\$@""$ ./generate_colors_material.py + import argparse import math import json diff --git a/.config/ags/scripts/hyprland/get_keybinds.py b/.config/ags/scripts/hyprland/get_keybinds.py index 9b784df0d..5a2c5469f 100755 --- a/.config/ags/scripts/hyprland/get_keybinds.py +++ b/.config/ags/scripts/hyprland/get_keybinds.py @@ -1,4 +1,5 @@ -#!/usr/bin/env python3 +#!/usr/bin/env -S\_/bin/sh\_-xc\_"exec\_\$ILLOGICAL_IMPULSE_VIRTUAL_ENV/bin/python\_-E\_"\$0"\_"\$@""$ ./get_keybinds.py + import argparse import re import os diff --git a/.config/ags/scripts/wayland-idle-inhibitor.py b/.config/ags/scripts/wayland-idle-inhibitor.py index 4a4f8f8ce..a8c7e51e6 100755 --- a/.config/ags/scripts/wayland-idle-inhibitor.py +++ b/.config/ags/scripts/wayland-idle-inhibitor.py @@ -1,5 +1,4 @@ -#!/usr/bin/env python - +#!/usr/bin/env -S\_/bin/sh\_-xc\_"exec\_\$ILLOGICAL_IMPULSE_VIRTUAL_ENV/bin/python\_-E\_"\$0"\_"\$@""$ ./wayland-idle-inhibitor.py import sys from dataclasses import dataclass from signal import SIGINT, SIGTERM, signal diff --git a/.config/hypr/hyprland/env.conf b/.config/hypr/hyprland/env.conf index ec654432e..40c5d0337 100644 --- a/.config/hypr/hyprland/env.conf +++ b/.config/hypr/hyprland/env.conf @@ -17,5 +17,8 @@ env = QT_QPA_PLATFORMTHEME, qt5ct # ######## Screen tearing ######### # env = WLR_DRM_NO_ATOMIC, 1 +# ######## Virtual envrionment ######### +env = ILLOGICAL_IMPULSE_VIRTUAL_ENV, ~/.local/state/ags/.venv + # ############ Others #############