From 67792863829f331e016b630507c13a3e4b0677eb Mon Sep 17 00:00:00 2001 From: neodarz Date: Wed, 4 Sep 2019 20:59:29 +0200 Subject: Add fenec profile --- config.yaml | 3 +++ dotfiles/config/i3pystatus/conf.py | 36 +++++++++++++++--------------------- 2 files changed, 18 insertions(+), 21 deletions(-) diff --git a/config.yaml b/config.yaml index 7c238de..8f9ae4c 100644 --- a/config.yaml +++ b/config.yaml @@ -10,3 +10,6 @@ profiles: unicorn: dotfiles: - d_i3pystatus + fenec: + dotfiles: + - d_i3pystatus diff --git a/dotfiles/config/i3pystatus/conf.py b/dotfiles/config/i3pystatus/conf.py index 1a09983..9a484b4 100644 --- a/dotfiles/config/i3pystatus/conf.py +++ b/dotfiles/config/i3pystatus/conf.py @@ -94,17 +94,22 @@ status.register("text", # goes below 5 percent while discharging. The block will also color RED. # If you don't have a desktop notification demon yet, take a look at dunst: # http://www.knopwob.org/dunst/ -#status.register("battery", -# format="{status} {percentage:.2f}% [{percentage_design:.2f}%] {remaining:%E%hh:%Mm}", -# alert=True, -# alert_percentage=5, -# status={ -# "DIS": "↓", -# "CHR": "↑", -# "FULL": "=", -# },) - +{%@@ if profile == "fenec" @@%} +status.register("battery", + format="{status} {percentage:.2f}% [{percentage_design:.2f}%] {remaining:%E%hh:%Mm}", + alert=True, + alert_percentage=5, + status={ + "DIS": "↓", + "CHR": "↑", + "FULL": "=", + }, + hints = {"markup": "pango", "separator": False, "separator_block_width": 0},) +status.register("text", + text="|", + hints = {"separator": False, "separator_block_width": 0},) +{%@@ endif @@%} # Displays whether a DHCP client is running #status.register("runwatch", # name="DHCP", @@ -226,17 +231,6 @@ status.register("text", # text="|", # hints = {"separator": False, "separator_block_width": 0},) -status.register("shell", - command="python ~/.config/i3pystatus/headset.py", - interval=1, - hints = {"separator": False, "separator_block_width": 0},) - -status.register("text", - text="|", - hints = {"separator": False, "separator_block_width": 0},) - - - status.register("redshift", hints = {"separator": False, "separator_block_width": 0},) -- cgit v1.2.1