From 00db7aca343a925220b17223b02dfb79b05f597c Mon Sep 17 00:00:00 2001 From: tzlil Date: Fri, 20 Oct 2023 11:34:30 +0300 Subject: stuff --- mixins/sway.nix | 69 ++++++++++++++++++--------------------------------------- 1 file changed, 21 insertions(+), 48 deletions(-) (limited to 'mixins/sway.nix') diff --git a/mixins/sway.nix b/mixins/sway.nix index e588531..5981049 100644 --- a/mixins/sway.nix +++ b/mixins/sway.nix @@ -25,51 +25,21 @@ in { config = { security.pam.services.swaylock = {}; home-manager.users.tzlil = { - xdg.configFile."i3status-rust/config.toml".text = '' - [icons] - icons = "awesome6" - - [theme] - theme = "semi-native" - [theme.overrides] - separator = "" - - [[block]] - block = "music" - [[block.click]] - action = "play_pause" - button = "left" - - [[block]] - 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" - headphones_indicator=true - [[block.click]] - cmd = "${lib.getExe pkgs.pavucontrol}" - button = "left" - - [[block]] - block = "time" - interval = 60 - format = "$icon $timestamp.datetime(f:'%a %Y-%m-%d %H:%M')" - ''; + programs.waybar = { + enable = true; + settings = { + mainBar = { + modules-left = ["sway/workspaces" "sway/mode" "wlr/taskbar"]; + modules-center = ["sway/window"]; + modules-right = ["mpd" "temperature" "battery" "clock"]; + + "sway/workspaces" = { + disable-scroll = true; + all-outputs = false; + }; + }; + }; + }; services.mako.enable = true; home.packages = with pkgs; [ wf-recorder @@ -155,12 +125,15 @@ in { bars = [ { fonts = { - names = ["Iosevka" "FontAwesome"]; + # names = ["Iosevka" "FontAwesome"]; + names = ["APL385 Unicode"]; style = "Regular"; - size = 11.0; + size = 14.0; }; position = "top"; - statusCommand = "${pkgs.i3status-rust}/bin/i3status-rs"; + # statusCommand = "${pkgs.i3status-rust}/bin/i3status-rs"; + command = "${lib.getExe pkgs.waybar}"; + # command = "waybar"; colors = { statusline = "#ffffff"; background = "#323232"; -- cgit 1.4.1