FZF + better sxhkd

This commit is contained in:
Filippo Berto 2021-05-13 00:00:26 +02:00
parent 21ed795cfd
commit cbd4278c77
3 changed files with 37 additions and 15 deletions

View file

@ -37,6 +37,7 @@ in {
./modules/rofi.nix
./modules/sxhkd.nix
./modules/terminator.nix
./modules/fzf.nix
];
programs = {

8
modules/fzf.nix Normal file
View file

@ -0,0 +1,8 @@
{
programs.fzf = {
enable = true;
tmux.enableShellIntegration = true;
enableBashIntegration = true;
enableZshIntegration = true;
};
}

View file

@ -1,8 +1,22 @@
{ config, pkgs, lib, ... }:
let
{
home.packages = with pkgs; [
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.xarg}/bin/xargs";
xarg = "${pkgs.findutils}/bin/xargs";
nautilus = "${pkgs.gnome3.nautilus}/bin/nautilus";
pulseaudioCtl = "${pkgs.pulseaudio-ctl}/bin/pulseaudio-ctl";
playerctl = "${pkgs.playerctl}/bin/playerctl";
@ -10,15 +24,14 @@ let
terminator= "${pkgs.terminator}/bin/terminator";
rofi = "${pkgs.rofi}/bin/rofi";
bash = "${pkgs.bash}/bin/bash";
in
{
services.sxhkd = {
betterlockscreen = "${pkgs.betterlockscreen}/bin/betterlockscreen";
in {
enable = true;
keybindings = {
"super + Return" = "${bash} -c ${alacritty} || ${terminator}";
"super + @space" = "${rofi} -show drun";
"super + e" = "${nautilus} -w";
"super + alt + m" = ''${betterlockscreen} -l -t "Welcome back $USER"'';
"super + Escape" = "pkill -USR1 -x sxhkd";
"super + alt + {q,r}" = "${bspc} {quit,wm -r}";
"super + {_,shift + }w" = "${bspc} node -{c,k}";