20 lines
436 B
Nix
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
|
|
'';
|
|
});
|
|
|
|
}
|