Init commit

This commit is contained in:
Archie Fox
2025-06-08 06:59:19 +03:00
commit 06b8ee8caf
148 changed files with 18659 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
general {
lock_cmd = pidof hyprlock || hyprlock # avoid starting multiple hyprlock instances.
before_sleep_cmd = loginctl lock-session # lock before suspend.
after_sleep_cmd = hyprctl dispatch dpms on # to avoid having to press a key twice to turn on the display.
}
listener {
timeout = 300
on-timeout = loginctl lock-session
}
listener {
timeout = 180 # 2.5min.
on-timeout = brightnessctl -s set 10% # set monitor backlight to minimum, avoid 0 on OLED monitor.
on-resume = brightnessctl -r # monitor backlight restore.
}
listener {
timeout = 300 # 5.5min
on-timeout = hyprctl dispatch dpms off # screen off when timeout has passed
on-resume = hyprctl dispatch dpms on && brightnessctl -r # screen on when activity is detected after timeout has fired.
}
listener {
timeout = 3600 # 30min
on-timeout = doas systemctl suspend # suspend pc
}

354
.config/hypr/hyprland.conf Normal file
View File

@@ -0,0 +1,354 @@
# #######################################################################################
# AUTOGENERATED HYPRLAND CONFIG.
# PLEASE USE THE CONFIG PROVIDED IN THE GIT REPO /examples/hyprland.conf AND EDIT IT,
# OR EDIT THIS ONE ACCORDING TO THE WIKI INSTRUCTIONS.
# #######################################################################################
# autogenerated = 1 # remove this line to remove the warning
# This is an example Hyprland config file.
# Refer to the wiki for more information.
# https://wiki.hyprland.org/Configuring/
# Please note not all available settings / options are set here.
# For a full list, see the wiki
# You can split this configuration into multiple files
# Create your files separately and then link them to this file like this:
# source = ~/.config/hypr/myColors.conf
################
### MONITORS ###
################
# See https://wiki.hyprland.org/Configuring/Monitors/
monitor = eDP-1, 2160x1440@60, 0x0, 1
###################
### MY PROGRAMS ###
###################
# See https://wiki.hyprland.org/Configuring/Keywords/
# Set programs that you use
$terminal = kitty
$fileManager = kitty yazi
# $menu = wofi --show drun -theme archer
$menu = rofi -show run -theme archer -font "Iosevka Nerd Font Medium 18"
$telega = Telegram
#################
### AUTOSTART ###
#################
# Autostart necessary processes (like notifications daemons, status bars, etc.)
# Or execute your favorite apps at launch like this:
exec-once = waybar & swaync & hypridle
exec-once = swww-daemon --format xrgb
exec-once = systemctl --user start hyprpolkitagent
exec-once = dbus-update-activation-environment --all
exec-once = wl-paste --type text --watch cliphist store # Текст
exec-once = wl-paste --type image --watch cliphist store # Изображения
exec-once = nm-applet &
exec-once = blueman-applet &
exec-once = [workspace 9 silent] Telegram &
exec-once = udiskie -t -n -f 'kitty yazi' &
exec-once = $terminal
#############################
### ENVIRONMENT VARIABLES ###
#############################
# See https://wiki.hyprland.org/Configuring/Environment-variables/
env = GTK_THEME,Arc-Dark
env = ICON_THEME,WhiteSur-dark
env = XCURSOR_THEME,WhiteSur-cursors
env = XCURSOR_SIZE,24
env = HYPRCURSOR_SIZE,24
#####################
### LOOK AND FEEL ###
#####################
# Refer to https://wiki.hyprland.org/Configuring/Variables/
# https://wiki.hyprland.org/Configuring/Variables/#general
general {
gaps_in = 10
gaps_out = 20
border_size = 1
# https://wiki.hyprland.org/Configuring/Variables/#variable-types for info about colors
col.active_border = rgba(33ccffee) rgba(00ff99ee) 45deg
col.inactive_border = rgba(595959aa)
# Set to true enable resizing windows by clicking and dragging on borders and gaps
resize_on_border = true
# Please see https://wiki.hyprland.org/Configuring/Tearing/ before you turn this on
allow_tearing = false
layout = dwindle
}
# https://wiki.hyprland.org/Configuring/Variables/#decoration
decoration {
rounding = 10
rounding_power = 2
# Change transparency of focused and unfocused windows
active_opacity = 0.9
inactive_opacity = 0.9
shadow {
enabled = true
range = 10
render_power = 3
color = rgba(1a1a1aee)
ignore_window = true
# offset = 5 5
}
# https://wiki.hyprland.org/Configuring/Variables/#blur
blur {
enabled = true
size = 8
passes = 5
vibrancy = 0.1696
}
}
# https://wiki.hyprland.org/Configuring/Variables/#animations
animations {
enabled = yes, please :)
# Default animations, see https://wiki.hyprland.org/Configuring/Animations/ for more
bezier = easeOutQuint,0.23,1,0.32,1
bezier = easeInOutCubic,0.65,0.05,0.36,1
bezier = linear,0,0,1,1
bezier = almostLinear,0.5,0.5,0.75,1.0
bezier = quick,0.15,0,0.1,1
animation = global, 1, 10, default
animation = border, 1, 5.39, easeOutQuint
animation = windows, 1, 4.79, easeOutQuint
animation = windowsIn, 1, 4.1, easeOutQuint, popin 87%
animation = windowsOut, 1, 1.49, linear, popin 87%
animation = fadeIn, 1, 1.73, almostLinear
animation = fadeOut, 1, 1.46, almostLinear
animation = fade, 1, 3.03, quick
animation = layers, 1, 3.81, easeOutQuint
animation = layersIn, 1, 4, easeOutQuint, fade
animation = layersOut, 1, 1.5, linear, fade
animation = fadeLayersIn, 1, 1.79, almostLinear
animation = fadeLayersOut, 1, 1.39, almostLinear
animation = workspaces, 1, 1.94, almostLinear, fade
animation = workspacesIn, 1, 1.21, almostLinear, fade
animation = workspacesOut, 1, 1.94, almostLinear, fade
}
# Ref https://wiki.hyprland.org/Configuring/Workspace-Rules/
# "Smart gaps" / "No gaps when only"
# uncomment all if you wish to use that.
# workspace = w[tv1], gapsout:0, gapsin:0
# workspace = f[1], gapsout:0, gapsin:0
# windowrulev2 = bordersize 0, floating:0, onworkspace:w[tv1]
# windowrulev2 = rounding 0, floating:0, onworkspace:w[tv1]
# windowrulev2 = bordersize 0, floating:0, onworkspace:f[1]
# windowrulev2 = rounding 0, floating:0, onworkspace:f[1]
# See https://wiki.hyprland.org/Configuring/Dwindle-Layout/ for more
dwindle {
pseudotile = true # Master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below
preserve_split = true # You probably want this
}
# See https://wiki.hyprland.org/Configuring/Master-Layout/ for more
master {
new_status = master
}
# https://wiki.hyprland.org/Configuring/Variables/#misc
misc {
force_default_wallpaper = 0 # Set to 0 or 1 to disable the anime mascot wallpapers
disable_hyprland_logo = true # If true disables the random hyprland logo / anime girl background. :(
}
#############
### INPUT ###
#############
# https://wiki.hyprland.org/Configuring/Variables/#input
input {
kb_layout = us,ru
kb_variant = ,winkeys
kb_model = pc104
kb_options = grp:caps_select,grp:switch,grp_led:caps,terminate:ctrl_alt_bksp
kb_rules =
follow_mouse = 1
sensitivity = 0 # -1.0 - 1.0, 0 means no modification.
touchpad {
natural_scroll = false
disable_while_typing = true
clickfinger_behavior = true
tap-to-click = true
tap-and-drag = true
}
}
# https://wiki.hyprland.org/Configuring/Variables/#gestures
gestures {
workspace_swipe = true
}
# Example per-device config
# See https://wiki.hyprland.org/Configuring/Keywords/#per-device-input-configs for more
device {
name = epic-mouse-v1
sensitivity = 1.0
}
###################
### KEYBINDINGS ###
###################
# See https://wiki.hyprland.org/Configuring/Keywords/
$mainMod = SUPER # Sets "Windows" key as main modifier
# Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more
bind = $mainMod, Return, exec, $terminal
bind = $mainMod, W, killactive,
bind = $mainMod, E, exit,
bind = $mainMod, F, exec, $fileManager
bind = $mainMod, V, togglefloating,
bind = $mainMod, Z, exec, $menu
bind = $mainMod, P, pseudo, # dwindle
bind = $mainMod, J, togglesplit, # dwindle
bind = $mainMod, T, exec, $telega
bind = $mainMod, M, exec, '/home/fox/.config/hypr/scripts/wall.sh'
# Waybar
bind = $mainMod, B, exec, pkill -SIGUSR1 waybar # hide waybar
bind = $mainMod, N, exec, pkill -SIGUSR2 waybar # reload config
# Display on/off
bind = $mainMod, I, exec, hyprctl dispatch dpms on
bind = $mainMod, O, exec, hyprctl dispatch dpms off
# Screenshot
bind = , INSERT, exec, hyprshot -m window -o '/home/fox/Pictures/Screenshots'
bind = SHIFT, INSERT, exec, hyprshot -m region -o '/home/fox/Pictures/Screenshots'
# Clipboard History
# bind = $mainMod, C, exec, cliphist list | rofi -theme archer -font "Iosevka Nerd Font Medium 18" -dmenu -p "Clipboard" | cliphist decode | wl-copy
bind = $mainMod, C, exec, "/home/fox/bin/clipboard.sh"
# Lock screen
bind = $mainMod, L, exec, hyprlock
# Move focus with mainMod + arrow keys
bind = $mainMod, left, movefocus, l
bind = $mainMod, right, movefocus, r
bind = $mainMod, up, movefocus, u
bind = $mainMod, down, movefocus, d
# Move window on tag
bind = $mainMod SHIFT, left, swapwindow, l
bind = $mainMod SHIFT, right, swapwindow, r
bind = $mainMod SHIFT, up, swapwindow, u
bind = $mainMod SHIFT, down, swapwindow, d
# Resize window X Y
bind = $mainMod CTRL, left, resizeactive, -60 0
bind = $mainMod CTRL, right, resizeactive, 60 0
bind = $mainMod CTRL, up, resizeactive, 0 -60
bind = $mainMod CTRL, down, resizeactive, 0 60
# Switch workspaces with mainMod + [0-9]
bind = $mainMod, 1, workspace, 1
bind = $mainMod, 2, workspace, 2
bind = $mainMod, 3, workspace, 3
bind = $mainMod, 4, workspace, 4
bind = $mainMod, 5, workspace, 5
bind = $mainMod, 6, workspace, 6
bind = $mainMod, 7, workspace, 7
bind = $mainMod, 8, workspace, 8
bind = $mainMod, 9, workspace, 9
bind = $mainMod, 0, workspace, 10
# Move active window to a workspace with mainMod + SHIFT + [0-9]
bind = $mainMod SHIFT, 1, movetoworkspacesilent, 1
bind = $mainMod SHIFT, 2, movetoworkspacesilent, 2
bind = $mainMod SHIFT, 3, movetoworkspacesilent, 3
bind = $mainMod SHIFT, 4, movetoworkspacesilent, 4
bind = $mainMod SHIFT, 5, movetoworkspacesilent, 5
bind = $mainMod SHIFT, 6, movetoworkspacesilent, 6
bind = $mainMod SHIFT, 7, movetoworkspacesilent, 7
bind = $mainMod SHIFT, 8, movetoworkspacesilent, 8
bind = $mainMod SHIFT, 9, movetoworkspacesilent, 9
bind = $mainMod SHIFT, 0, movetoworkspacesilent, 10
# Example special workspace (scratchpad)
bind = $mainMod, S, togglespecialworkspace, magic
bind = $mainMod SHIFT, S, movetoworkspace, special:magic
# Scroll through existing workspaces with mainMod + scroll
bind = $mainMod, mouse_down, workspace, e+1
bind = $mainMod, mouse_up, workspace, e-1
# Move/resize windows with mainMod + LMB/RMB and dragging
bindm = $mainMod, mouse:272, movewindow
bindm = $mainMod, mouse:273, resizewindow
# Laptop multimedia keys for volume and LCD brightness
# bindel = ,XF86AudioRaiseVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+
# bindel = ,XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-
# bindel = ,XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle
bindel = ,XF86AudioRaiseVolume, exec, pactl set-sink-volume @DEFAULT_SINK@ +5% && notify-send -t 1500 "Volume : $(pactl get-sink-volume @DEFAULT_SINK@ | grep -oP '\d+%' | head -n1 | awk '{print $1}')"
bindel = ,XF86AudioLowerVolume, exec, pactl set-sink-volume @DEFAULT_SINK@ -5% && notify-send -t 1500 "Volume : $(pactl get-sink-volume @DEFAULT_SINK@ | grep -oP '\d+%' | head -n1 | awk '{print $1}')"
bindel = ,XF86AudioMute, exec, pactl set-sink-mute @DEFAULT_SINK@ toggle
bindel = ,XF86AudioMicMute, exec, pactl set-sink-mute @DEFAULT_SOURCE@ toggle
bindel = ,XF86MonBrightnessUp, exec, brightnessctl s 10%+
bindel = ,XF86MonBrightnessDown, exec, brightnessctl s 10%-
# Requires playerctl
bindl = , XF86AudioNext, exec, playerctl next
bindl = , XF86AudioPause, exec, playerctl play-pause
bindl = , XF86AudioPlay, exec, playerctl play-pause
bindl = , XF86AudioPrev, exec, playerctl previous
##############################
### WINDOWS AND WORKSPACES ###
##############################
layerrule = blur, waybar
# layerrule = blur, hyprpaper
# See https://wiki.hyprland.org/Configuring/Window-Rules/ for more
# See https://wiki.hyprland.org/Configuring/Workspace-Rules/ for workspace rules
# Example windowrule v1
# windowrule = float, ^(kitty)$
# Example windowrule v2
# windowrulev2 = float,class:^(kitty)$,title:^(kitty)$
# Ignore maximize requests from apps. You'll probably like this.
windowrulev2 = suppressevent maximize, class:.*
# Fix some dragging issues with XWayland
windowrulev2 = nofocus,class:^$,title:^$,xwayland:1,floating:1,fullscreen:0,pinned:0
windowrulev2 = workspace 9, class:^(org.telegram.desktop)$
windowrulev2 = workspace 10, class:^(kitty)$, title:^(tmux)+$

