mirror of
https://github.com/davegallant/nix-config
synced 2025-08-06 07:13:40 +00:00
Remove backlight from polybar
This commit is contained in:
@@ -34,8 +34,8 @@
|
|||||||
libreoffice
|
libreoffice
|
||||||
maven
|
maven
|
||||||
nixpkgs-fmt
|
nixpkgs-fmt
|
||||||
nodejs
|
|
||||||
nmap
|
nmap
|
||||||
|
nodejs
|
||||||
openvpn
|
openvpn
|
||||||
pinentry-curses
|
pinentry-curses
|
||||||
postman
|
postman
|
||||||
@@ -130,7 +130,7 @@
|
|||||||
shellAliases = {
|
shellAliases = {
|
||||||
ls = "exa -la --git";
|
ls = "exa -la --git";
|
||||||
".." = "cd ..";
|
".." = "cd ..";
|
||||||
config = "/usr/bin/git --git-dir=~/.dotfiles/ --work-tree=~";
|
config = "/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME";
|
||||||
grep = "grep --color=auto --line-buffered";
|
grep = "grep --color=auto --line-buffered";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@@ -35,7 +35,7 @@ font-0 = Fira Code:size=11;0
|
|||||||
|
|
||||||
modules-left = bspwm powermenu
|
modules-left = bspwm powermenu
|
||||||
modules-center = xwindow
|
modules-center = xwindow
|
||||||
modules-right = filesystem xbacklight pulseaudio memory cpu wlan battery temperature date
|
modules-right = filesystem pulseaudio memory cpu wlan battery temperature date
|
||||||
|
|
||||||
tray-position = right
|
tray-position = right
|
||||||
tray-padding = 2
|
tray-padding = 2
|
||||||
@@ -87,28 +87,6 @@ label-empty-padding = 2
|
|||||||
; Separator in between workspaces
|
; Separator in between workspaces
|
||||||
; label-separator = |
|
; label-separator = |
|
||||||
|
|
||||||
[module/xbacklight]
|
|
||||||
type = internal/xbacklight
|
|
||||||
|
|
||||||
format = <label> <bar>
|
|
||||||
label = BL
|
|
||||||
|
|
||||||
bar-width = 10
|
|
||||||
bar-indicator = |
|
|
||||||
bar-indicator-foreground = #fff
|
|
||||||
bar-indicator-font = 2
|
|
||||||
bar-fill = ─
|
|
||||||
bar-fill-font = 2
|
|
||||||
bar-fill-foreground = #9f78e1
|
|
||||||
bar-empty = ─
|
|
||||||
bar-empty-font = 2
|
|
||||||
bar-empty-foreground = ${colors.foreground-alt}
|
|
||||||
|
|
||||||
[module/backlight-acpi]
|
|
||||||
inherit = module/xbacklight
|
|
||||||
type = internal/backlight
|
|
||||||
card = intel_backlight
|
|
||||||
|
|
||||||
[module/cpu]
|
[module/cpu]
|
||||||
type = internal/cpu
|
type = internal/cpu
|
||||||
interval = 2
|
interval = 2
|
||||||
@@ -214,11 +192,13 @@ full-at = 98
|
|||||||
|
|
||||||
format-charging = <animation-charging> <label-charging>
|
format-charging = <animation-charging> <label-charging>
|
||||||
format-charging-underline = #ffb52a
|
format-charging-underline = #ffb52a
|
||||||
|
format-charging-prefix = "++"
|
||||||
|
|
||||||
|
format-discharging-prefix = "--"
|
||||||
format-discharging = <animation-discharging> <label-discharging>
|
format-discharging = <animation-discharging> <label-discharging>
|
||||||
format-discharging-underline = ${self.format-charging-underline}
|
format-discharging-underline = ${self.format-charging-underline}
|
||||||
|
|
||||||
format-full-prefix = " "
|
format-full-prefix = "=="
|
||||||
format-full-prefix-foreground = ${colors.foreground-alt}
|
format-full-prefix-foreground = ${colors.foreground-alt}
|
||||||
format-full-underline = ${self.format-charging-underline}
|
format-full-underline = ${self.format-charging-underline}
|
||||||
|
|
||||||
|
@@ -10,5 +10,3 @@ while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done
|
|||||||
for m in $(xrandr --query | grep " connected" | cut -d" " -f1); do
|
for m in $(xrandr --query | grep " connected" | cut -d" " -f1); do
|
||||||
MONITOR=$m polybar --reload poly &
|
MONITOR=$m polybar --reload poly &
|
||||||
done
|
done
|
||||||
|
|
||||||
echo "Polybar launched..."
|
|
||||||
|
Reference in New Issue
Block a user