aboutsummaryrefslogtreecommitdiff
path: root/i3pystatus
diff options
context:
space:
mode:
Diffstat (limited to 'i3pystatus')
-rw-r--r--i3pystatus/.config/i3pystatus/conf.py189
1 files changed, 142 insertions, 47 deletions
diff --git a/i3pystatus/.config/i3pystatus/conf.py b/i3pystatus/.config/i3pystatus/conf.py
index d6f9c08..adcb5ea 100644
--- a/i3pystatus/.config/i3pystatus/conf.py
+++ b/i3pystatus/.config/i3pystatus/conf.py
@@ -1,37 +1,83 @@
import logging
from i3pystatus import Status
+from i3pystatus.updates import pacman, yaourt
status = Status(logfile='/home/neodarz/i3pystatus.log')
status.register("text",
- text=" :: ",)
+ text="|",)
+
+status.register("updates",
+ format = "{count}",
+ format_no_updates = "",
+ backends = [pacman.Pacman(), yaourt.Yaourt()],
+ hints = {"markup": "pango", "separator": False, "separator_block_width": 0},)
+
+status.register("text",
+ text="|",
+ hints = {"separator": False, "separator_block_width": 0},)
status.register("keyboard_locks",
- format="{caps} {num}",
- hints = {"separator": False, "separator_block_width": 0},
- caps_off="",
- num_off="",)
+ format="{caps}|{num}",
+ hints = {"separator": False, "separator_block_width": 0},
+ caps_off="",
+ num_off="",)
status.register("text",
- text=" :: ",
- hints = {"separator": False, "separator_block_width": 0},)
+ text="|",
+ hints = {"separator": False, "separator_block_width": 0},)
# Displays clock like this:
# Tue 30 Jul 11:59:46 PM KW31
# ^-- calendar week
status.register("clock",
- format="%a %-d %b :: %X",
+ format= ["%a %-d %b|%T", "Europe/Paris"],
+ hints = {"separator": False, "separator_block_width": 0},)
+
+status.register("text",
+ text="|",
+ hints = {"separator": False, "separator_block_width": 0},)
+
+status.register("cpu_usage",
hints = {"separator": False, "separator_block_width": 0},)
status.register("text",
- text=" :: ",
- hints = {"separator": False, "separator_block_width": 0},)
+ text="|",
+ hints = {"separator": False, "separator_block_width": 0},)
+status.register("cpu_freq",
+ format = "{avgg}",
+ hints = {"separator": False, "separator_block_width": 0},)
+status.register("text",
+ text="|",
+ hints = {"separator": False, "separator_block_width": 0},)
# Shows the average load of the last minute and the last 5 minutes
# (the default value for format is used)
-#status.register("load")
+status.register("load",
+ hints = {"markup": "pango", "separator": False, "separator_block_width": 0},)
+
+status.register("text",
+ text="|",
+ hints = {"separator": False, "separator_block_width": 0},)
+
+status.register("mem",
+ format = "{used_mem}({percent_used_mem}%) [{avail_mem}]",
+ hints = {"markup": "pango", "separator": False, "separator_block_width": 0},)
+
+status.register("text",
+ text="|",
+ hints = {"separator": False, "separator_block_width": 0},)
+
+status.register("swap",
+ format = "S:{used}/{total}({percent_used}%)",
+ hide_if_empty = True,
+ hints = {"markup": "pango", "separator": False, "separator_block_width": 0},)
+
+status.register("text",
+ text="|",
+ hints = {"separator": False, "separator_block_width": 0},)
# Shows your CPU temperature, if you have a Intel CPU
#status.register("temp",
@@ -73,73 +119,122 @@ status.register("text",
#
# Note: the network module requires PyPI package netifaces
status.register("network",
- dynamic_color=True,
- start_color="#fff",
- color_down="#fff",
- end_color="#fff",
+ dynamic_color=True,
+ start_color="#fff",
+ color_down="#fff",
+ end_color="#fff",
interface="enp3s0",
- format_up="<span color=\"#fff\"> {v4cidr}</span>",
- format_down="<span color=\"#fff\"></span>",
- hints = {"markup": "pango", "separator": False, "separator_block_width": 0},)
+ format_up="<span color=\"#fff\">I:{v4cidr}</span>",
+ format_down="<span color=\"#fff\">X</span>",
+ hints = {"markup": "pango", "separator": False, "separator_block_width": 0},)
status.register("text",
- text=" :: ",
- hints = {"separator": False, "separator_block_width": 0},)
+ text="|",
+ hints = {"separator": False, "separator_block_width": 0},)
+
+status.register("net_speed",
+ hints = {"separator": False, "separator_block_width": 0},)
+
+status.register("text",
+ text="|",
+ hints = {"separator": False, "separator_block_width": 0},)
+
+
+#status.register("external_ip",
+# color="#fff",
+# color_down="#fff",
+# format="<span color=\"#fff\">E:{v4cidr}</span>",
+# format_down="<span color=\"#fff\">X</span>",
+# hints = {"markup": "pango", "separator": False, "separator_block_width": 0},)
+#
+#status.register("text",
+# text="|",
+# hints = {"separator": False, "separator_block_width": 0},)
+
+
# Note: requires both netifaces and basiciw (for essid and quality)
#status.register("network",
# interface="wlp2s0",
# format_up=" {essid}  {quality:03.0f}%",
-# format_down="")
+# format_down="")
# Shows disk usage of /
# Format:
# 42/128G [86G]
status.register("disk",
path="/",
- format="[ / ] {avail}G",
+ format="[/]{avail}G",
hints = {"separator": False, "separator_block_width": 0},)
status.register("text",
- text=" :: ",
- hints = {"separator": False, "separator_block_width": 0},)
+ text="|",
+ hints = {"separator": False, "separator_block_width": 0},)
status.register("disk",
path="/home",
- format="[ /home ] {avail}G",
+ format="[/home]{avail}G",
hints = {"separator": False, "separator_block_width": 0},)
status.register("text",
- text=" :: ",
- hints = {"separator": False, "separator_block_width": 0},)
-
+ text="|",
+ hints = {"separator": False, "separator_block_width": 0},)
# Shows pulseaudio default sink volume
#
# Note: requires libpulseaudio from PyPI
status.register("pulseaudio",
- format="{volume}",format_muted="",
+ format="{volume}%",format_muted="X",
hints = {"separator": False, "separator_block_width": 0},)
status.register("text",
- text=" :: ",
- hints = {"separator": False, "separator_block_width": 0},)
-
+ text="|",
+ hints = {"separator": False, "separator_block_width": 0},)
status.register("shell",
- command="sh ~/.config/i3pystatus/get_volume.sh",
- interval=1,
- hints = {"separator": False, "separator_block_width": 0},)
+ command="sh ~/.config/i3pystatus/get_volume.sh",
+ 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},)
+
+status.register("text",
+ text="|",
+ hints = {"separator": False, "separator_block_width": 0},)
+
+status.register("taskwarrior",
+ format = "{next}({project})[{urgent}/{ready}]",
+ hints = {"separator": False, "separator_block_width": 0},)
status.register("text",
- text=" :: ",
- hints = {"separator": False, "separator_block_width": 0},)
+ text="|",
+ hints = {"separator": False, "separator_block_width": 0},)
+
+#status.register("timewarrior",
+# hints = {"markup": "pango", "separator": False, "separator_block_width": 0},)
+#
+#status.register("text",
+# text="|",
+# hints = {"separator": False, "separator_block_width": 0},)
+
#status.register("backlight",
-# format="{brightness}",)
+# hints = {"markup": "pango", "separator": False, "separator_block_width": 0},)
+#
+#status.register("text",
+# text="|",
+# hints = {"separator": False, "separator_block_width": 0},)
+
+#status.register("backlight",
+# format="{brightness}",)
#status.register("shell",
-# command="~/.i3-blocks/blocks/brightness",)
+# command="~/.i3-blocks/blocks/brightness",)
# Shows mpd status
# Format:
@@ -150,20 +245,20 @@ status.register("cmus",
"stopped": "◾",
"playing": "▶",
"paused": "▷",
- },format_not_running="",
+ },
+ format_not_running="",
hints = {"separator": False, "separator_block_width": 0},)
-
status.register("now_playing",
player="clementine",
color="#ffc080",
hints = {"separator": False, "separator_block_width": 0},
- format='{status} {artist} - {title} {song_elapsed}/{song_length}',
-# status = {
- # "Playing": "plsay",
- # "Paused": "pause",
- # "Stopped": "stop",
- # }
+ format='{status} {artist} - {title} {song_elapsed}/{song_length}',
+# status = {
+# "Playing": "plsay",
+# "Paused": "pause",
+# "Stopped": "stop",
+# }
)
status.run()