this shoud work ig fixed doas paus man sit
This commit is contained in:
parent
426a0134c4
commit
74581be9ce
|
@ -5,7 +5,6 @@
|
|||
userName = "joygnu";
|
||||
extraConfig = {
|
||||
init.defaultBranch = "main";
|
||||
safe.directory = "/home/joy/nix/.git";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -2,5 +2,6 @@
|
|||
users.users.joy = {
|
||||
isNormalUser = true;
|
||||
description = "joy";
|
||||
extraGroups = ["wheel"];
|
||||
};
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 "\
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
Loading…
Reference in a new issue