config/modules/gui/wm/scripts.nix
2022-05-15 18:35:31 +02:00

20 lines
436 B
Nix

# Utility scripts for use with a window manager.
{ pkgs, ... }: with pkgs; {
lock = writeShellApplication {
name = "lock";
runtimeInputs = [ i3lock ];
text = "i3lock";
};
sc = (writeShellApplication {
name = "sc";
runtimeInputs = [ xclip scrot ];
text = ''
scrot -ozs /tmp/sc.png
xclip -t "image/png" -sel clip -i < /tmp/sc.png
'';
});
}