ma awesome: template insert packages
This commit is contained in:
parent
030a176198
commit
8ae65e4cd7
|
@ -28,10 +28,15 @@ let
|
||||||
# TODO: configure display manager as well
|
# TODO: configure display manager as well
|
||||||
nixpkgs.config.packageOverrides = pkgs: rec {
|
nixpkgs.config.packageOverrides = pkgs: rec {
|
||||||
awesome = pkgs.stdenv.lib.overrideDerivation pkgs.awesome (oldAttrs : {
|
awesome = pkgs.stdenv.lib.overrideDerivation pkgs.awesome (oldAttrs : {
|
||||||
postFixup = let
|
postFixup = let
|
||||||
rclua = pkgs.substituteAll {
|
rclua = pkgs.substituteAll {
|
||||||
src = cfg.baseConfig;
|
src = cfg.baseConfig;
|
||||||
inherit (cfg) modkey;
|
modkey = cfg.modkey;
|
||||||
|
# inherit (cfg) modkey;
|
||||||
|
amixer = "${pkgs.alsaUtils}/bin/amixer";
|
||||||
|
xlock = "${pkgs.xlockmore}/bin/xlock";
|
||||||
|
xbacklight = "${pkgs.xorg.xbacklight}/bin/xbacklight";
|
||||||
|
|
||||||
};
|
};
|
||||||
in "cp ${rclua} $out/etc/xdg/awesome/rc.lua";
|
in "cp ${rclua} $out/etc/xdg/awesome/rc.lua";
|
||||||
});
|
});
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
_:
|
_:
|
||||||
|
|
||||||
{
|
{
|
||||||
# TODO: requires in path: amixer, xlock, xbacklight
|
# replace: @amixer@ @xlock@ @xbacklight@
|
||||||
full = ./full.cfg;
|
full = ./full.cfg;
|
||||||
kiosk = ./kiosk.lua;
|
kiosk = ./kiosk.lua;
|
||||||
}
|
}
|
||||||
|
|
|
@ -365,23 +365,22 @@ globalkeys = awful.util.table.join(
|
||||||
{description = "restore minimized", group = "client"}),
|
{description = "restore minimized", group = "client"}),
|
||||||
|
|
||||||
awful.key({ }, "XF86MonBrightnessUp", function ()
|
awful.key({ }, "XF86MonBrightnessUp", function ()
|
||||||
awful.util.spawn("xbacklight -inc 5", false) end),
|
awful.util.spawn("@xbacklight@ -inc 5", false) end),
|
||||||
awful.key({ }, "XF86MonBrightnessDown", function ()
|
awful.key({ }, "XF86MonBrightnessDown", function ()
|
||||||
awful.util.spawn("xbacklight -dec 5", false) end),
|
awful.util.spawn("@xbacklight@ -dec 5", false) end),
|
||||||
|
|
||||||
awful.key({ }, "XF86AudioRaiseVolume", function ()
|
awful.key({ }, "XF86AudioRaiseVolume", function ()
|
||||||
awful.util.spawn("amixer set Master 5%+", false) end),
|
awful.util.spawn("@amixer@ set Master 5%+", false) end),
|
||||||
awful.key({ }, "XF86AudioLowerVolume", function ()
|
awful.key({ }, "XF86AudioLowerVolume", function ()
|
||||||
awful.util.spawn("amixer set Master 5%-", false) end),
|
awful.util.spawn("@amixer@ set Master 5%-", false) end),
|
||||||
awful.key({ }, "XF86AudioMute", function ()
|
awful.key({ }, "XF86AudioMute", function ()
|
||||||
awful.util.spawn("amixer -q -D default sset Master toggle", false) end),
|
awful.util.spawn("@amixer@ -q -D default sset Master toggle", false) end),
|
||||||
|
|
||||||
-- Prompt
|
-- Prompt
|
||||||
awful.key({ modkey }, "r", function () awful.screen.focused().mypromptbox:run() end,
|
awful.key({ modkey }, "r", function () awful.screen.focused().mypromptbox:run() end,
|
||||||
{description = "run prompt", group = "launcher"}),
|
{description = "run prompt", group = "launcher"}),
|
||||||
-- awful.key({ modkey }, "r", function () awful.util.spawn( "dmenu_run" ) end ),
|
awful.key({ modkey,"Control" }, "BackSpace", function () awful.util.spawn("@xlock@ -mode blank") end),
|
||||||
awful.key({ modkey,"Control" }, "BackSpace", function () awful.util.spawn("xlock -mode blank") end),
|
awful.key({ }, "XF86ScreenSaver", function () awful.util.spawn("@xlock@ -mode blank") end),
|
||||||
awful.key({ }, "XF86ScreenSaver", function () awful.util.spawn("xlock -mode blank") end),
|
|
||||||
|
|
||||||
awful.key({ modkey }, "x",
|
awful.key({ modkey }, "x",
|
||||||
function ()
|
function ()
|
||||||
|
|
Loading…
Reference in a new issue