this shoud work ig fixed doas paus man sit

This commit is contained in:
joy 2024-10-17 21:19:16 +02:00
parent 426a0134c4
commit 74581be9ce
6 changed files with 2 additions and 28 deletions

View file

@ -5,7 +5,6 @@
userName = "joygnu"; userName = "joygnu";
extraConfig = { extraConfig = {
init.defaultBranch = "main"; init.defaultBranch = "main";
safe.directory = "/home/joy/nix/.git";
}; };
}; };
} }

View file

@ -2,5 +2,6 @@
users.users.joy = { users.users.joy = {
isNormalUser = true; isNormalUser = true;
description = "joy"; description = "joy";
extraGroups = ["wheel"];
}; };
} }

View file

@ -1,11 +1,8 @@
#!/bin/sh #!/bin/sh
# Check if a tmux session named 'cmus' exists
if tmux has-session -t cmus 2>/dev/null; then if tmux has-session -t cmus 2>/dev/null; then
# Attach to the existing tmux session
alacritty -e tmux attach-session -t cmus alacritty -e tmux attach-session -t cmus
else else
# Create a new tmux session named 'cmus' and run cmus
tmux new-session -d -s cmus cmus tmux new-session -d -s cmus cmus
alacritty -e tmux attach-session -t cmus alacritty -e tmux attach-session -t cmus
fi fi

View file

@ -1,4 +1,4 @@
#!/usr/bin/env sh #!bin/sh
HYPRGAMEMODE=$(hyprctl getoption animations:enabled | awk 'NR==1{print $2}') HYPRGAMEMODE=$(hyprctl getoption animations:enabled | awk 'NR==1{print $2}')
if [ "$HYPRGAMEMODE" = 1 ] ; then if [ "$HYPRGAMEMODE" = 1 ] ; then
hyprctl --batch "\ hyprctl --batch "\

View file

@ -1,18 +1,13 @@
#!/bin/sh #!/bin/sh
# Get the URL from the clipboard
link=$(wl-paste) link=$(wl-paste)
# Check if the link is not empty
if [ -n "$link" ]; then if [ -n "$link" ]; then
# Notify the user that the link is about to be opened
notify-send "Opening Link" "$link" notify-send "Opening Link" "$link"
# Try to open the link with mpv and capture any errors
error_message=$(mpv "$link" 2>&1) error_message=$(mpv "$link" 2>&1)
if [ $? -ne 0 ]; then 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" notify-send "Error" "Failed to open the link with mpv:\n$error_message"
fi fi
else else

View file

@ -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