FZF + better sxhkd
This commit is contained in:
parent
21ed795cfd
commit
cbd4278c77
3 changed files with 37 additions and 15 deletions
1
home.nix
1
home.nix
|
|
@ -37,6 +37,7 @@ in {
|
||||||
./modules/rofi.nix
|
./modules/rofi.nix
|
||||||
./modules/sxhkd.nix
|
./modules/sxhkd.nix
|
||||||
./modules/terminator.nix
|
./modules/terminator.nix
|
||||||
|
./modules/fzf.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
programs = {
|
programs = {
|
||||||
|
|
|
||||||
8
modules/fzf.nix
Normal file
8
modules/fzf.nix
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
{
|
||||||
|
programs.fzf = {
|
||||||
|
enable = true;
|
||||||
|
tmux.enableShellIntegration = true;
|
||||||
|
enableBashIntegration = true;
|
||||||
|
enableZshIntegration = true;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
@ -1,24 +1,37 @@
|
||||||
{ config, pkgs, lib, ... }:
|
{ config, pkgs, lib, ... }:
|
||||||
let
|
|
||||||
sxhkd = "${pkgs.sxhkd}/bin/sxhkd";
|
|
||||||
bspc = "${pkgs.bspwm}/bin/bspc";
|
|
||||||
xarg = "${pkgs.xarg}/bin/xargs";
|
|
||||||
nautilus = "${pkgs.gnome3.nautilus}/bin/nautilus";
|
|
||||||
pulseaudioCtl = "${pkgs.pulseaudio-ctl}/bin/pulseaudio-ctl";
|
|
||||||
playerctl = "${pkgs.playerctl}/bin/playerctl";
|
|
||||||
alacritty = "${pkgs.alacritty}/bin/alacritty";
|
|
||||||
terminator= "${pkgs.terminator}/bin/terminator";
|
|
||||||
rofi = "${pkgs.rofi}/bin/rofi";
|
|
||||||
bash = "${pkgs.bash}/bin/bash";
|
|
||||||
in
|
|
||||||
|
|
||||||
{
|
{
|
||||||
services.sxhkd = {
|
home.packages = with pkgs; [
|
||||||
enable = true;
|
bspwm
|
||||||
|
findutils
|
||||||
|
gnome3.nautilus
|
||||||
|
pulseaudio-ctl
|
||||||
|
playerctl
|
||||||
|
alacritty
|
||||||
|
terminator
|
||||||
|
rofi
|
||||||
|
bash
|
||||||
|
betterlockscreen
|
||||||
|
];
|
||||||
|
|
||||||
|
services.sxhkd = let
|
||||||
|
sxhkd = "${pkgs.sxhkd}/bin/sxhkd";
|
||||||
|
bspc = "${pkgs.bspwm}/bin/bspc";
|
||||||
|
xarg = "${pkgs.findutils}/bin/xargs";
|
||||||
|
nautilus = "${pkgs.gnome3.nautilus}/bin/nautilus";
|
||||||
|
pulseaudioCtl = "${pkgs.pulseaudio-ctl}/bin/pulseaudio-ctl";
|
||||||
|
playerctl = "${pkgs.playerctl}/bin/playerctl";
|
||||||
|
alacritty = "${pkgs.alacritty}/bin/alacritty";
|
||||||
|
terminator= "${pkgs.terminator}/bin/terminator";
|
||||||
|
rofi = "${pkgs.rofi}/bin/rofi";
|
||||||
|
bash = "${pkgs.bash}/bin/bash";
|
||||||
|
betterlockscreen = "${pkgs.betterlockscreen}/bin/betterlockscreen";
|
||||||
|
in {
|
||||||
|
enable = true;
|
||||||
keybindings = {
|
keybindings = {
|
||||||
"super + Return" = "${bash} -c ${alacritty} || ${terminator}";
|
"super + Return" = "${bash} -c ${alacritty} || ${terminator}";
|
||||||
"super + @space" = "${rofi} -show drun";
|
"super + @space" = "${rofi} -show drun";
|
||||||
"super + e" = "${nautilus} -w";
|
"super + e" = "${nautilus} -w";
|
||||||
|
"super + alt + m" = ''${betterlockscreen} -l -t "Welcome back $USER"'';
|
||||||
"super + Escape" = "pkill -USR1 -x sxhkd";
|
"super + Escape" = "pkill -USR1 -x sxhkd";
|
||||||
"super + alt + {q,r}" = "${bspc} {quit,wm -r}";
|
"super + alt + {q,r}" = "${bspc} {quit,wm -r}";
|
||||||
"super + {_,shift + }w" = "${bspc} node -{c,k}";
|
"super + {_,shift + }w" = "${bspc} node -{c,k}";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue