From fee0d1903654f00404301adedbd4ce522a0276ab Mon Sep 17 00:00:00 2001 From: natemaia Date: Tue, 14 Aug 2018 22:40:55 -0700 Subject: [PATCH] Add xfce4-power-manager-settings as an action for polybar's battery module --- home/.config/i3/config | 2 ++ home/.config/polybar/modules.conf | 10 +++++++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/home/.config/i3/config b/home/.config/i3/config index 2a59b2f5..9e9002d8 100644 --- a/home/.config/i3/config +++ b/home/.config/i3/config @@ -267,3 +267,5 @@ assign [class="(?i)(?:thunar)"] → $WS3 # focus, floating, & sticky for_window [title="(?i)(?:copying|deleting|moving)"] floating enable for_window [window_role="(?i)(?:pop-up|setup)"] floating enable + +exec i3-msg workspace $WS1 diff --git a/home/.config/polybar/modules.conf b/home/.config/polybar/modules.conf index 81469adc..f8f2531f 100644 --- a/home/.config/polybar/modules.conf +++ b/home/.config/polybar/modules.conf @@ -280,9 +280,13 @@ full-at = 99 poll-interval = 5 time-format = %H:%M -format-charging = " " -format-discharging = " " -format-full = " " +format-charging = +format-discharging = +format-full = + +label-charging = %{A1:xfce4-power-manager-settings & disown:}%percentage%% %{A} +label-discharging = %{A1:xfce4-power-manager-settings & disown:}%percentage%% %{A} +label-full = %{A1:xfce4-power-manager-settings & disown:}%percentage%% %{A} ramp-capacity-0 =  ramp-capacity-1 = 