summary refs log tree commit diff
path: root/mixins
diff options
context:
space:
mode:
authortzlil <tzlils@protonmail.com>2023-05-14 00:25:03 +0300
committertzlil <tzlils@protonmail.com>2023-05-14 00:25:03 +0300
commit8c6a913ca8b4f810c4a59ecc63da96e35b38418f (patch)
treed1de94a48ffee91938c077802484b451c855d182 /mixins
parent3f671fc05742109633339de45e86819e13b88c7f (diff)
persist schildi on laptop, recommit i3status config
Diffstat (limited to 'mixins')
-rw-r--r--mixins/sway.nix34
1 files changed, 28 insertions, 6 deletions
diff --git a/mixins/sway.nix b/mixins/sway.nix
index d511984..09fc857 100644
--- a/mixins/sway.nix
+++ b/mixins/sway.nix
@@ -26,27 +26,49 @@ in {
     security.pam.services.swaylock = {};
     home-manager.users.tzlil = {
       xdg.configFile."i3status-rust/config.toml".text = ''
+        [icons]
         icons = "awesome6"
 
         [theme]
-        name = "native"
+        theme = "semi-native"
+        [theme.overrides]
+        separator = ""
 
         [[block]]
         block = "music"
-        on_click = "playerctl play-pause"
-        dynamic_width = true
+        [[block.click]]
+        action = "play_pause"
+        button = "left"
 
         [[block]]
-        block = "networkmanager"
+        block = "net"
+        format = " $icon {$ssid |}$ip "
+        [[block]]
+        block = "memory"
+        format = " $icon $mem_total_used_percents.eng(w:2) "
+
+        [[block]]
+        block = "cpu"
+
+        [[block]]
+        block = "load"
+
+        [[block]]
+        block = "battery"
+        interval = 10
+        #format = "$percentage $time"
 
         [[block]]
         block = "sound"
-        on_click = "${pkgs.pavucontrol}/bin/pavucontrol"
+        headphones_indicator=true
+        [[block.click]]
+        cmd = "${pkgs.pavucontrol}/bin/pavucontrol"
+        button = "left"
 
         [[block]]
         block = "time"
         interval = 60
-        format = "%a %Y-%m-%d %H:%M"
+        format = "$icon $timestamp.datetime(f:'%a %Y-%m-%d %H:%M')"
       '';
       services.mako.enable = true;
       home.packages = with pkgs; [