Add Zoxide, change to Shotman, simplify xdg folders, enable libvirt on Jupiter, fix networking and such

This commit is contained in:
Bun 2025-05-05 16:58:24 -04:00
parent d9e30cd69e
commit 26350d1de4
14 changed files with 28 additions and 56 deletions

View file

@ -1,7 +1,6 @@
{ config, lib, pkgs, ... }:
{
imports = [
./grimsnap
./kanshi
./mako
./swaylock

View file

@ -1,33 +0,0 @@
{ config, lib, pkgs, ... }:
{
home.packages = with pkgs; lib.mkIf config.home.desktop.enable [
(pkgs.writeScriptBin "grimsnap" ''
# Freeze the screen using hyprpicker
hyprpicker -r -z &
HYPRPICKER_PID=$!
sleep 0.1
# Select area
GEOM=$(slurp -w 3 -c ${config.look.colors.prime} -B 00000066 -b 00000099)
# Check selection is canceled
if [ -z "$GEOM" ]; then
kill $HYPRPICKER_PID 2>/dev/null
notify-send -t 3000 -a grim "Error" "No area selected."
exit 1
fi
# Define screenshot destination
FILE="''${XDG_PICTURES_DIR:-$HOME/Pictures}/Screenshots/$(date -Ins).png"
# Save and edit screenshot
grim -g "$GEOM" "$FILE"
# Notify user that the screenshot is saved
notify-send -a grim "Screenshot" "Area saved to $FILE" -i "$FILE"
# Kill picker after selection
kill %1 2>/dev/null
'')
];
}

View file

@ -60,8 +60,9 @@
"${primeMod}+Ctrl+n" = ''exec makoctl dismiss -a'';
# Screenshots
"${secMod}+f" = ''exec grimsnap'';
"${secMod}+Shift+f" = ''exec shot-sway --screen'';
"${secMod}+f" = ''exec ${pkgs.shotman}/bin/shotman --copy --capture region'';
"${secMod}+Shift+f" = ''exec ${pkgs.shotman}/bin/shotman --copy --capture window'';
"${secMod}+Ctrl+f" = ''exec ${pkgs.shotman}/bin/shotman --copy --capture output'';
# Display brightness
"${primeMod}+equal" = ''exec brightnessctl s 5%+'';