This commit is contained in:
pika 2025-04-13 15:15:15 +02:00
parent da6d5fc800
commit 8356149c44
3 changed files with 116 additions and 65 deletions

41
.scripts/ytfzf.sh Executable file
View file

@ -0,0 +1,41 @@
#!/usr/bin/env bash
# ─< ANSI color codes >───────────────────────────────────────────────────────────────────
RED='\033[0;31m'
CYAN='\033[0;36m'
YELLOW='\033[0;33m'
LIGHT_GREEN='\033[0;92m'
BOLD='\033[1m'
NC='\033[0m' # No Color
echo_error() {
printf "${BOLD}${RED}ERROR: ${NC}${RED}%s${NC}\n" "$1" >&2
}
echo_info() {
printf "${BOLD}${CYAN}INFO: ${NC}${CYAN}%s${NC}\n" "$1"
}
echo_warning() {
printf "${BOLD}${YELLOW}WARNING: ${NC}${YELLOW}%s${NC}\n" "$1"
}
echo_note() {
printf "${BOLD}${LIGHT_GREEN}NOTE: ${NC}${LIGHT_GREEN}%s${NC}\n" "$1"
}
# ─< Check if the given command exists silently >─────────────────────────────────────────
command_exists() {
command -v "$@" >/dev/null 2>&1
}
if ! command_exists ytfzf; then
echo_error "You dont have ytfzf installed.."
fi
echo_note "What do you want to watch?"
read -r watch
if [[ -z "$watch" ]]; then
ytfzf -t "$watch"
fi

View file

@ -1,22 +1,22 @@
general { general {
lock_cmd = pidof swaylock || swaylock --screenshots --clock --indicator --effect-pixelate 18 --effect-blur 8x8 lock_cmd = swaylock --screenshots --clock --indicator --effect-pixelate 18 --effect-blur 8x8
before_sleep_cmd = loginctl lock-session before_sleep_cmd = loginctl lock-session
after_sleep_cmd = hyprctl dispatch dpms on after_sleep_cmd = hyprctl dispatch dpms on && hyprpanel
} }
listener { listener {
timeout = 300 timeout = 1200
on-timeout = brightnessctl -s set 10 on-timeout = brightnessctl -s set 10
on-resume = brightnessctl -r on-resume = brightnessctl -r
} }
listener { listener {
timeout = 330 timeout = 1200
on-timeout = loginctl lock-session on-timeout = loginctl lock-session
} }
listener { listener {
timeout = 350 timeout = 1200
on-timeout = hyprctl dispatch dpms off on-timeout = hyprctl dispatch dpms off
on-resume = hyprctl dispatch dpms on on-resume = hyprctl dispatch dpms on
} }

View file

