:Remvoed waybar; added screenshot utilities; updated todo;
This commit is contained in:
parent
f2222f56d8
commit
c4008e190f
8 changed files with 14 additions and 502 deletions
13
home/wayland/hyprland/scripts.nix
Normal file
13
home/wayland/hyprland/scripts.nix
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
{pkgs, ...}: {
|
||||
statusnotify = pkgs.writeShellScriptBin "statusnotify" ''
|
||||
DATE=$(date +%R)
|
||||
|
||||
upower -e | grep 'BAT' 2>&1 > /dev/null
|
||||
if [ $? -eq 0 ]; then
|
||||
BAT=$(upower -i $(upower -e | grep 'BAT') | sed -n -e 's/.*time [a-z \s]*: *\([0-9.]* \w*\).*/\1/p' -e 's/.*per\w*: *\([0-9]*%\).*/\1/p' | sed 'N;s/\n/ - /')
|
||||
echo "$DATE - $BAT"
|
||||
else
|
||||
echo $DATE
|
||||
fi
|
||||
'';
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue