🗑️ remove(hypr): unused scripts

This commit is contained in:
Sergio Laín 2024-05-26 20:18:34 +02:00
parent af0d54030a
commit 589e87cb4c
No known key found for this signature in database
GPG key ID: FB00AF7015FFE76B
4 changed files with 0 additions and 127 deletions

View file

@ -1,74 +0,0 @@
#!/usr/bin/bash
app=$1
if [ "$app" = "" ]; then
exit 1
fi
FOCUSED_MONITOR=$(~/.config/hypr/scripts/focused_monitor)
source ~/.config/hypr/scripts/monitors
case $app in
"nemo")
if [ "$FOCUSED_MONITOR" = "$MONITOR1" ]; then
hyprctl dispatch exec [workspace 3] nemo &
elif [ "$FOCUSED_MONITOR" = "$MONITOR2" ]; then
hyprctl dispatch exec [workspace 12] nemo &
else
nemo &
fi
;;
"obsidian")
if [ "$FOCUSED_MONITOR" = "$MONITOR1" ]; then
hyprctl dispatch exec [workspace 9] obsidian &
elif [ "$FOCUSED_MONITOR" = "$MONITOR2" ]; then
hyprctl dispatch exec [workspace 18] obsidian &
elif [ "$FOCUSED_MONITOR" = "$MONITOR3" ]; then
hyprctl dispatch exec [workspace 27] obsidian &
else
obsidian &
fi
;;
"office")
if [ "$FOCUSED_MONITOR" = "$MONITOR1" ]; then
hyprctl dispatch exec [workspace 9] libreoffice &
elif [ "$FOCUSED_MONITOR" = "$MONITOR2" ]; then
hyprctl dispatch exec [workspace 18] libreoffice &
elif [ "$FOCUSED_MONITOR" = "$MONITOR3" ]; then
hyprctl dispatch exec [workspace 27] libreoffice &
else
libreoffice &
fi
;;
"nvim")
if [ "$FOCUSED_MONITOR" = "$MONITOR1" ]; then
hyprctl dispatch exec [workspace 2] kitty nvim &
elif [ "$FOCUSED_MONITOR" = "$MONITOR2" ]; then
hyprctl dispatch exec [workspace 11] kitty nvim &
else
kitty nvim &
fi
;;
"codium")
if [ "$FOCUSED_MONITOR" = "$MONITOR1" ]; then
hyprctl dispatch workspace 2 && codium &
elif [ "$FOCUSED_MONITOR" = "$MONITOR2" ]; then
hyprctl dispatch workspace 11 && codium &
else
codium
fi
;;
"browser")
if [ "$FOCUSED_MONITOR" = "$MONITOR1" ]; then
hyprctl dispatch workspace 1 && floorp & # Had to to this because it didnt work the other way
elif [ "$FOCUSED_MONITOR" = "$MONITOR2" ]; then
hyprctl dispatch workspace 10 && floorp &
elif [ "$FOCUSED_MONITOR" = "$MONITOR3" ]; then
hyprctl dispatch workspace 23 && floorp &
else
librewolf &
fi
;;
*) ;;
esac

View file

@ -1,3 +0,0 @@
#!/usr/bin/bash
hyprctl monitors -j | jq -r '.[] | select(.focused == true) | .name'

View file

@ -1,8 +0,0 @@
#!/usr/bin/bash
# MONITORS=$(hyprctl monitors -j | jq -r '.[] | .name')
# echo "$MONITORS"
export MONITOR1="DP-1"
export MONITOR2="DP-3"
export MONITOR3="HDMI-A-1"

View file

@ -1,42 +0,0 @@
#!/usr/bin/python
import subprocess
import time
from colour import Color
gradient = [
"#c6a0f6",
"#b7bdf8",
"#8aadf4",
]
def color_range(*args):
l = []
for i, color in enumerate(args):
if i == len(args) - 1:
break
l.extend(color.range_to(args[i + 1], 25))
return l
def rgb_to_hex(r, g, b):
return "%02x%02x%02x" % (r, g, b)
def set_color(r, g, b):
print(rgb_to_hex(r, g, b))
subprocess.run(
f"hyprctl keyword general:col.active_border 0xff{rgb_to_hex(r,g,b)}".split()
)
colors = color_range(*[Color(i) for i in gradient])
while 1:
for col in colors:
set_color(int(col.red * 255), int(col.green * 255), int(col.blue * 255))
time.sleep(0.05)
for col in colors[::-1]:
set_color(int(col.red * 255), int(col.green * 255), int(col.blue * 255))
time.sleep(0.05)