mirror of
https://git.dodsorf.as/Dandellion/dotfiles.git
synced 2024-12-22 07:17:28 +01:00
hardcode uquota binary path since, its not available in the PATH of the systemd unit
This commit is contained in:
parent
d927b9d4a3
commit
313cd57bf3
@ -20,9 +20,9 @@
|
||||
|
||||
services.polybar.config."module/uquota" = {
|
||||
type = "custom/script";
|
||||
exec-if = "which uquota";
|
||||
exec-if = "test -f /usr/local/bin/uquota";
|
||||
exec = "" + pkgs.writers.writePerl "parse_uquota" { } ''
|
||||
my $raw = `uquota`;
|
||||
my $raw = `/usr/local/bin/uquota`;
|
||||
if ( $raw =~ /Du har brukt (\d+(?:[KMGT]iB)) av (\d+(?:[KMGT]iB)), eller (\d+)/ )
|
||||
{
|
||||
print $3 . "%\n";
|
||||
|
Loading…
Reference in New Issue
Block a user