sway: Add bemenu

This commit is contained in:
PapaTutuWawa 2021-09-07 15:41:08 +02:00
parent 4d267dab5f
commit 6b89ff2def

View File

@ -1,10 +1,17 @@
{
config
, lib
, sway, mako
, lib, writeScript
, stdenv
, sway, mako, bemenu
}:
{
let
passwordDmenu = writeShellScript "password_menu" ''
#!${stdenv.shell}
password=$(gopass list --flat | bmenu)
gopass show -c "$password
'';
in {
environment.systemPackages = [ sway ];
home-manager.users."${config.system.singleUser}" = {
@ -38,6 +45,11 @@
"${modifier}+e" = "exec emacs";
"${modifier}+Shift+q" = "kill";
"${modifer}+f" = "exec firefox";
"${modifier}+d" = "exec ${bemenu}/bin/bemenu-run";
"${modifier}+p" = "exec ${passwordDmenu}";
"Mod4+s" = "exec systemctl suspend";
# TODO: Screenlock
#"Mod4+l" = "exec ..."
"F1" = "exec pactl set-sink-volume ${speakers} toggle";
"F2" = "exec pactl set-sink-volume ${speakers} -10%";
"F3" = "exec pactl set-sink-volume ${speakers} +10%";