Write set-icon script

This commit is contained in:
asonix 2023-10-08 16:26:21 -05:00
parent 9defc818b9
commit e3a15a5840

View file

@ -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";