sway: Add bemenu
This commit is contained in:
parent
4d267dab5f
commit
6b89ff2def
@ -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%";
|
||||||
|
Loading…
Reference in New Issue
Block a user