From 56ae0f34be8611941a7b25480ba66ca4fce84f0c Mon Sep 17 00:00:00 2001 From: spinach <19keegandeppe@gmail.com> Date: Sun, 29 Jan 2023 23:45:47 -0500 Subject: [PATCH] added i3status bar --- i3/config | 6 ++++- i3status/config | 59 +++++++++++++++++++++++++++++++++++++++++++++++ install.conf.yaml | 1 + 3 files changed, 65 insertions(+), 1 deletion(-) create mode 100644 i3status/config diff --git a/i3/config b/i3/config index e096fd9..23bfadb 100644 --- a/i3/config +++ b/i3/config @@ -15,6 +15,11 @@ set $mod Mod4 # is used in the bar {} block below. font pango:monospace 8 +default_border none + +gaps inner 5 +smart_gaps on + # This font is widely installed, provides lots of unicode glyphs, right-to-left # text rendering and scalability on retina/hidpi displays (thanks to pango). #font pango:DejaVu Sans Mono 8 @@ -53,7 +58,6 @@ bindsym $mod+Return exec st # lock the screen bindsym $mod+q exec ~/.local/bin/i3lock-blur -#bindsym $mod+q exec i3lock-fancy-dualmonitor # kill focused window bindsym $mod+Shift+q kill diff --git a/i3status/config b/i3status/config new file mode 100644 index 0000000..33a6f8d --- /dev/null +++ b/i3status/config @@ -0,0 +1,59 @@ +# i3status configuration file. # see "man i3status" for documentation. + +# It is important that this file is edited as UTF-8. +# The following line should contain a sharp s: +# ß +# If the above line is not correctly displayed, fix your editor first! + +general { + colors = true + interval = 5 +} + +order += "ethernet _first_" +order += "volume master" +order += "disk /" +order += "cpu_usage" +order += "memory" +order += "tztime local" + +wireless _first_ { + format_up = "W: (%quality at %essid) %ip" + format_down = "W: down" +} + +ethernet _first_ { + format_up = "E: %ip (%speed)" + format_down = "E: down" +} + +battery all { + format = "%status %percentage %remaining" +} + +disk "/" { + format = "%avail" +} + +cpu_usage { + format = "cpu: %usage" +} + + +memory { + format = "%percentage_used of %available used (%used)" + threshold_degraded = "1G" + format_degraded = "MEMORY < %available" +} + +volume master { + format = "♪: %volume" + format_muted = "♪: muted (%volume)" + device = "pulse" + mixer = "Master" + mixer_idx = 0 +} + +tztime local { + format = "%Y-%m-%d %H:%M:%S" +} diff --git a/install.conf.yaml b/install.conf.yaml index e067b3a..de0b10b 100644 --- a/install.conf.yaml +++ b/install.conf.yaml @@ -35,6 +35,7 @@ ~/.tmux.conf: ~/.fzf: src/fzf ~/.config/i3: i3 + ~/.config/i3status: i3status ~/.oh-my-zsh/custom: path: oh-my-zsh/custom force: true