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 config
, lib , lib, writeScript
, sway, mako , stdenv
, sway, mako, bemenu
}: }:
{ let
passwordDmenu = writeShellScript "password_menu" ''
#!${stdenv.shell}
password=$(gopass list --flat | bmenu)
gopass show -c "$password
'';
in {
environment.systemPackages = [ sway ]; environment.systemPackages = [ sway ];
home-manager.users."${config.system.singleUser}" = { home-manager.users."${config.system.singleUser}" = {
@ -38,6 +45,11 @@
"${modifier}+e" = "exec emacs"; "${modifier}+e" = "exec emacs";
"${modifier}+Shift+q" = "kill"; "${modifier}+Shift+q" = "kill";
"${modifer}+f" = "exec firefox"; "${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"; "F1" = "exec pactl set-sink-volume ${speakers} toggle";
"F2" = "exec pactl set-sink-volume ${speakers} -10%"; "F2" = "exec pactl set-sink-volume ${speakers} -10%";
"F3" = "exec pactl set-sink-volume ${speakers} +10%"; "F3" = "exec pactl set-sink-volume ${speakers} +10%";