vitorpy's Dotfiles
at main 7 lines 183 B view raw
1#!/bin/bash 2# Get current and max brightness 3CURRENT=$(brightnessctl get) 4MAX=$(brightnessctl max) 5# Calculate percentage 6BRIGHTNESS=$((CURRENT * 100 / MAX)) 7echo "󰃞 $BRIGHTNESS%"