soundboard dmenu

This commit is contained in:
Daniel Lovbrotte Olsen 2021-11-11 05:39:46 +01:00
parent 8c5df05efc
commit b432a2cbc1
2 changed files with 13 additions and 1 deletions

View File

@ -44,7 +44,8 @@ in
i3.config = {
modifier = "Mod4";
terminal = "kitty";
keybindings = let modifier = config.xsession.windowManager.i3.config.modifier;
keybindings = let
modifier = config.xsession.windowManager.i3.config.modifier;
in lib.mkOptionDefault {
"${modifier}+0" = "workspace 10";
"${modifier}+Shift+0" = "move container to workspace 10";
@ -70,6 +71,8 @@ in
"${modifier}+b" = "exec firefox";
"${modifier}+t" = "exec gedit";
"${modifier}+Shift+s" = "exec $HOME/.config/nixpkgs/nix-dotfiles/scripts/dmenuaudio";
# "${modifier}+Return" = lib.mkForce "exec kitty";
"${modifier}+Shift+Return" = "exec kitty -e ssh dandellion@lilith";
};

9
scripts/dmenuaudio Executable file
View File

@ -0,0 +1,9 @@
#!/bin/sh
# Give dmenu list of all unicode characters to copy.
# Shows the selected character in dunst if running.
chosen=$(cd $HOME/Soundboard && find -printf '%P\n'| dmenu -i -l 20 -fn Monospace-14)
[ "$chosen" != "" ] || exit
mpv --no-video --audio-device=pulse/SendToVirtualMic "$HOME/Soundboard/$chosen"