feat: many changes
This commit is contained in:
parent
8cd75009d9
commit
3d48e35de5
14 changed files with 304 additions and 71 deletions
|
|
@ -1,13 +1,21 @@
|
|||
{ pkgs, ... }: {
|
||||
{ inputs, pkgs, ... }:
|
||||
let
|
||||
claude-code = inputs.claude-code.packages.${pkgs.system}.default;
|
||||
in {
|
||||
home.packages = with pkgs; [
|
||||
firefox
|
||||
discord
|
||||
stremio-linux-shell
|
||||
obsidian
|
||||
kitty
|
||||
qbittorrent
|
||||
claude-code
|
||||
mpv
|
||||
];
|
||||
|
||||
home.sessionVariables = {
|
||||
TERMINAL = "wezterm";
|
||||
XDG_TERMINAL_EMULATOR = "wezterm";
|
||||
TERMINAL = "kitty";
|
||||
XDG_TERMINAL_EMULATOR = "kitty";
|
||||
};
|
||||
|
||||
programs.zsh = {
|
||||
|
|
|
|||
|
|
@ -10,6 +10,37 @@
|
|||
QT_WAYLAND_DISABLE_WINDOWDECORATION = "1";
|
||||
XDG_MENU_PREFIX = "plasma-";
|
||||
};
|
||||
|
||||
home.packages = with pkgs; [
|
||||
grim
|
||||
slurp
|
||||
satty
|
||||
wl-clipboard
|
||||
];
|
||||
|
||||
home.file.".local/bin/screenshot" = {
|
||||
executable = true;
|
||||
text = ''
|
||||
#!/usr/bin/env bash
|
||||
MODE="''${1:-region}"
|
||||
SAVE_DIR="$HOME/Images/screenshots"
|
||||
mkdir -p "$SAVE_DIR"
|
||||
FILENAME="$SAVE_DIR/$(date '+%Y%m%d-%H%M%S').png"
|
||||
|
||||
case "$MODE" in
|
||||
region)
|
||||
grim -g "$(slurp)" -t ppm - | satty --filename - --output-filename "$FILENAME" --copy-command wl-copy --early-exit
|
||||
;;
|
||||
screen)
|
||||
grim -t ppm - | satty --filename - --output-filename "$FILENAME" --copy-command wl-copy --early-exit
|
||||
;;
|
||||
monitor)
|
||||
grim -o "$(niri msg focused-output | grep 'Output' | awk '{print $2}')" -t ppm - \
|
||||
| satty --filename - --output-filename "$FILENAME" --copy-command wl-copy --early-exit
|
||||
;;
|
||||
esac
|
||||
'';
|
||||
};
|
||||
|
||||
xdg.configFile."niri/config.kdl".text = ''
|
||||
// Modificadores: Mod = Super (tecla Windows)
|
||||
|
|
@ -40,7 +71,7 @@
|
|||
|
||||
binds {
|
||||
// Aplicativos
|
||||
Mod+Return { spawn "wezterm"; }
|
||||
Mod+Return { spawn "kitty"; }
|
||||
Mod+D { spawn "fuzzel"; }
|
||||
Mod+Q { close-window; }
|
||||
|
||||
|
|
@ -78,8 +109,9 @@
|
|||
XF86AudioMute { spawn "wpctl" "set-mute" "@DEFAULT_AUDIO_SINK@" "toggle"; }
|
||||
|
||||
// Screenshot
|
||||
Print { screenshot; }
|
||||
Mod+Print { screenshot-screen; }
|
||||
Mod+Shift+S { spawn "bash" "-c" "$HOME/.local/bin/screenshot region"; }
|
||||
Mod+Shift+Alt+S { spawn "bash" "-c" "$HOME/.local/bin/screenshot screen"; }
|
||||
Mod+Shift+Ctrl+S { spawn "bash" "-c" "$HOME/.local/bin/screenshot monitor"; }
|
||||
}
|
||||
'';
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,23 +0,0 @@
|
|||
{ pkgs, ... }: {
|
||||
programs.wezterm = {
|
||||
enable = true;
|
||||
package = pkgs.wezterm;
|
||||
extraConfig = ''
|
||||
local config = wezterm.config_builder()
|
||||
|
||||
config.front_end = "OpenGL"
|
||||
config.enable_tab_bar = false
|
||||
config.max_fps = 60
|
||||
config.animation_fps = 60
|
||||
config.enable_wayland = true
|
||||
|
||||
return config
|
||||
'';
|
||||
};
|
||||
|
||||
# I'm not sure why, but this removes the annoying input
|
||||
# delay from wezterm.
|
||||
home.sessionVariables = {
|
||||
__GL_SYNC_TO_VBLANK = "0";
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue