Nix fmt rfc style (more or less)
This commit is contained in:
parent
e7496c447a
commit
515f098644
146 changed files with 2607 additions and 906 deletions
|
|
@ -1,4 +1,5 @@
|
|||
{ pkgs, lib, ... }: {
|
||||
{ pkgs, lib, ... }:
|
||||
{
|
||||
imports = [
|
||||
# ./alacritty.nix
|
||||
./kitty.nix
|
||||
|
|
@ -11,7 +12,11 @@
|
|||
home.packages = builtins.attrValues {
|
||||
inherit (pkgs)
|
||||
bc# required by bsp-layout
|
||||
bsp-layout clipedit lockscreen terminator;
|
||||
bsp-layout
|
||||
clipedit
|
||||
lockscreen
|
||||
terminator
|
||||
;
|
||||
};
|
||||
services.sxhkd =
|
||||
let
|
||||
|
|
@ -49,7 +54,12 @@
|
|||
comm -23 <(bspc query -N | sort) <(bspc query -m primary -N | sort) | while read n; do bspc node $n -m primary; done
|
||||
'';
|
||||
notifyVolume = pkgs.writeShellScript "notifyVolume" ''
|
||||
PATH=$PATH:"${lib.makeBinPath [ pkgs.coreutils pkgs.pamixer ]}"
|
||||
PATH=$PATH:"${
|
||||
lib.makeBinPath [
|
||||
pkgs.coreutils
|
||||
pkgs.pamixer
|
||||
]
|
||||
}"
|
||||
sink=`pamixer --get-default-sink | tail -n 1| sed -E 's/.+"(.+)"$/\1/'`
|
||||
muted=`pamixer --get-mute`
|
||||
volume=`pamixer --get-volume`
|
||||
|
|
@ -64,7 +74,12 @@
|
|||
${notify} -r 2 -h "int:value:$level" "Luminosità $level"
|
||||
'';
|
||||
powermenu = pkgs.writeShellScript "powermenu" ''
|
||||
PATH=$PATH:"${lib.makeBinPath [ pkgs.rofi pkgs.rofi-power-menu ]}"
|
||||
PATH=$PATH:"${
|
||||
lib.makeBinPath [
|
||||
pkgs.rofi
|
||||
pkgs.rofi-power-menu
|
||||
]
|
||||
}"
|
||||
rofi -show menu -modi "menu:rofi-power-menu --choices=shutdown/reboot/hibernate/logout"
|
||||
'';
|
||||
in
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue