mirror of
https://github.com/starr-dusT/dotfiles.git
synced 2025-02-19 19:27:31 -08:00
I wrote a derivation! I'm very proud of myself.
This commit is contained in:
parent
c541db90ff
commit
ef0a64ffb4
@ -206,18 +206,18 @@ mode open {
|
||||
# s[c]ratchpads commands
|
||||
bindsym $mod+c mode scratch
|
||||
mode scratch {
|
||||
bindsym Return exec ~/.cargo/bin/sway-scratchpad \
|
||||
bindsym Return exec sway-scratchpad \
|
||||
--command "alacritty" \
|
||||
--mark term \
|
||||
--width 40 \
|
||||
--height 71, $e
|
||||
bindsym b exec ~/.cargo/bin/sway-scratchpad \
|
||||
bindsym b exec sway-scratchpad \
|
||||
--command "blueman-manager" \
|
||||
--mark blue \
|
||||
--width 40 \
|
||||
--height 71, $e
|
||||
bindsym f exec ~/.cargo/bin/sway-scratchpad \
|
||||
--command "alacritty -e /home/{{ .user }}/.local/bin/tmuxp load /home/{{ .user }}/.config/tmuxp/files.yml" \
|
||||
bindsym f exec sway-scratchpad \
|
||||
--command "alacritty -e tmuxp load /home/{{ .user }}/.config/tmuxp/files.yml" \
|
||||
--mark files \
|
||||
--width 71 \
|
||||
--height 71, $e
|
||||
|
@ -7,4 +7,4 @@ windows:
|
||||
- cd ~/
|
||||
panes:
|
||||
- shell_command:
|
||||
- ~/.local/bin/nnn
|
||||
- nnn
|
||||
|
@ -32,6 +32,7 @@ in {
|
||||
sway
|
||||
swayidle
|
||||
swaybg
|
||||
sway-scratchpad
|
||||
grim # screenshot functionality
|
||||
wl-clipboard # wl-copy and wl-paste for copy/paste from stdin / stdout
|
||||
mako # notification system developed by swaywm maintainer
|
||||
|
6
provision/nixos/overlays/default.nix
Normal file
6
provision/nixos/overlays/default.nix
Normal file
@ -0,0 +1,6 @@
|
||||
/* This contains various packages we want to overlay. Note that the
|
||||
* other ".nix" files in this directory are automatically loaded.
|
||||
*/
|
||||
final: prev: {
|
||||
sway-scratchpad = final.callPackage ../pkgs/sway-scratchpad.nix {};
|
||||
}
|
22
provision/nixos/pkgs/sway-scratchpad.nix
Normal file
22
provision/nixos/pkgs/sway-scratchpad.nix
Normal file
@ -0,0 +1,22 @@
|
||||
{ lib, fetchFromGitHub, rustPlatform }:
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "sway-scratchpad";
|
||||
version = "0.2.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "matejc";
|
||||
repo = "sway-scratchpad";
|
||||
rev = "2f4d39927a154108f193771a90ae7f298e7ae65f";
|
||||
hash = "sha256-TgiwU95BbKFvISDe8+wn8VQ+8vQNuGsb+7p9kP//5lw=";
|
||||
};
|
||||
|
||||
cargoHash = "sha256-VLWjpb9OmYkBykP51YURWnvgzI1DW0731DbDcJh/7h8=";
|
||||
|
||||
meta = with lib; {
|
||||
description = "Convert a command to a scratchpad, and toggle visibility with sway/i3.";
|
||||
homepage = "https://github.com/matejc/sway-scratchpad";
|
||||
license = licenses.bsd2;
|
||||
maintainers = [ maintainers.starr-dusT ];
|
||||
};
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user