wip
This commit is contained in:
parent
da6d5fc800
commit
8356149c44
3 changed files with 116 additions and 65 deletions
41
.scripts/ytfzf.sh
Executable file
41
.scripts/ytfzf.sh
Executable 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
|
|
@ -1,22 +1,22 @@
|
|||
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
|
||||
after_sleep_cmd = hyprctl dispatch dpms on
|
||||
after_sleep_cmd = hyprctl dispatch dpms on && hyprpanel
|
||||
}
|
||||
|
||||
listener {
|
||||
timeout = 300
|
||||
timeout = 1200
|
||||
on-timeout = brightnessctl -s set 10
|
||||
on-resume = brightnessctl -r
|
||||
}
|
||||
|
||||
listener {
|
||||
timeout = 330
|
||||
timeout = 1200
|
||||
on-timeout = loginctl lock-session
|
||||
}
|
||||
|
||||
listener {
|
||||
timeout = 350
|
||||
timeout = 1200
|
||||
on-timeout = hyprctl dispatch dpms off
|
||||
on-resume = hyprctl dispatch dpms on
|
||||
}
|
||||
|
|
130
hyprland.conf
130
hyprland.conf
|
@ -1,12 +1,22 @@
|
|||
# WHY:
|
||||
# ╭───────────────────────────────────────────────────╮
|
||||
# │ This is the hyprland configuration file to source │
|
||||
# │ and setup my hyprland environment │
|
||||
# ╰───────────────────────────────────────────────────╯
|
||||
|
||||
|
||||
# ╭──────────────╮
|
||||
# │ Source files │
|
||||
# ╰──────────────╯
|
||||
$h_conf = ~/.config/hypr
|
||||
|
||||
# sources monitors config outside of git repo to let useroptions be a thing
|
||||
# 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
|
||||
# NOTE:
|
||||
#╭───────────────────────────────────────────────────────────────────────────╮
|
||||
#│ sources monitors config outside of git repo to let useroptions be a thing │
|
||||
#│ 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
|
||||
# variable for specialworkspace (has to be configured in .monitors.conf like -> 'workspace = name:x, on-created-empty:$terminal')
|
||||
$terminal = ghostty
|
||||
|
@ -128,27 +138,27 @@ decoration {
|
|||
|
||||
# Some default animations, see https://wiki.hyprland.org/Configuring/Animations/ for more
|
||||
|
||||
animations {
|
||||
enabled = yes
|
||||
bezier = wind, 0.05, 0.9, 0.1, 1.05
|
||||
bezier = winIn, 0.1, 1.1, 0.1, 1.1
|
||||
bezier = winOut, 0.3, -0.3, 0, 1
|
||||
bezier = liner, 1, 1, 1, 1
|
||||
bezier = md3_standard, 0.2, 0, 0, 1
|
||||
bezier = md3_decel, 0.05, 0.7, 0.1, 1
|
||||
bezier = md3_accel, 0.3, 0, 0.8, 0.15
|
||||
animation = windows, 1, 6, wind, slide
|
||||
animation = windowsIn, 1, 6, winIn, popin
|
||||
animation = windowsOut, 1, 5, winOut, slide
|
||||
animation = windowsMove, 1, 5, wind, slide
|
||||
# animation = border, 1, 1, liner
|
||||
# animation = borderangle, 1, 30, liner, loop
|
||||
animation = fade, 1, 10, default
|
||||
animation = workspaces, 1, 5, wind
|
||||
|
||||
animation = specialWorkspace, 1, 3, md3_decel, slidefadevert 15%
|
||||
# animation = specialWorkspace, 1, 3, md3_decel, slidevert
|
||||
}
|
||||
# animations {
|
||||
# enabled = yes
|
||||
# bezier = wind, 0.05, 0.9, 0.1, 1.05
|
||||
# bezier = winIn, 0.1, 1.1, 0.1, 1.1
|
||||
# bezier = winOut, 0.3, -0.3, 0, 1
|
||||
# bezier = liner, 1, 1, 1, 1
|
||||
# bezier = md3_standard, 0.2, 0, 0, 1
|
||||
# bezier = md3_decel, 0.05, 0.7, 0.1, 1
|
||||
# bezier = md3_accel, 0.3, 0, 0.8, 0.15
|
||||
# animation = windows, 1, 6, wind, slide
|
||||
# animation = windowsIn, 1, 6, winIn, popin
|
||||
# animation = windowsOut, 1, 5, winOut, slide
|
||||
# animation = windowsMove, 1, 5, wind, slide
|
||||
# # animation = border, 1, 1, liner
|
||||
# # animation = borderangle, 1, 30, liner, loop
|
||||
# animation = fade, 1, 10, default
|
||||
# animation = workspaces, 1, 5, wind
|
||||
#
|
||||
# animation = specialWorkspace, 1, 3, md3_decel, slidefadevert 15%
|
||||
# # animation = specialWorkspace, 1, 3, md3_decel, slidevert
|
||||
# }
|
||||
|
||||
# animations {
|
||||
# enabled = true
|
||||
|
@ -184,41 +194,41 @@ animations {
|
|||
# animation = borderangle, 1, 50, fluidMove, loop
|
||||
# }
|
||||
|
||||
# animations {
|
||||
# enabled = true
|
||||
# # Animation curves
|
||||
#
|
||||
# bezier = linear, 0, 0, 1, 1
|
||||
# bezier = md3_standard, 0.2, 0, 0, 1
|
||||
# bezier = md3_decel, 0.05, 0.7, 0.1, 1
|
||||
# bezier = md3_accel, 0.3, 0, 0.8, 0.15
|
||||
# bezier = overshot, 0.05, 0.9, 0.1, 1.1
|
||||
# bezier = crazyshot, 0.1, 1.5, 0.76, 0.92
|
||||
# bezier = hyprnostretch, 0.05, 0.9, 0.1, 1.0
|
||||
# bezier = menu_decel, 0.1, 1, 0, 1
|
||||
# bezier = menu_accel, 0.38, 0.04, 1, 0.07
|
||||
# bezier = easeInOutCirc, 0.85, 0, 0.15, 1
|
||||
# bezier = easeOutCirc, 0, 0.55, 0.45, 1
|
||||
# bezier = easeOutExpo, 0.16, 1, 0.3, 1
|
||||
# bezier = softAcDecel, 0.26, 0.26, 0.15, 1
|
||||
# bezier = md2, 0.4, 0, 0.2, 1 # use with .2s duration
|
||||
# # Animation configs
|
||||
# animation = windows, 1, 3, md3_decel, popin 60%
|
||||
# animation = windowsIn, 1, 3, md3_decel, popin 60%
|
||||
# animation = windowsOut, 1, 3, md3_accel, popin 60%
|
||||
# animation = border, 1, 10, default
|
||||
# animation = fade, 1, 3, md3_decel
|
||||
# # animation = layers, 1, 2, md3_decel, slide
|
||||
# animation = layersIn, 1, 3, menu_decel, slide
|
||||
# animation = layersOut, 1, 1.6, menu_accel
|
||||
# animation = fadeLayersIn, 1, 2, menu_decel
|
||||
# animation = fadeLayersOut, 1, 0.5, menu_accel
|
||||
# animation = workspaces, 1, 7, menu_decel, slide
|
||||
# # animation = workspaces, 1, 2.5, softAcDecel, slide
|
||||
# # animation = workspaces, 1, 7, menu_decel, slidefade 15%
|
||||
# # animation = specialWorkspace, 1, 3, md3_decel, slidefadevert 15%
|
||||
# animation = specialWorkspace, 1, 3, md3_decel, slidevert
|
||||
# }
|
||||
animations {
|
||||
enabled = true
|
||||
# Animation curves
|
||||
|
||||
bezier = linear, 0, 0, 1, 1
|
||||
bezier = md3_standard, 0.2, 0, 0, 1
|
||||
bezier = md3_decel, 0.05, 0.7, 0.1, 1
|
||||
bezier = md3_accel, 0.3, 0, 0.8, 0.15
|
||||
bezier = overshot, 0.05, 0.9, 0.1, 1.1
|
||||
bezier = crazyshot, 0.1, 1.5, 0.76, 0.92
|
||||
bezier = hyprnostretch, 0.05, 0.9, 0.1, 1.0
|
||||
bezier = menu_decel, 0.1, 1, 0, 1
|
||||
bezier = menu_accel, 0.38, 0.04, 1, 0.07
|
||||
bezier = easeInOutCirc, 0.85, 0, 0.15, 1
|
||||
bezier = easeOutCirc, 0, 0.55, 0.45, 1
|
||||
bezier = easeOutExpo, 0.16, 1, 0.3, 1
|
||||
bezier = softAcDecel, 0.26, 0.26, 0.15, 1
|
||||
bezier = md2, 0.4, 0, 0.2, 1 # use with .2s duration
|
||||
# Animation configs
|
||||
animation = windows, 1, 3, md3_decel, popin 60%
|
||||
animation = windowsIn, 1, 3, md3_decel, popin 60%
|
||||
animation = windowsOut, 1, 3, md3_accel, popin 60%
|
||||
animation = border, 1, 10, default
|
||||
animation = fade, 1, 3, md3_decel
|
||||
# animation = layers, 1, 2, md3_decel, slide
|
||||
animation = layersIn, 1, 3, menu_decel, slide
|
||||
animation = layersOut, 1, 1.6, menu_accel
|
||||
animation = fadeLayersIn, 1, 2, menu_decel
|
||||
animation = fadeLayersOut, 1, 0.5, menu_accel
|
||||
animation = workspaces, 1, 7, menu_decel, slide
|
||||
# animation = workspaces, 1, 2.5, softAcDecel, slide
|
||||
# animation = workspaces, 1, 7, menu_decel, slidefade 15%
|
||||
# animation = specialWorkspace, 1, 3, md3_decel, slidefadevert 15%
|
||||
animation = specialWorkspace, 1, 3, md3_decel, slidevert
|
||||
}
|
||||
|
||||
# https://wiki.hyprland.org/Configuring/Variables/#misc
|
||||
misc {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue