chore: Run nix fmt

This commit is contained in:
Donovan Glover 2024-08-26 21:32:55 -04:00
parent 09b241b088
commit be5f0a6183
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65
2 changed files with 54 additions and 52 deletions

View File

@ -147,22 +147,25 @@ in
};
environment.systemPackages = mkMerge [
(mkIf bloat (with pkgs; [
mullvad-browser
spek
audacity
gimp
libreoffice
element-desktop
signal-desktop
qbittorrent
popsicle
satty
srb2
ringracers
jamesdsp
texliveFull
]))
(mkIf bloat (
with pkgs;
[
mullvad-browser
spek
audacity
gimp
libreoffice
element-desktop
signal-desktop
qbittorrent
popsicle
satty
srb2
ringracers
jamesdsp
texliveFull
]
))
(with nix-config.inputs.sakaya.packages.${pkgs.system}; [ sakaya ])

View File

@ -1,4 +1,9 @@
{ config, lib, pkgs, ... }:
{
config,
lib,
pkgs,
...
}:
let
inherit (lib) singleton;
@ -56,39 +61,39 @@ in
${barScript} = {
executable = true;
text = # fish
''
#!/usr/bin/env fish
''
#!/usr/bin/env fish
function get_icon
if test "$argv" -gt 90
echo " "
else if test "$argv" -gt 60
echo " "
else if test "$argv" -gt 30
echo " "
else if test "$argv" -gt 10
echo " "
else
echo " "
function get_icon
if test "$argv" -gt 90
echo " "
else if test "$argv" -gt 60
echo " "
else if test "$argv" -gt 30
echo " "
else if test "$argv" -gt 10
echo " "
else
echo " "
end
end
end
function update_bar
set VOLUME "$(math "$(wpctl get-volume @DEFAULT_AUDIO_SINK@ | choose 1) * 100")%"
set TIME "$(date '+%x%a%R')"
set capacity "$(cat /sys/class/power_supply/BAT0/capacity)"
function update_bar
set VOLUME "$(math "$(wpctl get-volume @DEFAULT_AUDIO_SINK@ | choose 1) * 100")%"
set TIME "$(date '+%x%a%R')"
set capacity "$(cat /sys/class/power_supply/BAT0/capacity)"
set BATTERY "$(get_icon $capacity)$capacity%"
set BATTERY "$(get_icon $capacity)$capacity%"
xsetroot -name " $VOLUME$BATTERY$TIME "
end
xsetroot -name " $VOLUME$BATTERY$TIME "
end
while true
update_bar
while true
update_bar
sleep 10s
end
'';
sleep 10s
end
'';
};
};
@ -113,9 +118,7 @@ in
shadowExclude = fadeExclude;
opacityRules = [
"95:class_g = 'Thunar'"
];
opacityRules = [ "95:class_g = 'Thunar'" ];
settings = {
blur = {
@ -123,13 +126,9 @@ in
size = 10;
};
blur-background-exclude = [
"class_g = 'Nemo-desktop'"
];
blur-background-exclude = [ "class_g = 'Nemo-desktop'" ];
clip-shadow-above = [
"class_g = 'dwm'"
];
clip-shadow-above = [ "class_g = 'dwm'" ];
};
};