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