diff --git a/modules/programs/home/git/default.nix b/modules/programs/home/git/default.nix index f687f01..95f95a4 100644 --- a/modules/programs/home/git/default.nix +++ b/modules/programs/home/git/default.nix @@ -5,7 +5,6 @@ userName = "joygnu"; extraConfig = { init.defaultBranch = "main"; - safe.directory = "/home/joy/nix/.git"; }; }; } diff --git a/modules/system/user/default.nix b/modules/system/user/default.nix index 58bf155..77b429e 100644 --- a/modules/system/user/default.nix +++ b/modules/system/user/default.nix @@ -2,5 +2,6 @@ users.users.joy = { isNormalUser = true; description = "joy"; + extraGroups = ["wheel"]; }; } diff --git a/modules/wm/hyprland/scripts/cmus.sh b/modules/wm/hyprland/scripts/cmus.sh index af283e1..d3ef502 100755 --- a/modules/wm/hyprland/scripts/cmus.sh +++ b/modules/wm/hyprland/scripts/cmus.sh @@ -1,11 +1,8 @@ #!/bin/sh -# Check if a tmux session named 'cmus' exists if tmux has-session -t cmus 2>/dev/null; then - # Attach to the existing tmux session alacritty -e tmux attach-session -t cmus else - # Create a new tmux session named 'cmus' and run cmus tmux new-session -d -s cmus cmus alacritty -e tmux attach-session -t cmus fi diff --git a/modules/wm/hyprland/scripts/gamemode.sh b/modules/wm/hyprland/scripts/gamemode.sh index b89b5c4..2809aae 100755 --- a/modules/wm/hyprland/scripts/gamemode.sh +++ b/modules/wm/hyprland/scripts/gamemode.sh @@ -1,4 +1,4 @@ -#!/usr/bin/env sh +#!bin/sh HYPRGAMEMODE=$(hyprctl getoption animations:enabled | awk 'NR==1{print $2}') if [ "$HYPRGAMEMODE" = 1 ] ; then hyprctl --batch "\ diff --git a/modules/wm/hyprland/scripts/mpv.sh b/modules/wm/hyprland/scripts/mpv.sh index cb1c9a1..0146d9b 100755 --- a/modules/wm/hyprland/scripts/mpv.sh +++ b/modules/wm/hyprland/scripts/mpv.sh @@ -1,18 +1,13 @@ #!/bin/sh -# Get the URL from the clipboard link=$(wl-paste) -# Check if the link is not empty if [ -n "$link" ]; then - # Notify the user that the link is about to be opened notify-send "Opening Link" "$link" - # Try to open the link with mpv and capture any errors error_message=$(mpv "$link" 2>&1) if [ $? -ne 0 ]; then - # If mpv fails, notify the user with the error message notify-send "Error" "Failed to open the link with mpv:\n$error_message" fi else diff --git a/modules/wm/hyprland/scripts/vm.sh b/modules/wm/hyprland/scripts/vm.sh deleted file mode 100755 index f52367d..0000000 --- a/modules/wm/hyprland/scripts/vm.sh +++ /dev/null @@ -1,18 +0,0 @@ -#!/bin/sh - -VM_NAME="Windows" - -vm_state=$(virsh --connect qemu:///system domstate "$VM_NAME") - -if [ "$vm_state" != "running" ]; then - virsh --connect qemu:///system start "$VM_NAME" - sleep 5 -fi - -VM_IP=$(virsh --connect qemu:///system domifaddr "$VM_NAME" | grep -oP '(\d+\.){3}\d+' | head -1) - -if [ -z "$VM_IP" ]; then - exit 1 -fi - -xfreerdp -grab-keyboard /v:"$VM_IP" /u:joy /p:1 /size:100% /dynamic-resolution /gfx-h264:avc444 +gfx-progressive /sec:nla /bpp:32 /rfx /rfx-mode:video -bitmap-cache -offscreen-cache -glyph-cache