Explorar o código

Switch to i3status-rs for #i3wm

Colin Powell %!s(int64=5) %!d(string=hai) anos
pai
achega
9afa28a200
Modificáronse 3 ficheiros con 79 adicións e 5 borrados
  1. 3 3
      i3/.config/compton/compton.conf
  2. 17 2
      i3/.config/i3/config
  3. 59 0
      i3/.config/i3/status.toml

+ 3 - 3
i3/.config/compton/compton.conf

@@ -22,8 +22,8 @@ shadow-exclude = [
 # xinerama-shadow-crop = true;
 
 # Opacity
-menu-opacity = 0.8;
-inactive-opacity = 0.95;
+menu-opacity = 0.3;
+inactive-opacity = 0.97;
 # active-opacity = 0.8;
 frame-opacity = 0.7;
 inactive-opacity-override = false;
@@ -89,6 +89,6 @@ glx-swap-method = "undefined";
 # Window type settings
 wintypes:
 {
-  tooltip = { fade = true; shadow = true; opacity = 0.75; focus = true; };
+  tooltip = { fade = true; shadow = true; opacity = 0.15; focus = true; };
 };
 

+ 17 - 2
i3/.config/i3/config

@@ -15,7 +15,7 @@ set $mod Mod4
 
 # Font for window titles. Will also be used by the bar unless a different font
 # is used in the bar {} block below.
-font pango:Iosevka 10
+font pango:Terminus 10
 
 # This font is widely installed, provides lots of unicode glyphs, right-to-left
 # text rendering and scalability on retina/hidpi displays (thanks to pango).
@@ -150,9 +150,24 @@ bindsym $mod+Shift+r restart
 # exit i3 (logs you out of your X session)
 bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -b 'Yes, exit i3' 'i3-msg exit'"
 
+#bar {
+#    position top
+#    status_command i3status
+#}
+
 bar {
+    font pango:Terminus, FontAwesome 10
     position top
-    status_command i3status
+    status_command /usr/local/bin/i3status-rs ~/.config/i3/status.toml
+    colors {
+        separator #666666
+        background #222222
+        statusline #dddddd
+        focused_workspace #0088CC #0088CC #ffffff
+        active_workspace #333333 #333333 #ffffff
+        inactive_workspace #333333 #333333 #888888
+        urgent_workspace #2f343a #900000 #ffffff
+    }
 }
 # resize window (you can also use the mouse for that)
 mode "resize" {

+ 59 - 0
i3/.config/i3/status.toml

@@ -0,0 +1,59 @@
+theme = "gruvbox-dark"
+icons = "awesome"
+
+[[block]]
+block = "focused_window"
+max_width = 80
+
+[[block]]
+block = "maildir"
+interval = 60
+inboxes = ["~/Mail/colin@onec.me/Inbox"]
+
+[[block]]
+block = "disk_space"
+path = "/"
+alias = "/"
+info_type = "available"
+unit = "GB"
+interval = 20
+warning = 20.0
+alert = 10.0
+
+[[block]]
+block = "net"
+device = "wlp3s0"
+ssid = true
+ip = true
+speed_up = false
+speed_down = false
+bitrate = false
+
+[[block]]
+block = "memory"
+display_type = "memory"
+format_mem = "{Mup}%"
+format_swap = "{SUp}%"
+
+[[block]]
+block = "cpu"
+interval = 1
+
+[[block]]
+block = "load"
+interval = 1
+format = "{1m}"
+
+[[block]]
+block = "battery"
+format = "{percentage}%"
+
+[[block]]
+block = "sound"
+driver = "pulseaudio"
+step_width = 10
+
+[[block]]
+block = "time"
+interval = 60
+format = "%a %d/%m %R"