Add and replace some hotkeys and apps and such

This commit is contained in:
Jimbo 2024-12-25 01:42:55 -05:00
parent c13f95df8f
commit e2b093a0bb
7 changed files with 73 additions and 87 deletions

View file

@ -1,9 +1,8 @@
{ pkgs, ... }:
{
imports = [
./grimedit
./grimsnap
./mako
./swappy
./swaylock
./waybar
./wlpicker

View file

@ -1,7 +1,7 @@
{ pkgs, config, ... }:
{
home.packages = with pkgs; [
(pkgs.writeScriptBin "grimedit" ''
(pkgs.writeScriptBin "grimsnap" ''
# Freeze the screen using hyprpicker
hyprpicker -r -z &
HYPRPICKER_PID=$!
@ -22,7 +22,6 @@
# Save and edit screenshot
grim -g "$GEOM" "$FILE"
swappy -f $FILE &
# Notify user that the screenshot is saved
notify-send -a grim "Screenshot" "Area saved to $FILE" -i "$FILE"

View file

@ -1,11 +0,0 @@
{ pkgs, ... }:
{
home = {
packages = with pkgs; [ swappy ];
file.".config/swappy/config".text = ''
[Default]
early_exit=true
save_dir=$HOME/Pictures/Screenshots
'';
};
}