View File

@@ -0,0 +1,63 @@
background {
monitor =
path = /home/fox/Pictures/wall/dark/wallpaper-dark.png
color = rgba(25, 20, 20, 1.0)
blur_passes = 3
}
input-field {
monitor =
size = 20%, 5%
outline_thickness = 3
inner_color = rgba(0, 0, 0, 0.0) # no fill
outer_color = rgba(33ccffee) rgba(00ff99ee) 45deg
check_color=rgba(00ff99ee) rgba(ff6633ee) 120deg
fail_color=rgba(ff6633ee) rgba(ff0066ee) 40deg
font_color = rgb(143, 143, 143)
fade_on_empty = false
fade_timeout = 5000
rounding = 15
placeholder_text = <b>Введите пароль</b>
position = 0, -200
halign = center
valign = center
}
image {
monitor =
path = /home/fox/Pictures/archlogo.png
size = 300
rounding = 0 # no rounding
border_size = 0
position = 0, 500
halign = center
valign = center
}
label {
monitor =
text = cmd[update:1000] echo -e "$(date '+%A %d %B %Y года')"
color = rgba(255, 255, 255, 1.0)
font_size = 70
font_family = Noto Sans
position = 0, 200
halign = center
valign = center
}
label {
monitor =
text = cmd[update:1000] echo -e "$(date '+%H:%M:%S')"
color = rgba(255, 255, 255, 1.0)
font_size = 90
font_family = Noto Sans
position = 0, 0
halign = center
valign = center
}

