From c3e07b4613e03e26a2e3abb6c1e3f577856d7266 Mon Sep 17 00:00:00 2001 From: Daniel <89086143+BardofSprites@users.noreply.github.com> Date: Mon, 8 Jul 2024 14:06:06 -0400 Subject: battery script, change keybinds --- fvwm/.fvwm/fvwmscript/FvwmScript-ACPIStatus | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'fvwm/.fvwm/fvwmscript/FvwmScript-ACPIStatus') diff --git a/fvwm/.fvwm/fvwmscript/FvwmScript-ACPIStatus b/fvwm/.fvwm/fvwmscript/FvwmScript-ACPIStatus index b6c6d75..a9daa8b 100644 --- a/fvwm/.fvwm/fvwmscript/FvwmScript-ACPIStatus +++ b/fvwm/.fvwm/fvwmscript/FvwmScript-ACPIStatus @@ -1,21 +1,21 @@ -WindowTitle {} +WindowTitle {ACPIStatus} WindowSize 120 35 -Font "xft:Iosevka Comfy:size=12" +Font "xft:Iosevka Comfy:size=14" Init Begin - Set $Date = (GetOutput {exec date "+%Y-%m-%d"} 1 -1) + Set $Battery = (GetOutput {exec acpi | sed -e 's/^.*, \([0-9]*\)%.*$/\1%/g'} 1 -1) - ChangeTitle 1 $Date + ChangeTitle 1 $Battery End PeriodicTasks Begin - If (RemainderOfDiv (GetTime) 15)==0 Then + If (RemainderOfDiv (GetTime) 60)==0 Then Begin - Set $Date = (GetOutput {exec date "+%Y-%m-%d"} 1 -1) + Set $Battery = (GetOutput {exec acpi | sed -e 's/^.*, \([0-9]*\)%.*$/\1%/g'} 1 -1) - ChangeTitle 1 $Date + ChangeTitle 1 $Battery End End @@ -23,7 +23,7 @@ Widget 1 Property Position 0 0 Size 120 20 - Font "xft:Iosevka Comfy:size=12" + Font "xft:Iosevka Comfy:size=14" Type ItemDraw Flags NoReliefString Title {} -- cgit v1.2.3