chore: attach binds to common variables file
This commit is contained in:
parent
528ef530c0
commit
71b70ecb3a
2 changed files with 12 additions and 6 deletions
|
@ -10,7 +10,11 @@ in {
|
||||||
# Type definitions for nix variables used in this configuration
|
# Type definitions for nix variables used in this configuration
|
||||||
options = with lib;
|
options = with lib;
|
||||||
with types; {
|
with types; {
|
||||||
defaultApplications = {fileManager = mkOption {type = str;};};
|
defaultApplications = {
|
||||||
|
fileManager = mkOption {type = str;};
|
||||||
|
appLauncher = mkOption {type = str;};
|
||||||
|
terminal = mkOption {type = str;};
|
||||||
|
};
|
||||||
myWallPaperPath = mkOption {type = path;};
|
myWallPaperPath = mkOption {type = path;};
|
||||||
myUserName = mkOption {type = str;};
|
myUserName = mkOption {type = str;};
|
||||||
myHostName = mkOption {type = str;};
|
myHostName = mkOption {type = str;};
|
||||||
|
@ -45,6 +49,10 @@ in {
|
||||||
"${pkgs.pa-notify}/bin/pa-notify"
|
"${pkgs.pa-notify}/bin/pa-notify"
|
||||||
"${pkgs.networkmanagerapplet}/bin/nm-applet"
|
"${pkgs.networkmanagerapplet}/bin/nm-applet"
|
||||||
];
|
];
|
||||||
defaultApplications.fileManager = "${pkgs.nemo}/bin/nemo";
|
defaultApplications = {
|
||||||
|
terminal = "${pkgs.foot}/bin/footclient";
|
||||||
|
fileManager = "${pkgs.nemo}/bin/nemo";
|
||||||
|
appLauncher = "${pkgs.walker}/bin/walker";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,11 +1,9 @@
|
||||||
{
|
{
|
||||||
config,
|
config,
|
||||||
pkgs,
|
pkgs,
|
||||||
lib,
|
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
terminalCmd = "${pkgs.foot}/bin/footclient";
|
terminalCmd = config.defaultApplications.terminal;
|
||||||
appLauncherCmd = "${pkgs.walker}/bin/walker";
|
|
||||||
screenshotLocation = "/home/${config.myUserName}/Screenshots/$(date '+%Y-%m-%d-%H-%M-%S').png";
|
screenshotLocation = "/home/${config.myUserName}/Screenshots/$(date '+%Y-%m-%d-%H-%M-%S').png";
|
||||||
in
|
in
|
||||||
[
|
[
|
||||||
|
@ -22,7 +20,7 @@ in
|
||||||
# keysyms for util functions
|
# keysyms for util functions
|
||||||
# Example volume button that allows press and hold, volume limited to 150%
|
# Example volume button that allows press and hold, volume limited to 150%
|
||||||
"$mod, Q, killactive"
|
"$mod, Q, killactive"
|
||||||
"$mod, D, exec, ${appLauncherCmd}"
|
"$mod, D, exec, ${config.defaultApplications.appLauncher}"
|
||||||
"$mod, F, fullscreen"
|
"$mod, F, fullscreen"
|
||||||
"$mod, E, exec, ${config.defaultApplications.fileManager}"
|
"$mod, E, exec, ${config.defaultApplications.fileManager}"
|
||||||
# foot terminal
|
# foot terminal
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue