soundboard dmenu
This commit is contained in:
parent
8c5df05efc
commit
b432a2cbc1
|
@ -44,7 +44,8 @@ in
|
||||||
i3.config = {
|
i3.config = {
|
||||||
modifier = "Mod4";
|
modifier = "Mod4";
|
||||||
terminal = "kitty";
|
terminal = "kitty";
|
||||||
keybindings = let modifier = config.xsession.windowManager.i3.config.modifier;
|
keybindings = let
|
||||||
|
modifier = config.xsession.windowManager.i3.config.modifier;
|
||||||
in lib.mkOptionDefault {
|
in lib.mkOptionDefault {
|
||||||
"${modifier}+0" = "workspace 10";
|
"${modifier}+0" = "workspace 10";
|
||||||
"${modifier}+Shift+0" = "move container to workspace 10";
|
"${modifier}+Shift+0" = "move container to workspace 10";
|
||||||
|
@ -70,6 +71,8 @@ in
|
||||||
"${modifier}+b" = "exec firefox";
|
"${modifier}+b" = "exec firefox";
|
||||||
"${modifier}+t" = "exec gedit";
|
"${modifier}+t" = "exec gedit";
|
||||||
|
|
||||||
|
"${modifier}+Shift+s" = "exec $HOME/.config/nixpkgs/nix-dotfiles/scripts/dmenuaudio";
|
||||||
|
|
||||||
# "${modifier}+Return" = lib.mkForce "exec kitty";
|
# "${modifier}+Return" = lib.mkForce "exec kitty";
|
||||||
"${modifier}+Shift+Return" = "exec kitty -e ssh dandellion@lilith";
|
"${modifier}+Shift+Return" = "exec kitty -e ssh dandellion@lilith";
|
||||||
};
|
};
|
||||||
|
|
|
@ -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"
|
Loading…
Reference in New Issue