Skip to content

ahghanbari/External_monitor_brightness

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Welcome 😎

External monitor brightness Manager

If you added an External monitor to your laptop and the shortcut key for changing brightness on your laptop didn't work, then this script will be helpful for you (of course you need to have a GNU/LINUX distribution)

Requirements

Notify-send and xrandr and python3 for python_version, if u use pure bash version, u don't need python3.
You most likely have notify-send(99%), but if you don't (which you have 😐) then install that.

which notify-send

If printed anything, you have that, Ex. /usr/bin/notify-send
Also you have xrandr probably but if you don't:

Debian base:

sudo apt install xrandr

RHEL base:

sudo dnf install xrandr

Arch base:

sudo pacman install xrandr

After that you can use:

./screen up
or
./screen down

If you see this:

bash: permission denied

Run:

sudo chmod +x screen

In the end put 'screen' in /usr/bin or /bin or any dir in your PATH.

sudo cp screen /usr/bin

Of course this is not useful enough, We want to add shortcut for that.

KDE Plasma Desktop

  1. Lunch setting
  2. Shortcuts tab
  3. Custom Shortcuts
  4. Edit, New, Global Shortcut, Command/URL
  5. add action (once 'screen up' and once again 'screen down')
  6. add your favrite shortcut (in Trigger tab)
  7. add comment 😐

GNOME Desktop

  1. Lunch setting
  2. Shortcut keyboard tab
  3. '+' key in the bottom of shortcut list
  4. Command -> 'screen up' or 'screen down'
  5. add your favrite shortcut

Note

I wrote this code by python, for the first time (screen_py_version), but now, u can use pure bash version (screen) which means u don't need to have python3
Good bye friend