feat: a lot of stuff
This commit is contained in:
parent
e6a98be608
commit
2a9cfe768f
11 changed files with 70 additions and 18 deletions
|
|
@ -5,16 +5,35 @@
|
|||
{
|
||||
matches = [
|
||||
{
|
||||
node.nick = "Scarlett 2i2 USB"
|
||||
node.name = "~alsa_input.pci.*"
|
||||
cpu.vm.name = "~.*"
|
||||
}
|
||||
{
|
||||
node.name = "~alsa_output.pci.*"
|
||||
cpu.vm.name = "~.*"
|
||||
}
|
||||
]
|
||||
actions = {
|
||||
update-props = {
|
||||
audio.rate = 44100
|
||||
api.acp.probe-rate = 44100
|
||||
api.alsa.period-size = 2048
|
||||
api.alsa.headroom = 2048
|
||||
session.suspend-timeout-seconds = 0
|
||||
}
|
||||
}
|
||||
}
|
||||
# {
|
||||
# matches = [
|
||||
# {
|
||||
# node.nick = "Scarlett 2i2 USB"
|
||||
# }
|
||||
# ]
|
||||
# actions = {
|
||||
# update-props = {
|
||||
# audio.rate = 48000
|
||||
# api.acp.probe-rate = 48000
|
||||
# }
|
||||
# }
|
||||
# }
|
||||
]
|
||||
'';
|
||||
};
|
||||
|
|
|
|||
|
|
@ -36,6 +36,7 @@ in
|
|||
libsForQt5.kdeconnect-kde # sync phone and pc
|
||||
system-config-printer # printer manager
|
||||
gnome3.adwaita-icon-theme
|
||||
maim
|
||||
];
|
||||
|
||||
xsession.windowManager.i3 = {
|
||||
|
|
@ -226,6 +227,9 @@ in
|
|||
"XF86AudioPlay" = "exec ${pkgs.playerctl}/bin/playerctl play-pause";
|
||||
"XF86AudioPause" = "exec ${pkgs.playerctl}/bin/playerctl play-pause";
|
||||
|
||||
# Screenshot
|
||||
"Print" = "exec ${pkgs.maim}/bin/maim --select | xclip -selection clipboard -t image/png";
|
||||
|
||||
# Programs
|
||||
"${cfg.modifier}+Shift+v" = "exec ${pkgs.pavucontrol}/bin/pavucontrol";
|
||||
"${cfg.modifier}+Shift+b" = "exec ${pkgs.blueman}/bin/blueman-manager";
|
||||
|
|
|
|||
|
|
@ -9,12 +9,12 @@
|
|||
|
||||
home.packages = with pkgs; [
|
||||
tree-sitter # parser generator tool and an incremental parsing library
|
||||
lua-language-server
|
||||
clang-tools
|
||||
rust-analyzer
|
||||
rustfmt
|
||||
gopls
|
||||
nixd
|
||||
lua-language-server # language server that offers lua language support
|
||||
clang-tools # standalone command line tools for c++ development
|
||||
rust-analyzer # modular compiler frontend for the rust language
|
||||
rustfmt # tool for formatting rust code according to style guidelines
|
||||
gopls # official language server for the go language
|
||||
nixd # nix language server
|
||||
nodePackages.pyright # type checker for the python language
|
||||
ruff # an extremely fast python linter
|
||||
black # uncompromising python code formatter
|
||||
|
|
@ -27,6 +27,9 @@
|
|||
texlab # implementation of the language server protocol for latex
|
||||
yamlfmt # extensible command line tool or library to format yaml files
|
||||
yamlfix # python yaml formatter that keeps your comments
|
||||
marksman # language server for markdown
|
||||
markdownlint-cli2 # fast, flexible, configuration-based command-line interface for linting markdown/commonmark files with the markdownlint library
|
||||
mdformat # commonmark compliant markdown formatter
|
||||
];
|
||||
|
||||
programs.neovim = {
|
||||
|
|
|
|||
|
|
@ -2,5 +2,5 @@
|
|||
home.packages = [
|
||||
(import ./git-clone-list.nix { inherit pkgs; })
|
||||
(import ./nix-update.nix { inherit pkgs nixosConfig; })
|
||||
];
|
||||
] ++ (import ./pomodoro.nix { inherit pkgs; });
|
||||
}
|
||||
|
|
|
|||
20
users/gandalf/modules/scripts/pomodoro.nix
Normal file
20
users/gandalf/modules/scripts/pomodoro.nix
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
{ pkgs }:
|
||||
let
|
||||
pootis = ./pootis.m4a;
|
||||
in
|
||||
[
|
||||
(pkgs.writeShellScriptBin
|
||||
"pomostart"
|
||||
''
|
||||
clear
|
||||
${pkgs.openpomodoro-cli}/bin/openpomodoro-cli start --wait $@
|
||||
while ${pkgs.mpv}/bin/mpv ${pootis} > /dev/null 2>&1; do :; done
|
||||
'')
|
||||
(pkgs.writeShellScriptBin
|
||||
"pomobreak"
|
||||
''
|
||||
clear
|
||||
${pkgs.openpomodoro-cli}/bin/openpomodoro-cli break --wait $@
|
||||
while ${pkgs.mpv}/bin/mpv ${pootis} > /dev/null 2>&1; do :; done
|
||||
'')
|
||||
]
|
||||
BIN
users/gandalf/modules/scripts/pootis.m4a
Normal file
BIN
users/gandalf/modules/scripts/pootis.m4a
Normal file
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue