Skip to content

This polybar script module allows you to adjust the brightness of the screen using the xrandr command and also allows you to activate a blue light filter

Notifications You must be signed in to change notification settings

IamJony/xrandr_brightness

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

xrandr_brightness

This polybar script module allows you to adjust the brightness of the screen using the xrandr command and also allows you to activate a blue light filter

Dependency

  1. xrandr
  2. bc
  3. polybar
  4. nerd font icons

Example

This Polybar script allows you to control both the brightness of the screen and the blue light filter (night mode) with specific actions:

  1. Left Click: Turn on the blue light filter (night mode).
  2. Right-click: Turn off the blue light filter.
  3. Mouse Scroll: Allows you to adjust the brightness of the screen, both up and down.

xrandr_brightness

Module

the script provides the ability to adjust the temperature of the blue light filter within a range of 6500K to 1000K, allowing for further customization and tailoring to each user's individual preferences.

[module/xrandr_brightness]
type = custom/text
content = "%{T6}󰃟 "
interval = 1
scroll-up = ~/.config/polybar/xrandr_brightness.sh --up
scroll-down = ~/.config/polybar/xrandr_brightness.sh --down 
; Temperature 6500k - 1000k
click-left= ~/.config/polybar/night_mode.sh 5000 
click-right= ~/.config/polybar/night_mode.sh --off

About

This polybar script module allows you to adjust the brightness of the screen using the xrandr command and also allows you to activate a blue light filter

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages