From 939c4f6c95026b1e59d181433192d58fc528d7c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Charlotte=20=F0=9F=A6=9D=20Delenk?= Date: Sun, 1 Jan 2023 15:39:50 +0100 Subject: [PATCH] fix configs --- config/desktop.nix | 4 ---- config/programs/foot.nix | 2 +- config/programs/sway.nix | 5 +++-- config/programs/theming.nix | 2 +- config/programs/waybar.nix | 8 +++----- utils/link-input.nix | 2 +- 6 files changed, 9 insertions(+), 14 deletions(-) diff --git a/config/desktop.nix b/config/desktop.nix index d38ec9b1..66e962f0 100644 --- a/config/desktop.nix +++ b/config/desktop.nix @@ -116,8 +116,4 @@ in { ibus.engines = with pkgs.ibus-engines; [anthy]; }; security.polkit.enable = true; - security.pam.services.kwallet = { - name = "kwallet"; - enableKwallet = true; - }; } diff --git a/config/programs/foot.nix b/config/programs/foot.nix index 4d62c65c..4827e9ba 100644 --- a/config/programs/foot.nix +++ b/config/programs/foot.nix @@ -5,7 +5,7 @@ settings = { main = { term = "xterm-256color"; - font = "FiraCode Nerd Font:size=12"; + font = "FiraCode Nerd Font:size=6"; dpi-aware = "yes"; }; }; diff --git a/config/programs/sway.nix b/config/programs/sway.nix index 290e9268..149d5af8 100644 --- a/config/programs/sway.nix +++ b/config/programs/sway.nix @@ -20,7 +20,7 @@ } for k in $(seq 0 $((${c}{#win_ids[@]} - 1))); do - echo -e "\\${c}{win_types[$k]} - ${c}{win_names[$k]}" + echo -e "${c}{win_types[$k]} - ${c}{win_names[$k]}" done | rofi -dmenu -markup-rows -i -p window -format i | switch ''; screenshot_then_switch = pkgs.writeScript "screenshotThenSwitch" '' @@ -109,7 +109,7 @@ in { in lib.mkOptionDefault { "${modifier}+Return" = "exec ${pkgs.foot}/bin/foot"; - "${modifier}+d" = "exec ${pkgs.rofi}/bin/rofi --show drun"; + "${modifier}+d" = "exec ${pkgs.rofi}/bin/rofi -show drun"; "Print" = "mode screenshot"; "XF86AudioRaiseVolume" = "exec ${pkgs.pulseaudio}/bin/pactl set-sink-volume @DEFAULT_SINK@ +5%"; "XF86AudioLowerVolume" = "exec ${pkgs.pulseaudio}/bin/pactl set-sink-volume @DEFAULT_SINK@ -5%"; @@ -158,6 +158,7 @@ in { extraConfig = '' exec ${configure-gtk}/bin/configure-gtk exec ${pkgs.systemd}/bin/systemctl --user import-environment + default_border none gaps outer 8 gaps inner 4 ''; diff --git a/config/programs/theming.nix b/config/programs/theming.nix index 6f819cb9..121c2a56 100644 --- a/config/programs/theming.nix +++ b/config/programs/theming.nix @@ -39,7 +39,7 @@ in { } window#waybar { - background: tranparent; + background: transparent; opacity: 0.9; } diff --git a/config/programs/waybar.nix b/config/programs/waybar.nix index 411546d3..a9759ff6 100644 --- a/config/programs/waybar.nix +++ b/config/programs/waybar.nix @@ -20,8 +20,6 @@ "memory" "temperature" "backlight" - "keyboard-state" - # "sway/language" "battery" "battery#bat2" "clock" @@ -63,8 +61,8 @@ on-click = "${pkgs.mpc-cli}/bin/mpc toggle"; on-click-middle = "${pkgs.foot}/bin/foot ${pkgs.ncmpcpp}/bin/ncmpcpp"; on-click-right = "${pkgs.mpc-cli}/bin/mpc stop"; - on-scroll-up = "${pkgs.mpc-cli}/bin/mpc seekthrough +00:00:10"; - on-scroll-down = "${pkgs.mpc-cli}/bin/mpc seekthrough -00:00:10"; + on-scroll-up = "${pkgs.mpc-cli}/bin/mpc seekthrough +00:00:01"; + on-scroll-down = "${pkgs.mpc-cli}/bin/mpc seekthrough -00:00:01"; }; idle_inhibitor = { format = "{icon}"; @@ -78,7 +76,7 @@ }; clock = { tooltip-format = "{:%Y %B}\n{calendar}"; - format = "{:%Y-%m-%dT%H:%M:%S+01:00}"; + format = "{:%H:%M}"; }; cpu = { format = "{usage}% "; diff --git a/utils/link-input.nix b/utils/link-input.nix index eb9a709f..23f393e1 100644 --- a/utils/link-input.nix +++ b/utils/link-input.nix @@ -1,7 +1,7 @@ inputs: {lib, ...}: let # Taken from https://github.com/gytis-ivaskevicius/flake-utils-plus/blob/master/lib/options.nix inherit (lib) filterAttrs mapAttrs'; - flakes = filterAttrs (name: value: value ? outputs) inputs; + flakes = filterAttrs (name: value: (name != "self") && (value ? outputs)) inputs; nixRegistry = builtins.mapAttrs (name: v: {flake = v;})