View File

@@ -0,0 +1,2 @@
preload = /home/fox/tmp/waybar-macos-sequoia/wallpapers/wallpaper-light.png
wallpaper = , /home/fox/tmp/waybar-macos-sequoia/wallpapers/wallpaper-light.png

View File

@@ -0,0 +1,10 @@
#!/usr/bin/env bash
WALLPAPER_DIR="$HOME/Pictures/wall/"
CURRENT_WALL=$(hyprctl hyprpaper listloaded)
# Get a random wallpaper that is not the current one
WALLPAPER=$(find "$WALLPAPER_DIR" -type f ! -name "$(basename "$CURRENT_WALL")" | shuf -n 1)
# Apply the selected wallpaper
hyprctl hyprpaper reload ,"$WALLPAPER"

View File

@@ -0,0 +1,28 @@
#!/bin/bash
WALLPAPER_DIR="$HOME/Pictures/wall/"
TEMP_DIR="/tmp/hyprpaper_fade"
mkdir -p "$TEMP_DIR"
# Выбор случайного обоа
NEW_WALLPAPER=$(find "$WALLPAPER_DIR" -type f | shuf -n 1)
TEMP_WALLPAPER="$TEMP_DIR/fade_temp.jpg"
# Создаем временное размытое изображение для перехода
convert "$NEW_WALLPAPER" -blur 0x8 "$TEMP_WALLPAPER"
# Загружаем размытую версию
hyprctl hyprpaper preload "$TEMP_WALLPAPER"
hyprctl hyprpaper wallpaper "eDP-1,$TEMP_WALLPAPER"
# Плавно возвращаем четкость (анимация)
for i in {8..0}; do
convert "$NEW_WALLPAPER" -blur 0x"$i" "$TEMP_WALLPAPER"
hyprctl hyprpaper wallpaper "eDP-1,$TEMP_WALLPAPER"
sleep 0.05
done
# Фиксируем финальное изображение
hyprctl hyprpaper preload "$NEW_WALLPAPER"
hyprctl hyprpaper wallpaper "eDP-1,$NEW_WALLPAPER"

19
.config/hypr/scripts/wall.sh Executable file
View File

@@ -0,0 +1,19 @@
#!/usr/bin/env bash
# Директория с обоями
HOUR="date '+%k'"
if [[ $HOUR -gt 7 && $HOUR -lt 18 ]]; then
WALLPAPER_DIR="$HOME/Pictures/wall/light"
else
WALLPAPER_DIR="$HOME/Pictures/wall/dark"
fi
# Выбор случайного файла
RANDOM_WALLPAPER=$(find "$WALLPAPER_DIR" -type f | shuf -n 1)
# Плавная смена (с анимацией fade)
swww img "$RANDOM_WALLPAPER" \
--transition-type "random" \
--transition-step 2 \
--transition-duration 3 \
--transition-fps 60 # Кадры в секунду \