From ea34726d7168100c0fb498ac64fb5b8c11aaa71b Mon Sep 17 00:00:00 2001 From: Joinemm Date: Wed, 7 Feb 2024 21:19:47 +0200 Subject: [PATCH] laptop update --- home-modules/picom.nix | 16 ++++++++-------- home-modules/polybar/polybar.ini | 11 +++++------ home-modules/zsh.nix | 1 + hosts/x1/configuration.nix | 6 +++++- modules/laptop.nix | 2 -- 5 files changed, 19 insertions(+), 17 deletions(-) diff --git a/home-modules/picom.nix b/home-modules/picom.nix index 9f3bc23..5c16817 100644 --- a/home-modules/picom.nix +++ b/home-modules/picom.nix @@ -21,14 +21,14 @@ "class_g = 'xsecurelock'" ]; # disable vsync for fullscreen applications - settings = { - unredir-if-possible = true; - }; - # and notifications that may draw over them - wintypes = { - notification.redir-ignore = true; - notify.redir-ignore = true; - }; + # settings = { + # unredir-if-possible = true; + # }; + # # and notifications that may draw over them + # wintypes = { + # notification.redir-ignore = true; + # notify.redir-ignore = true; + # }; extraArgs = ["--no-frame-pacing"]; }; } diff --git a/home-modules/polybar/polybar.ini b/home-modules/polybar/polybar.ini index 6198b8f..43a7138 100644 --- a/home-modules/polybar/polybar.ini +++ b/home-modules/polybar/polybar.ini @@ -110,16 +110,15 @@ poll-interval = 5 format-discharging-prefix = "BAT " format-charging-prefix = "BAT " +format-full-prefix = "BAT " + format-discharging-prefix-foreground = ${colors.primary} format-charging-prefix-foreground = ${colors.primary} +format-full-prefix-foreground = ${colors.primary} -format-charging = -format-discharging = - -label-charging = %percentage%% +label-charging = %percentage%%+ label-discharging = %percentage%% - -label-full =  +label-full = %percentage%% ramp-capacity-0 =  ramp-capacity-1 =  diff --git a/home-modules/zsh.nix b/home-modules/zsh.nix index 01e55ac..ad04a7e 100644 --- a/home-modules/zsh.nix +++ b/home-modules/zsh.nix @@ -47,6 +47,7 @@ ''; copy = "xclip -selection clipboard"; dev = "nix develop --impure -c $SHELL"; + git-branch-cleanup = "git branch -vv | grep gone | awk '{print $1}' | xargs git branch -D"; }; envExtra = '' diff --git a/hosts/x1/configuration.nix b/hosts/x1/configuration.nix index 719fe1c..37ee63e 100644 --- a/hosts/x1/configuration.nix +++ b/hosts/x1/configuration.nix @@ -50,6 +50,7 @@ in { "notes".enable = true; "pictures".enable = true; "work".enable = true; + "documents".enable = true; }; }; @@ -65,7 +66,10 @@ in { ( with pkgs; [ # languages and dev tools - python3 + (python3.withPackages (ps: + with ps; [ + requests + ])) pipenv rustup lua diff --git a/modules/laptop.nix b/modules/laptop.nix index b0bcf6f..e94dfe2 100644 --- a/modules/laptop.nix +++ b/modules/laptop.nix @@ -1,5 +1,4 @@ {pkgs, ...}: { - environment.systemPackages = with pkgs; [ brightnessctl ]; @@ -50,7 +49,6 @@ wantedBy = ["graphical-session.target"]; serviceConfig = { Environment = [ - "XSECURELOCK_COMPOSITE_OBSCURER=0" "XSECURELOCK_PASSWORD_PROMPT=asterisks" "XSECURELOCK_SHOW_KEYBOARD_LAYOUT=0" ];