You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
its simply doesnt work , i have a fresh arch install , its probably a missing python lib or something like that but cant find the one i need
To Reproduce
./ML4W_Hyprland_Settings-x86_64.AppImage or from waybar Expected behavior
Screenshots
If applicable, add screenshots to help explain your problem.
Distribution (please complete the following information):
Arch Linux
Additional context
here the output :./ML4W_Hyprland_Settings-x86_64.AppImage
:: Using configuration in: /home/val/.config/ml4w-hyprland-settings
:: hyprctl.sh updated in /home/val/.config/ml4w-hyprland-settings
:: Using default settings.json in /tmp/.mount_ML4W_Hpq8GoI/usr/bin
Traceback (most recent call last):
File "/tmp/.mount_ML4W_Hpq8GoI/usr/bin/ml4w-hyprland-settings.py", line 86, in do_activate
self.initUI()
~~~~~~~~~~~^^
File "/tmp/.mount_ML4W_Hpq8GoI/usr/bin/ml4w-hyprland-settings.py", line 134, in initUI
value = self.getKeywordValue(i["keyword"])
File "/tmp/.mount_ML4W_Hpq8GoI/usr/bin/ml4w-hyprland-settings.py", line 363, in getKeywordValue
if int_val == "1":
^^^^^^^
UnboundLocalError: cannot access local variable 'int_val' where it is not associated with a value
^CTraceback (most recent call last):
File "/tmp/.mount_ML4W_Hpq8GoI/usr/bin/ml4w-hyprland-settings.py", line 419, in
app.run(sys.argv)
~~~~~~~^^^^^^^^^^
File "/usr/lib/python3.13/site-packages/gi/overrides/Gio.py", line 40, in run
with register_sigint_fallback(self.quit):
~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^
File "/usr/lib/python3.13/contextlib.py", line 148, in exit
next(self.gen)
~~~~^^^^^^^^^^
File "/usr/lib/python3.13/site-packages/gi/_ossighelper.py", line 239, in register_sigint_fallback
signal.default_int_handler(signal.SIGINT, None)
~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^
KeyboardInterrupt
My ml4w-hyprland-settings/hyprctl.json just have [] in it , and the hyprctl.sh looks like this :
#!/bin/bash
_ _ _
| |__ _ _ _ __ _ __ __| || |
| '_ | | | | '_ | '__/ __| __| |
| | | | || | |) | | | (__| |_| |
|| ||_, | .__/|| ___|_||
|__/||
Execute this file in the hyprland.conf with exec-always
sleep 3
script=$(readlink -f $0)
path=$(dirname $script)
if [ ! -f $path/hyprctl.json ] ;then
echo ":: ERROR: hyprctl.json not found"
exit 1
fi
Describe the bug
its simply doesnt work , i have a fresh arch install , its probably a missing python lib or something like that but cant find the one i need
To Reproduce
./ML4W_Hyprland_Settings-x86_64.AppImage or from waybar
Expected behavior
Screenshots
If applicable, add screenshots to help explain your problem.
Distribution (please complete the following information):
Additional context
here the output :./ML4W_Hyprland_Settings-x86_64.AppImage
:: Using configuration in: /home/val/.config/ml4w-hyprland-settings
:: hyprctl.sh updated in /home/val/.config/ml4w-hyprland-settings
:: Using default settings.json in /tmp/.mount_ML4W_Hpq8GoI/usr/bin
Traceback (most recent call last):
File "/tmp/.mount_ML4W_Hpq8GoI/usr/bin/ml4w-hyprland-settings.py", line 86, in do_activate
self.initUI()
~~~~~~~~~~~^^
File "/tmp/.mount_ML4W_Hpq8GoI/usr/bin/ml4w-hyprland-settings.py", line 134, in initUI
value = self.getKeywordValue(i["keyword"])
File "/tmp/.mount_ML4W_Hpq8GoI/usr/bin/ml4w-hyprland-settings.py", line 363, in getKeywordValue
if int_val == "1":
^^^^^^^
UnboundLocalError: cannot access local variable 'int_val' where it is not associated with a value
^CTraceback (most recent call last):
File "/tmp/.mount_ML4W_Hpq8GoI/usr/bin/ml4w-hyprland-settings.py", line 419, in
app.run(sys.argv)
~~~~~~~^^^^^^^^^^
File "/usr/lib/python3.13/site-packages/gi/overrides/Gio.py", line 40, in run
with register_sigint_fallback(self.quit):
~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^
File "/usr/lib/python3.13/contextlib.py", line 148, in exit
next(self.gen)
~~~~^^^^^^^^^^
File "/usr/lib/python3.13/site-packages/gi/_ossighelper.py", line 239, in register_sigint_fallback
signal.default_int_handler(signal.SIGINT, None)
~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^
KeyboardInterrupt
My ml4w-hyprland-settings/hyprctl.json just have [] in it , and the hyprctl.sh looks like this :
#!/bin/bash
_ _ _
| |__ _ _ _ __ _ __ __| || |
| '_ | | | | '_ | '__/ __| __| |
| | | | || | |) | | | (__| |_| |
|| ||_, | .__/|| ___|_||
|__/||
Execute this file in the hyprland.conf with exec-always
sleep 3
script=$(readlink -f $0)
path=$(dirname $script)
if [ ! -f $path/hyprctl.json ] ;then
echo ":: ERROR: hyprctl.json not found"
exit 1
fi
jq -c '.[]' $path/hyprctl.json | while read i; do
_val() {
echo $1 | jq -r '.value'
}
_key() {
echo $1 | jq -r '.key'
}
key=$(_key $i)
val=$(_val $i)
echo ":: Execute: hyprctl keyword $key $val"
hyprctl keyword $key $val
done
Thanks for the help !
The text was updated successfully, but these errors were encountered: