From b1d97ce814723b85a35448fe3b923270d0829d73 Mon Sep 17 00:00:00 2001 From: Viyurz Date: Tue, 30 Jul 2024 13:16:36 +0200 Subject: [PATCH] Remove unused scripts. --- .config/hypr/hyprland.d/bindings.conf | 4 ---- .config/hypr/hyprland.d/exec.conf | 3 --- .scripts/foobar2000.sh | 25 --------------------- .scripts/i3lock.sh | 32 --------------------------- .scripts/kill-wine-explorer.sh | 6 ----- .scripts/mpv-yt-playlists.sh | 15 ------------- 6 files changed, 85 deletions(-) delete mode 100755 .scripts/foobar2000.sh delete mode 100755 .scripts/i3lock.sh delete mode 100755 .scripts/kill-wine-explorer.sh delete mode 100755 .scripts/mpv-yt-playlists.sh diff --git a/.config/hypr/hyprland.d/bindings.conf b/.config/hypr/hyprland.d/bindings.conf index 11df802..e561c7a 100644 --- a/.config/hypr/hyprland.d/bindings.conf +++ b/.config/hypr/hyprland.d/bindings.conf @@ -79,10 +79,6 @@ bindl = , XF86AudioPlay, exec, playerctl play-pause bindl = , XF86AudioNext, exec, playerctl next bindl = , XF86AudioPrev, exec, playerctl previous -# Foobar2000 -bind = CTRL, up, exec, $HOME/.scripts/foobar2000.sh -vu -bind = CTRL, down, exec, $HOME/.scripts/foobar2000.sh -vd - # Theme bind = $mainMod, W, exec, $HOME/.scripts/theme-changer.sh album sfw bind = $mainMod SHIFT, W, exec, $HOME/.scripts/theme-changer.sh album hypr diff --git a/.config/hypr/hyprland.d/exec.conf b/.config/hypr/hyprland.d/exec.conf index 6d1e319..14f3083 100644 --- a/.config/hypr/hyprland.d/exec.conf +++ b/.config/hypr/hyprland.d/exec.conf @@ -41,6 +41,3 @@ exec-once = udiskie # XWayland exec-once = xprop -root -f _XWAYLAND_GLOBAL_OUTPUT_SCALE 32c -set _XWAYLAND_GLOBAL_OUTPUT_SCALE 2 - -# Prevent hidden Wine System Tray window from keeping workspace existing -#exec-once = $HOME/.scripts/kill-wine-explorer.sh diff --git a/.scripts/foobar2000.sh b/.scripts/foobar2000.sh deleted file mode 100755 index 08e307c..0000000 --- a/.scripts/foobar2000.sh +++ /dev/null @@ -1,25 +0,0 @@ -#!/bin/sh -# Required: foo_runcmd - -export WINEPREFIX="$HOME/.local/share/wineprefixes/foobar2000" -foobar2000_cmd="$HOME/.foobar2000/foobar2000.exe" - - - -function foo_runcmd { - if pgrep foobar2000.exe &> /dev/null; then - wine "$foobar2000_cmd" "${@}" &> /dev/null - fi -} - - - -case "$1" in - -vu|volume-up) - foo_runcmd '/runcmd=Playback/Volume/Up';; - -vd|volume-down) - foo_runcmd '/runcmd=Playback/Volume/Down';; - *) - echo "Invalid option." - exit 1;; -esac diff --git a/.scripts/i3lock.sh b/.scripts/i3lock.sh deleted file mode 100755 index 19c99e8..0000000 --- a/.scripts/i3lock.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/bin/sh - -source "$HOME/.cache/colors.sh" - -options=( - --insidever-color=#00000000 - --ringver-color=$good - --insidewrong-color=#00000000 - --ringwrong-color=$bad - --inside-color=00000000 - --ring-color=$accent1 - --line-color=00000000 - --separator-color=00000000 - --verif-color=$foreground - --wrong-color=$foreground - --time-color=$foreground - --date-color=$foreground - --layout-color=$foreground - --keyhl-color=$foreground - --bshl-color=$disabled - --screen 1 - --clock - --indicator - --time-str="%H:%M:%S" - --date-str="%A, %Y-%m-%d" - --keylayout 1 - --image "$HOME/.cache/wallpaper-blurred.jpg" -) - -i3lock "${options[@]}" - -sw -r diff --git a/.scripts/kill-wine-explorer.sh b/.scripts/kill-wine-explorer.sh deleted file mode 100755 index 009d211..0000000 --- a/.scripts/kill-wine-explorer.sh +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/sh - -while true; do - killall -9 explorer.exe &> /dev/null - sleep 5 -done diff --git a/.scripts/mpv-yt-playlists.sh b/.scripts/mpv-yt-playlists.sh deleted file mode 100755 index d28270b..0000000 --- a/.scripts/mpv-yt-playlists.sh +++ /dev/null @@ -1,15 +0,0 @@ -#!/bin/bash - -declare -A playlists=( - [V1]='https://www.youtube.com/playlist?list=PLhe0fcbtmXgH05vjUb9aXib59PEpx1r7W' -) - -playlist_url="${playlists[$1]}" - -if [ -z "$playlist_url" ]; then - echo "Bad playlist name." - exit 1 -fi - -pkill -9 -u "$USER" mpv > /dev/null -hyprctl dispatch exec "mpv '$playlist_url' --no-video --shuffle"