From 5b63cb778a6ad0902bf40293c02c7a12de3e3c7d Mon Sep 17 00:00:00 2001 From: bh Date: Mon, 23 Mar 2026 00:16:51 +0800 Subject: Change Scripts to scripts --- Scripts/Scripts/clipboard | 29 ----------------------------- Scripts/Scripts/mute | 14 -------------- Scripts/Scripts/screenshot | 15 --------------- Scripts/Scripts/tt | 20 -------------------- Scripts/Scripts/tt.elf | Bin 4136592 -> 0 bytes 5 files changed, 78 deletions(-) delete mode 100755 Scripts/Scripts/clipboard delete mode 100755 Scripts/Scripts/mute delete mode 100755 Scripts/Scripts/screenshot delete mode 100755 Scripts/Scripts/tt delete mode 100755 Scripts/Scripts/tt.elf (limited to 'Scripts') diff --git a/Scripts/Scripts/clipboard b/Scripts/Scripts/clipboard deleted file mode 100755 index 93789a0..0000000 --- a/Scripts/Scripts/clipboard +++ /dev/null @@ -1,29 +0,0 @@ -#!/usr/bin/env bash - -clipboard_mode() { - if [ "$ROFI_RETV" = "0" ]; then - cliphist list | while IFS= read -r line; do - id="${line%% *}" - content="${line#* }" - - if [[ "$content" == *"[[ binary data"* ]]; then - printf '󰋩 IMAGE: %s\0info\x1f%s\n' "$id" "$id" - else - printf '%s\0info\x1f%s\n' "$content" "$id" - fi - done - else - cliphist decode "$ROFI_INFO" | wl-copy - exit 0 - fi -} - -export -f clipboard_mode - -if [ -z "$ROFI_RETV" ]; then - rofi -modi "clipboard:$0" \ - -show clipboard \ - -theme ~/.config/rofi/clipboard.rasi -else - clipboard_mode "$@" -fi diff --git a/Scripts/Scripts/mute b/Scripts/Scripts/mute deleted file mode 100755 index ad61d7d..0000000 --- a/Scripts/Scripts/mute +++ /dev/null @@ -1,14 +0,0 @@ -#!/usr/bin/env bash - -# Toggle mute -pactl set-sink-mute @DEFAULT_SINK@ toggle - -# Get mute status -MUTE=$(pactl get-sink-mute @DEFAULT_SINK@ | awk '{print $2}') - -if [ "$MUTE" = "yes" ]; then - dunstify "󰖁 Volume: Muted" -r 2593 -t 1000 -else - VOLUME=$(pactl get-sink-volume @DEFAULT_SINK@ | grep -Po "\d+%" | head -1) - dunstify " Volume: $VOLUME" -h int:value:${VOLUME%\%} -r 2593 -t 1000 -fi diff --git a/Scripts/Scripts/screenshot b/Scripts/Scripts/screenshot deleted file mode 100755 index 5ed5b7d..0000000 --- a/Scripts/Scripts/screenshot +++ /dev/null @@ -1,15 +0,0 @@ -#!/bin/bash - -mkdir -p ~/Pictures/Screenshots - -FILE=~/Pictures/Screenshots/$(date '+%Y-%m-%d_%H-%M-%S').png - -if [[ "$1" == "snip" ]]; then - grim -g "$(slurp)" "$FILE" || exit 1 -else - grim "$FILE" || exit 1 -fi - -wl-copy --type image/png < "$FILE" - -notify-send "Screenshot Taken" "Saved to $FILE" -i "$FILE" diff --git a/Scripts/Scripts/tt b/Scripts/Scripts/tt deleted file mode 100755 index 48824a3..0000000 --- a/Scripts/Scripts/tt +++ /dev/null @@ -1,20 +0,0 @@ -#!/usr/bin/env bash - -# How much to zoom in -ZOOM="+12" - -# Store current font size -# ORIG_SIZE=$(kitty @ get-font-size) - -# Zoom in -kitty @ set-font-size "$ZOOM" - -# Restore on exit -restore_font() { - # kitty @ set-font-size "$ORIG_SIZE" - kitty @ set-font-size 10.5 -} -trap restore_font EXIT - -# Run tt -~/Zsh/tt.elf -notheme diff --git a/Scripts/Scripts/tt.elf b/Scripts/Scripts/tt.elf deleted file mode 100755 index 8c85e9a..0000000 Binary files a/Scripts/Scripts/tt.elf and /dev/null differ -- cgit v1.2.3