From b3185aa5c349b37acddba40663c17156522bda00 Mon Sep 17 00:00:00 2001 From: joygnu Date: Mon, 5 Aug 2024 21:03:25 +0200 Subject: [PATCH] update --- home/hyprland/default.nix | 2 +- home/hyprland/screen.sh | 3 +++ home/zsh/default.nix | 4 ++-- home/zsh/desktop-laptop.sh | 2 +- home/zsh/push.sh | 2 +- 5 files changed, 8 insertions(+), 5 deletions(-) diff --git a/home/hyprland/default.nix b/home/hyprland/default.nix index 29ec471..397ef5f 100644 --- a/home/hyprland/default.nix +++ b/home/hyprland/default.nix @@ -69,7 +69,7 @@ "$mod, A, exec, rofi -show drun" "$mod, F, exec, freetube" "$mod, C, exec, hyprpicker -a" - "$mod+Shift, W, exec, bash ~/nix/home/hyprland/vm.sh" + "$mod+Shift, W, exec, sh ~/nix/home/hyprland/vm.sh" "$mod+Shift, Z, exec, grim - | swappy -f -" "$mod, Z, exec, sh ~/nix/home/hyprland/screen.sh" "$mod, V, exec, cliphist list | rofi -dmenu | cliphist decode | wl-copy" diff --git a/home/hyprland/screen.sh b/home/hyprland/screen.sh index 5e4a0be..d705daf 100755 --- a/home/hyprland/screen.sh +++ b/home/hyprland/screen.sh @@ -1 +1,4 @@ +#!/bin/sh + grim -g "$(slurp)" - | swappy -f - + diff --git a/home/zsh/default.nix b/home/zsh/default.nix index 9175101..7a3d419 100644 --- a/home/zsh/default.nix +++ b/home/zsh/default.nix @@ -14,10 +14,10 @@ v = "hx"; cat = "bat"; ls = "${pkgs.eza}/bin/eza --icons -a --group-directories-first"; - pu = "bash ~/nix/home/zsh/push.sh"; + pu = "sh ~/nix/home/zsh/push.sh"; fr = "sudo systemctl reboot --firmware"; ser = "ssh root@joygnu.org"; - rb = "bash ~/nix/home/zsh/desktop-laptop.sh"; + rb = "sh ~/nix/home/zsh/desktop-laptop.sh"; up = "sudo nix flake update ~/nix"; del = "sudo nix-collect-garbage -d"; hy = "hx ~/nix/home/hyprland/default.nix"; diff --git a/home/zsh/desktop-laptop.sh b/home/zsh/desktop-laptop.sh index 153c331..aca5216 100755 --- a/home/zsh/desktop-laptop.sh +++ b/home/zsh/desktop-laptop.sh @@ -1,4 +1,4 @@ -#!/bin/sw +#!/bin/sh hostname=$(hostname) diff --git a/home/zsh/push.sh b/home/zsh/push.sh index 49d581c..769c35d 100755 --- a/home/zsh/push.sh +++ b/home/zsh/push.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh # Function to push to all remotes push_to_all_remotes() {