a lot of tweaks

This commit is contained in:
Florian Schmitt 2024-11-27 15:38:26 +03:00
parent ff6a56b52b
commit 789b096077
9 changed files with 133 additions and 39 deletions

View file

@ -57,6 +57,7 @@ in
mpd
mpv
neofetch
nixd
unstable.neovim
ollama
pandoc

View file

@ -1,9 +1,8 @@
# Inject the right home-manager config for the machine.
{
config,
pkgs,
lib,
...
{ config
, pkgs
, lib
, ...
}:
let
# plasma-manager = pkgs.fetchFromGitHub {
@ -240,6 +239,7 @@ in
#tmux = "tmux -f ~/.config/tmux/tmux.conf attach || tmux -f ~/.config/tmux/tmux.conf new";
bunx = "bun --bun x";
g = "lazygit";
t = "/usr/bin/tmux-sessionizer";
kdenix = "nix run github:pjones/plasma-manager --extra-experimental-features nix-command --extra-experimental-features flakes > /home/mrflos/Developpements/nixos-config/modules/home-plasma.nix";
icat = "kitty +kitten icat";
nixedit = "vi /etc/nixos";
@ -344,21 +344,22 @@ in
# workspaces
# binds $mod + [shift +] {1..10} to [move to] workspace {1..10}
builtins.concatLists (
builtins.genList (
x:
let
ws =
let
c = (x + 1) / 10;
in
builtins.toString (x + 1 - (c * 10));
in
[
"$mod, ${ws}, workspace, ${toString (x + 1)}"
"$mod SHIFT, ${ws}, movetoworkspace, ${toString (x + 1)}"
"$mod ALT, ${ws}, movetoworkspacesilent, ${toString (x + 1)}" # Move window silently to workspace Super + Alt + [0-9]
]
) 10
builtins.genList
(
x:
let
ws =
let
c = (x + 1) / 10;
in
builtins.toString (x + 1 - (c * 10));
in
[
"$mod, ${ws}, workspace, ${toString (x + 1)}"
"$mod SHIFT, ${ws}, movetoworkspace, ${toString (x + 1)}"
"$mod ALT, ${ws}, movetoworkspacesilent, ${toString (x + 1)}" # Move window silently to workspace Super + Alt + [0-9]
]
) 10
)
);