Add dmenu_sys and dmenu_timer
This commit is contained in:
parent
79ebdaeba9
commit
8acc393fa0
5 changed files with 80 additions and 6 deletions
17
flake.lock
generated
17
flake.lock
generated
|
@ -23,6 +23,22 @@
|
|||
"type": "github"
|
||||
}
|
||||
},
|
||||
"bop-scripts": {
|
||||
"flake": false,
|
||||
"locked": {
|
||||
"lastModified": 1749678215,
|
||||
"narHash": "sha256-UlLpsF/O/5WWB+fXjzJHeudxY+6pDlqq/HTqwiRf+Yk=",
|
||||
"owner": "breadonpenguins",
|
||||
"repo": "scripts",
|
||||
"rev": "7c6be69294d2dce7c7f295f1f067c1d00eb57b66",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "breadonpenguins",
|
||||
"repo": "scripts",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"conf-vim": {
|
||||
"flake": false,
|
||||
"locked": {
|
||||
|
@ -442,6 +458,7 @@
|
|||
"root": {
|
||||
"inputs": {
|
||||
"agenix": "agenix",
|
||||
"bop-scripts": "bop-scripts",
|
||||
"conf-vim": "conf-vim",
|
||||
"disko": "disko",
|
||||
"edit-alternate-vim": "edit-alternate-vim",
|
||||
|
|
|
@ -5,6 +5,11 @@
|
|||
url = "github:ryantm/agenix";
|
||||
};
|
||||
|
||||
bop-scripts = {
|
||||
flake = false;
|
||||
url = "github:breadonpenguins/scripts";
|
||||
};
|
||||
|
||||
conf-vim = {
|
||||
flake = false;
|
||||
url = "github:tjdevries/conf.vim";
|
||||
|
|
26
modules/dmenu-sys.nix
Normal file
26
modules/dmenu-sys.nix
Normal file
|
@ -0,0 +1,26 @@
|
|||
{ inputs, ... }:
|
||||
|
||||
{
|
||||
flake.modules.homeManager.gui =
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
home.packages = [
|
||||
(pkgs.stdenv.mkDerivation rec {
|
||||
pname = "dmenu_sys";
|
||||
version = "unstable";
|
||||
|
||||
src = inputs.bop-scripts;
|
||||
|
||||
dontUnpack = true;
|
||||
|
||||
buildInputs = with pkgs; [ dmenu ];
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
cp $src/${pname} $out/bin
|
||||
chmod +x $out/bin/${pname}
|
||||
'';
|
||||
})
|
||||
];
|
||||
};
|
||||
}
|
26
modules/dmenu-timer.nix
Normal file
26
modules/dmenu-timer.nix
Normal file
|
@ -0,0 +1,26 @@
|
|||
{ inputs, ... }:
|
||||
|
||||
{
|
||||
flake.modules.homeManager.gui =
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
home.packages = [
|
||||
(pkgs.stdenv.mkDerivation rec {
|
||||
pname = "dmenu_timer";
|
||||
version = "unstable";
|
||||
|
||||
src = inputs.bop-scripts;
|
||||
|
||||
dontUnpack = true;
|
||||
|
||||
buildInputs = with pkgs; [ dmenu ];
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
cp $src/${pname} $out/bin
|
||||
chmod +x $out/bin/${pname}
|
||||
'';
|
||||
})
|
||||
];
|
||||
};
|
||||
}
|
|
@ -5,17 +5,17 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
services.sxhkd.keybindings = {
|
||||
"{_, shift +, super +}XF86MonBrightness{Down,Up}" =
|
||||
"${lib.getExe pkgs.brightnessctl} set {5%-,10%-,10%,+5%,+10%,100%} --quiet";
|
||||
"super + BackSpace" = "/home/opdavies/sysact";
|
||||
"@F10" = "/home/opdavies/.local/bin/unmounter";
|
||||
"@F3" = "displayselect";
|
||||
"@F9" = "/home/opdavies/.local/bin/mounter";
|
||||
"super + BackSpace" = "dmenu_sys";
|
||||
"super + shift + b" = "/etc/profiles/per-user/opdavies/bin/bookmarkthis";
|
||||
"super + shift + i" =
|
||||
"${pkgs.xdotool}/bin/xdotool type $(cat ~/.local/share/snippets.txt | grep -v '^#' | grep -v '^$' | sort | dmenu -i -l 50 | cut -d' ' -f1)";
|
||||
"super + shift + p" = "${lib.getExe pkgs.passmenu-otp} -i";
|
||||
"super + x; {1, 2, 3, 4}" = "st {notes, newsboat, nmtui, bluetuith}";
|
||||
"@F3" = "displayselect";
|
||||
"@F9" = "/home/opdavies/.local/bin/mounter";
|
||||
"@F10" = "/home/opdavies/.local/bin/unmounter";
|
||||
"{_, shift +, super +}XF86MonBrightness{Down,Up}" =
|
||||
"${lib.getExe pkgs.brightnessctl} set {5%-,10%-,10%,+5%,+10%,100%} --quiet";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue