From e3a15a5840c832371ab3b03dfb79e94e51fbbcdc Mon Sep 17 00:00:00 2001 From: asonix Date: Sun, 8 Oct 2023 16:26:21 -0500 Subject: [PATCH] Write set-icon script --- home.nix | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/home.nix b/home.nix index e895754..64c5c81 100644 --- a/home.nix +++ b/home.nix @@ -4,6 +4,18 @@ let unstable = import nixpkgs-unstable { inherit system; }; + setIcon = '' +#!/usr/bin/env bash + +dbus-send \ + --system \ + --print-reply \ + --type=method_call \ + --dest="org.freedesktop.Accounts" \ + /org/freedesktop/Accounts/User1000 \ + org.freedesktop.Accounts.User.SetIconFile \ + "string:$1" + ''; in { imports = [ ./zsh.nix ./ssh.nix ]; @@ -41,6 +53,8 @@ in wireshark picocom + + (writeShellScriptBin "set-icon" setIcon) ]; home.stateVersion = "22.05";