aaa
This commit is contained in:
parent
f9bebb334e
commit
07f82e9520
2
ChromiumApps/element
Executable file
2
ChromiumApps/element
Executable file
@ -0,0 +1,2 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
chromium --app=https://app.element.io
|
2
ChromiumApps/qobuz
Executable file
2
ChromiumApps/qobuz
Executable file
@ -0,0 +1,2 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
chromium --app=https://play.qobuz.com
|
2
ChromiumApps/tidal
Executable file
2
ChromiumApps/tidal
Executable file
@ -0,0 +1,2 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
chromium --app=https://listen.tidal.com
|
58
Misc/usbbench.sh
Executable file
58
Misc/usbbench.sh
Executable file
@ -0,0 +1,58 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Check if the device argument is provided
|
||||||
|
if [ -z "$1" ]; then
|
||||||
|
echo "Usage: $0 /dev/sda1"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Set the path to your USB mount point
|
||||||
|
USB_PATH="$1"
|
||||||
|
|
||||||
|
# Set different file sizes (in MB)
|
||||||
|
FILE_SIZES=(10 100 1000 10000)
|
||||||
|
|
||||||
|
# Set block size (1M block size for testing)
|
||||||
|
BLOCK_SIZE="1M"
|
||||||
|
|
||||||
|
# Set the number of iterations for each file size
|
||||||
|
ITERATIONS=3
|
||||||
|
|
||||||
|
# Start benchmarking
|
||||||
|
echo "Starting USB performance benchmark for device: $USB_PATH"
|
||||||
|
|
||||||
|
# Loop through the different file sizes
|
||||||
|
for SIZE in "${FILE_SIZES[@]}"; do
|
||||||
|
echo "-------------------------------------------"
|
||||||
|
echo "Testing with file size: $SIZE MB"
|
||||||
|
|
||||||
|
# Convert size from MB to bytes for dd
|
||||||
|
SIZE_IN_BYTES=$((SIZE * 1024 * 1024))
|
||||||
|
|
||||||
|
# Loop for the specified number of iterations
|
||||||
|
for i in $(seq 1 $ITERATIONS); do
|
||||||
|
echo "Iteration $i: Testing write speed..."
|
||||||
|
|
||||||
|
# Test write speed
|
||||||
|
WRITE_SPEED=$(sudo dd if=/dev/zero of="$USB_PATH/testfile" bs=$BLOCK_SIZE count=$SIZE oflag=direct 2>&1 | grep -o '[0-9\.]* MB/s' | tail -n 1)
|
||||||
|
|
||||||
|
echo "Iteration $i: Write speed = $WRITE_SPEED"
|
||||||
|
|
||||||
|
echo "Iteration $i: Testing read speed..."
|
||||||
|
|
||||||
|
# Test read speed
|
||||||
|
READ_SPEED=$(sudo dd if="$USB_PATH/testfile" of=/dev/null bs=$BLOCK_SIZE 2>&1 | grep -o '[0-9\.]* MB/s' | tail -n 1)
|
||||||
|
|
||||||
|
echo "Iteration $i: Read speed = $READ_SPEED"
|
||||||
|
echo "-------------------------------------------"
|
||||||
|
|
||||||
|
# Sleep for 1 second between iterations to prevent overload
|
||||||
|
sleep 1
|
||||||
|
done
|
||||||
|
|
||||||
|
# Clean up the test file after benchmarking
|
||||||
|
sudo rm -f "$USB_PATH/testfile"
|
||||||
|
done
|
||||||
|
|
||||||
|
echo "Benchmarking complete!"
|
||||||
|
|
40
ScreenShot/screengrab_
Executable file
40
ScreenShot/screengrab_
Executable file
@ -0,0 +1,40 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
SAVE_DIR="$HOME/Pictures/Screenshots"
|
||||||
|
|
||||||
|
mkdir -p "$SAVE_DIR"
|
||||||
|
|
||||||
|
FILENAME="$SAVE_DIR/screenshot_$(date +"%Y-%m-%d_%H-%M-%S").png"
|
||||||
|
|
||||||
|
capture_full_screen() {
|
||||||
|
grim "$FILENAME"
|
||||||
|
}
|
||||||
|
|
||||||
|
capture_selection() {
|
||||||
|
region=$(slurp)
|
||||||
|
grim -g "$region" "$FILENAME"
|
||||||
|
}
|
||||||
|
|
||||||
|
capture_window() {
|
||||||
|
window_geometry=$(swaymsg -t get_tree | jq -r '.. | select(.focused?) | .rect | "\(.x),\(.y) \(.width)x\(.height)"')
|
||||||
|
grim -g "$window_geometry" "$FILENAME"
|
||||||
|
}
|
||||||
|
|
||||||
|
case "$1" in
|
||||||
|
--full)
|
||||||
|
capture_full_screen
|
||||||
|
;;
|
||||||
|
--select)
|
||||||
|
capture_selection
|
||||||
|
;;
|
||||||
|
--window)
|
||||||
|
capture_window
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
echo "Invalid option. Usage: screengrab [--full|--select|--window]"
|
||||||
|
exit 1
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
wl-copy < "$FILENAME" && notify-send "Screengrab" "Screenshot copied to clipboard"
|
||||||
|
|
7
Sway/way.sh
Executable file
7
Sway/way.sh
Executable file
@ -0,0 +1,7 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Fix some wayland shite
|
||||||
|
|
||||||
|
export QT_QPA_PLATFORM=wayland
|
||||||
|
export SDL_VIDEODRIVER=wayland
|
||||||
|
export _JAVA_AWT_WM_NONREPARENTING=1
|
Loading…
Reference in New Issue
Block a user