How do i fix the Brightness on an amd laptop

correct its working, im assuming i got updated to 2.1.1-1 by pacman.

do you know an alternative to pip install . ?

apparently i need notify-send.py instead of Libnotify and heres how im suppose to install it

Installation (Requires python 3.)

From repo:

git clone https://github.com/phuhl/notify-send.py
cd notify-send.py
pip install .

already cloned, but 1) i doubt i have python-pip installed 2) i’ve heard not to run pip anyways.

No. It will only get updated when you run yay, since both packages are in the AUR, not the official arch repositories.

I looked through the project directory, and it appears that notify-send.py is a simple python script. You don’t have to run pip at all. Once you have cloned the repo, just add a symlink to that python script into /usr/local/bin (assuming that /usr/local/bin is listed in your PATH - it usually is). After you do that, you can run notify-send.py from the command line or from inside your scripts.

For example, let’s say you cloned the notify-send repo into your home directory (there will be a directory called ~/notify-send.py). To create the symlink, simply run:

sudo ln -s ~/notify-send.py/notify_send_py/notify_send_py.py /usr/local/bin/notify-send.py

[This developer seriously needs to use a better naming convention]

You can put the notify-send.py package directory anywhere you like. If you wish to update the notify-send.py package, just cd into the package directory and run git pull. Nothing else has to change. Unless the developer somehow decides to change the structure of the package directory, the symlink created will remain valid.

Also, this thread has gone far off the topic. I believe the initial question has already been solved (the brightness issue). So @Btfz if you could please mark a solution?

Then maybe a moderator @dalto can help move the rest of the discussion to a new thread.

anthony93
sudo ln -s ~/notify-send.py/notify_send_py/notify_send_py.py /usr/local/bin/notify-send.py

i did that but when i run notify-send.py "test" or anything else i get zsh: command not found: notify-send.py

anthony93
Also, this thread has gone far off the topic. I believe the initial question has already been solved (the brightness issue). So @Btfz if you could please mark a solution?

yes i marked it and sorry/thanks. i’d be happy to move to another place if theres a forum for not so savy users/new users

/usr/local/bin is in your PATH, right?

echo $PATH

List out the contents of /usr/local/bin

ll -l /usr/local/bin

/usr/local/bin is in your PATH, right?

/home/btfz/.local/bin:/home/btfz/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl

yes :/usr/local/bin appears in path

ll -l /usr/local/bin

lrwxrwxrwx 1 root root 58 Aug 12 01:07 notify-send.py -> /home/btfz/notify-send.py/notify-send_py/notify-send_py.py

looks like i typo’d it during the symlink. how do i fix it?

Delete the broken symlink and create it again.

sorry i meant i dont know how to remove it. supposedly “rm name_or_path_of_link” ?

if i go to /usr/local/bin i see the symlink. do i from there run rm notify-send.py ?

Yup.

well it attempts to run now, but gives me

Traceback (most recent call last):
File "/usr/local/bin/notify-send.py", line 8 in <module>
from .notify3 import notify3
ImportError: attempted relative import with no known parent package

at this point, is dunst easier to use? maybe i can use that instead

Ah, I see. So the script uses relative imports, so you can’t execute the script directly (this is a quirk of python’s). My bad.

Dunst is definitely easier to use.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.