From 06661ff2dd32bd03721c0937758b8b0d5db6ab20 Mon Sep 17 00:00:00 2001 From: Quentin Duchemin Date: Tue, 19 Nov 2019 17:30:09 +0100 Subject: [PATCH] Remove bullshit luminosity script, use polybar module --- .config/polybar/config.d/laptop | 11 ++++++++++- .config/polybar/scripts/luminosity.sh.laptop | 4 ---- 2 files changed, 10 insertions(+), 5 deletions(-) delete mode 100755 .config/polybar/scripts/luminosity.sh.laptop diff --git a/.config/polybar/config.d/laptop b/.config/polybar/config.d/laptop index a08dc51..e681bf7 100644 --- a/.config/polybar/config.d/laptop +++ b/.config/polybar/config.d/laptop @@ -4,7 +4,16 @@ height = 54 wireless_interface = wlp2s0 top_left = powermenu system-uptime-pretty battery top_center = xwindow -top_right = system-usb-udev luminosity pulseaudio date +top_right = system-usb-udev backlight pulseaudio date + +[module/backlight] +type = internal/backlight +card = intel_backlight +label = %{F#77dd77}☀️%{F#ddd} %percentage%% +bar-width = 10 +bar-indicator = | +bar-fill = ─ +bar-empty = ─ [module/luminosity] type = custom/script diff --git a/.config/polybar/scripts/luminosity.sh.laptop b/.config/polybar/scripts/luminosity.sh.laptop deleted file mode 100755 index 9368159..0000000 --- a/.config/polybar/scripts/luminosity.sh.laptop +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/bash - -lum=$(xbacklight -get) -echo "%{F#77dd77}☀️%{F#ddd} ${lum}%"