@ -1,12 +1,22 @@
# WHY:
# ╭───────────────────────────────────────────────────╮
# │ This is the hyprland configuration file to source │
# │ and setup my hyprland environment │
# ╰───────────────────────────────────────────────────╯
# ╭──────────────╮ # ╭──────────────╮
# │ Source files │ # │ Source files │
# ╰──────────────╯ # ╰──────────────╯
$h_conf = ~/.config/hypr $h_conf = ~/.config/hypr
# sources monitors config outside of git repo to let useroptions be a thing # NOTE:
# also sources the following variables: #╭───────────────────────────────────────────────────────────────────────────╮
# > $main <- this should contain the main monitor (e.g. DP-1 or HDMI-A-1..) #│ sources monitors config outside of git repo to let useroptions be a thing │
# > $secondary <- This is just the second monitor #│ also sources the following variables: │
#│ > $main <- this should contain the main monitor (e.g. DP-1 or HDMI-A-1..) │
#│ > $secondary <- This is just the second monitor │
#╰───────────────────────────────────────────────────────────────────────────╯
source = $HOME/.monitors.conf source = $HOME/.monitors.conf
# variable for specialworkspace (has to be configured in .monitors.conf like -> 'workspace = name:x, on-created-empty:$terminal') # variable for specialworkspace (has to be configured in .monitors.conf like -> 'workspace = name:x, on-created-empty:$terminal')
$terminal = ghostty $terminal = ghostty
@ -128,27 +138,27 @@ decoration {
# Some default animations, see https://wiki.hyprland.org/Configuring/Animations/ for more # Some default animations, see https://wiki.hyprland.org/Configuring/Animations/ for more
animations { # animations {
enabled = yes # enabled = yes
bezier = wind, 0.05, 0.9, 0.1, 1.05 # bezier = wind, 0.05, 0.9, 0.1, 1.05
bezier = winIn, 0.1, 1.1, 0.1, 1.1 # bezier = winIn, 0.1, 1.1, 0.1, 1.1
bezier = winOut, 0.3, -0.3, 0, 1 # bezier = winOut, 0.3, -0.3, 0, 1
bezier = liner, 1, 1, 1, 1 # bezier = liner, 1, 1, 1, 1
bezier = md3_standard, 0.2, 0, 0, 1 # bezier = md3_standard, 0.2, 0, 0, 1
bezier = md3_decel, 0.05, 0.7, 0.1, 1 # bezier = md3_decel, 0.05, 0.7, 0.1, 1
bezier = md3_accel, 0.3, 0, 0.8, 0.15 # bezier = md3_accel, 0.3, 0, 0.8, 0.15
animation = windows, 1, 6, wind, slide # animation = windows, 1, 6, wind, slide
animation = windowsIn, 1, 6, winIn, popin # animation = windowsIn, 1, 6, winIn, popin
animation = windowsOut, 1, 5, winOut, slide # animation = windowsOut, 1, 5, winOut, slide
animation = windowsMove, 1, 5, wind, slide # animation = windowsMove, 1, 5, wind, slide
# animation = border, 1, 1, liner # # animation = border, 1, 1, liner
# animation = borderangle, 1, 30, liner, loop # # animation = borderangle, 1, 30, liner, loop
animation = fade, 1, 10, default # animation = fade, 1, 10, default
animation = workspaces, 1, 5, wind # animation = workspaces, 1, 5, wind
#
animation = specialWorkspace, 1, 3, md3_decel, slidefadevert 15% # animation = specialWorkspace, 1, 3, md3_decel, slidefadevert 15%
# animation = specialWorkspace, 1, 3, md3_decel, slidevert # # animation = specialWorkspace, 1, 3, md3_decel, slidevert
} # }
# animations { # animations {
# enabled = true # enabled = true
@ -184,41 +194,41 @@ animations {
# animation = borderangle, 1, 50, fluidMove, loop # animation = borderangle, 1, 50, fluidMove, loop
# } # }
# animations { animations {
# enabled = true enabled = true
# # Animation curves # Animation curves
#
# bezier = linear, 0, 0, 1, 1 bezier = linear, 0, 0, 1, 1
# bezier = md3_standard, 0.2, 0, 0, 1 bezier = md3_standard, 0.2, 0, 0, 1
# bezier = md3_decel, 0.05, 0.7, 0.1, 1 bezier = md3_decel, 0.05, 0.7, 0.1, 1
# bezier = md3_accel, 0.3, 0, 0.8, 0.15 bezier = md3_accel, 0.3, 0, 0.8, 0.15
# bezier = overshot, 0.05, 0.9, 0.1, 1.1 bezier = overshot, 0.05, 0.9, 0.1, 1.1
# bezier = crazyshot, 0.1, 1.5, 0.76, 0.92 bezier = crazyshot, 0.1, 1.5, 0.76, 0.92
# bezier = hyprnostretch, 0.05, 0.9, 0.1, 1.0 bezier = hyprnostretch, 0.05, 0.9, 0.1, 1.0
# bezier = menu_decel, 0.1, 1, 0, 1 bezier = menu_decel, 0.1, 1, 0, 1
# bezier = menu_accel, 0.38, 0.04, 1, 0.07 bezier = menu_accel, 0.38, 0.04, 1, 0.07
# bezier = easeInOutCirc, 0.85, 0, 0.15, 1 bezier = easeInOutCirc, 0.85, 0, 0.15, 1
# bezier = easeOutCirc, 0, 0.55, 0.45, 1 bezier = easeOutCirc, 0, 0.55, 0.45, 1
# bezier = easeOutExpo, 0.16, 1, 0.3, 1 bezier = easeOutExpo, 0.16, 1, 0.3, 1
# bezier = softAcDecel, 0.26, 0.26, 0.15, 1 bezier = softAcDecel, 0.26, 0.26, 0.15, 1
# bezier = md2, 0.4, 0, 0.2, 1 # use with .2s duration bezier = md2, 0.4, 0, 0.2, 1 # use with .2s duration
# # Animation configs # Animation configs
# animation = windows, 1, 3, md3_decel, popin 60% animation = windows, 1, 3, md3_decel, popin 60%
# animation = windowsIn, 1, 3, md3_decel, popin 60% animation = windowsIn, 1, 3, md3_decel, popin 60%
# animation = windowsOut, 1, 3, md3_accel, popin 60% animation = windowsOut, 1, 3, md3_accel, popin 60%
# animation = border, 1, 10, default animation = border, 1, 10, default
# animation = fade, 1, 3, md3_decel animation = fade, 1, 3, md3_decel
# # animation = layers, 1, 2, md3_decel, slide # animation = layers, 1, 2, md3_decel, slide
# animation = layersIn, 1, 3, menu_decel, slide animation = layersIn, 1, 3, menu_decel, slide
# animation = layersOut, 1, 1.6, menu_accel animation = layersOut, 1, 1.6, menu_accel
# animation = fadeLayersIn, 1, 2, menu_decel animation = fadeLayersIn, 1, 2, menu_decel
# animation = fadeLayersOut, 1, 0.5, menu_accel animation = fadeLayersOut, 1, 0.5, menu_accel
# animation = workspaces, 1, 7, menu_decel, slide animation = workspaces, 1, 7, menu_decel, slide
# # animation = workspaces, 1, 2.5, softAcDecel, slide # animation = workspaces, 1, 2.5, softAcDecel, slide
# # animation = workspaces, 1, 7, menu_decel, slidefade 15% # animation = workspaces, 1, 7, menu_decel, slidefade 15%
# # animation = specialWorkspace, 1, 3, md3_decel, slidefadevert 15% # animation = specialWorkspace, 1, 3, md3_decel, slidefadevert 15%
# animation = specialWorkspace, 1, 3, md3_decel, slidevert animation = specialWorkspace, 1, 3, md3_decel, slidevert
# } }
# https://wiki.hyprland.org/Configuring/Variables/#misc # https://wiki.hyprland.org/Configuring/Variables/#misc
misc { misc {