initial commit

This commit is contained in:
pika 2025-03-08 19:35:35 +01:00
parent c6326a45e6
commit cebf404919
15 changed files with 757 additions and 0 deletions

3
.scripts/a.sh Executable file
View file

@ -0,0 +1,3 @@
#!/bin/bash --norc
notify-send "TEST" "This is supposed to be a rather long testmessage, for testing stlying, and size configs for swaync. The notification daemon."

129
.scripts/init.sh Executable file
View file

@ -0,0 +1,129 @@
#!/bin/sh
pkill swaync
# Paths and configuration
SCRIPTS_DIR="$HOME/.config/hypr/.scripts"
# Logging helper
log_notify() {
level="$1" # e.g., low, normal, critical
title="$2"
message="$3"
notify-send -u "$level" "$title" "$message"
}
# Initialize system modules
initialize_modules() {
# ─< hyprpanel, waybar, gBar >────────────────────────────────────────────────────────────
bar="hyprpanel"
modules="
copyq
nwg-look
swww
$bar
wob
redshift
"
for module in $modules; do
if command -v "$module" >/dev/null 2>&1; then
log_notify "low" "$module" "Initializing..."
case $module in
waybar | flameshot)
pkill "$module" 2>/dev/null
"$module" &
;;
hyprpanel)
hyprpanel &
;;
copyq)
pkill copyq 2>/dev/null
copyq --start-server
sleep 1
if ! pgrep -x copyq >/dev/null; then
log_notify "critical" "ERROR" "CopyQ failed to start. Retrying..."
copyq --start-server
fi
;;
lxappearance)
lxappearance >/dev/null 2>&1 &
;;
swww)
swww-daemon &
if ! swww query; then
swww init
fi
;;
redshift)
pkill redshift 2>/dev/null
sh "$SCRIPTS_DIR/redshift.sh"
;;
wob)
fifo="/tmp/$HYPRLAND_INSTANCE_SIGNATURE.wob"
rm -f "$fifo"
mkfifo "$fifo"
tail -f "$fifo" | wob &
;;
esac
else
log_notify "critical" "ERROR" "$module not found!"
fi
sleep 0.5
done
log_notify "normal" "INFO" "System modules initialized."
}
# Start polkit authentication agent
initialize_polkit() {
agents="
/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
/usr/lib/polkit-kde-authentication-agent-1
/usr/libexec/polkit-gnome-authentication-agent-1
/usr/lib/x86_64-linux-gnu/libexec/polkit-kde-authentication-agent-1
/usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1
/usr/lib/polkit-1/polkit-agent-helper-1
"
for agent in $agents; do
if [ -x "$agent" ]; then
log_notify "normal" "INFO" "Starting Polkit agent: $(basename "$agent")"
"$agent" &
return 0
fi
done
log_notify "low" "WARNING" "No Polkit authentication agent found. Please install one."
return 1
}
# Initialize XDG desktop portals
initialize_xdg_portals() {
xdg_hyprland="/usr/lib/xdg-desktop-portal-hyprland"
xdg_portal="/usr/lib/xdg-desktop-portal"
if [ -x "$xdg_hyprland" ]; then
killall xdg-desktop-portal-hyprland xdg-desktop-portal-wlr xdg-desktop-portal 2>/dev/null
sleep 1
"$xdg_hyprland" &
sleep 1
"$xdg_portal" &
sleep 1
dbus-update-activation-environment --systemd --all &
log_notify "normal" "INFO" "XDG desktop portals initialized."
else
log_notify "low" "WARNING" "xdg-desktop-portal-hyprland not found. Please install it."
fi
}
# Main initialization function
main() {
sleep 0.5
initialize_xdg_portals
initialize_modules
initialize_polkit
}
main

38
.scripts/looking-glass.sh Executable file
View file

@ -0,0 +1,38 @@
#!/bin/sh
# ─< Check if the user is root and set sudo variable if necessary >───────────────────────
check_root() {
_sudo=""
if [ "$(id -u)" -ne 0 ]; then
if command_exists sudo; then
notify-send "looking-glass script" "User is not root. Using sudo for privileged operations."
_sudo="sudo"
else
notify-send "looking-glass script" "No sudo found and you're not root! Can't install packages."
return 1
fi
else
notify-send "looking-glass script" "Root access confirmed."
_sudo=""
fi
}
# Define the name of your VM
VM_NAME="win11"
connect="looking-glass-client -f /dev/shm/looking-glass -F -S input:rawMouse=yes -k"
# Check if the VM is running
if pgrep -f "qemu.*$VM_NAME" >/dev/null; then
notify-send "win11" "VM is already there, connecting now.."
sleep 1.5
$connect
else
notify-send "win11" "VM is currently DOWN. Starting it and connecting then.. Be patient.."
# Start the VM (adjust the command according to your setup)
# Example for starting with libvirt:
$_sudo virsh start "$VM_NAME"
# Example for starting with a direct QEMU command:
# qemu-system-x86_64 -enable-kvm -m 4G -cpu host -smp 4 -hda /path/to/win11.img &
# Wait a moment to ensure the VM starts properly
sleep 5 && $connect
fi

86
.scripts/random_swww.sh Executable file
View file

@ -0,0 +1,86 @@
#!/bin/bash --norc
# ╭───────────────╮
# │ SWWW-settings │
# ╰───────────────╯
export SWWW_TRANSITION_FPS=60
export SWWW_TRANSITION_STEP=60
export SWWW_TRANSITION=center
# ╭───────────────────────────────────────────────────────────────────────────╮
# │ Set default excluded directories if SWWW_EXCLUDED_DIRS is not already set │
# │ Dirs to exclude: Anime, Colorful, Gaming, Gifs, Gruvbox, Logos, Muted, │
# │ Nordic, Windoof │
# ╰───────────────────────────────────────────────────────────────────────────╯
: "${SWWW_EXCLUDED_DIRS:=Anime,Colorful,Gaming,Gifs,Logos,Nordic,Windoof}"
_swww() {
if [ -z "$1" ]; then
# ─< random wallpaper selection >─────────────────────────────────────────────────────────
local wall_dir="$HOME/.wallpapers"
# ─< Create an array of directories to exclude >──────────────────────────────────────────
IFS=',' read -ra EXCLUDED_DIRS <<<"$SWWW_EXCLUDED_DIRS"
# ─< Build the find command with exclusions >─────────────────────────────────────────────
local find_cmd="find \"$wall_dir\" -type f \( -iname \"*.png\" -o -iname \"*.jpg\" -o -iname \"*.gif\" -o -iname \"*.PNG\" -o -iname \"*.JPG\" -o -iname \"*.GIF\" \) -not -path \"*/\.git/*\""
for dir in "${EXCLUDED_DIRS[@]}"; do
find_cmd+=" -not -path \"$wall_dir/$dir/*\""
done
# ─< Select a random picture >────────────────────────────────────────────────────────────
local pic=$(eval $find_cmd | shuf -n 1)
# ─< checking for swww >──────────────────────────────────────────────────────────────────
if command -v swww >/dev/null 2>&1; then
# ─< Check if swww daemon is running, start if not >─────────────────────────────────────
if ! pgrep -x "swww" >/dev/null; then
notify-send "SWWW" "swww not running - starting it now"
swww-daemon
sleep 1 # Give the daemon a second to start
if pgrep -x "swww" >/dev/null; then
notify-send "SWWW" "started successfully"
else
notify-send "ERROR" "seems like swww didn't come up as exspected"
fi
fi
# ─< checking the wall_dir variable >─────────────────────────────────────────────────────
if [[ -d "$wall_dir" ]]; then
# ─< executing swww with the random $pic >────────────────────────────────────────────────
swww img "$pic"
# --transition-fps "$SWWW_TRANSITION_FPS" --transition-step "$SWWW_TRANSITION_STEP" --transition-type "$SWWW_TRANSITION"
notify-send "󰸉 " "Changed wallpaper to $pic"
notify-send " " "Not sourcing from: $SWWW_EXCLUDED_DIRS"
else
notify-send "ERROR" "$wall_dir path not found"
fi
else
notify-send "ERROR" "swww was not found on the system"
fi
else
if command -v swww >/dev/null 2>&1; then
# ─< Check if swww daemon is running, start if not >─────────────────────────────────────
if ! pgrep -x "swww" >/dev/null; then
notify-send "SWWW" "swww not running - starting it now"
swww-daemon
sleep 1 # Give the daemon a second to start
if pgrep -x "swww" >/dev/null; then
notify-send "SWWW" "started successfully"
else
notify-send "ERROR" "seems like swww didn't come up as exspected"
fi
fi
# ─< executing swww with the random $pic >────────────────────────────────────────────────
swww img "$1"
# --transition-fps "$SWWW_TRANSITION_FPS" --transition-step "$SWWW_TRANSITION_STEP" --transition-type "$SWWW_TRANSITION"
notify-send "󰸉 " "Changed wallpaper to $1"
else
notify-send "ERROR" "$1 not found"
fi
fi
}
_swww "$@"

31
.scripts/redshift.sh Executable file
View file

@ -0,0 +1,31 @@
#!/bin/bash --norc
# Check if the given command exists silently
command_exists() {
command -v "$@" >/dev/null 2>&1
}
_rdshft() {
# color temperature for redshift
local temp="5200"
if command_exists redshift; then
pkill redshift redshift
sleep 1
pkill redshift redshift-gtk &&
redshift -P -O "$temp"
# redshift -P -O "$temp"
# Check if redshift is running
sleep 2
if ! pgrep -x redshift-gtk >/dev/null && ! pgrep -x redshift >/dev/null; then
notify-send -u critical "ERROR" "Redshift failed to start. Please check your configuration."
else
notify-send -u normal "INFO" "Redshift started successfully."
fi
else
notify-send -u critical "ERROR" "Redshift is not installed. Please install it for better screen color management."
fi
}
_rdshft

118
.scripts/refresh.sh Executable file
View file

@ -0,0 +1,118 @@
#!/bin/bash
# ─< scriptdir declaration >──────────────────────────────────────────────────────────────
_scripts="$HOME/.config/hypr/.scripts"
# ─< Check if the given command exists silently >─────────────────────────────────────────
command_exists() {
command -v "$@" >/dev/null 2>&1
}
_wallpaper() {
if command -v swww >/dev/null 2>&1; then
if [ -e "$_scripts/random_swww.sh" ]; then
$_scripts/random_swww.sh
else
notify-send -u normal "" "script for initializing wallpaper with swww is missing.."
fi
else
notify-send -u low "" "There may be no wallpaper bc swww is missing!"
fi
}
_kill_() {
# ─< Kill already running processes >─────────────────────────────────────────────────────
hyprpanel="gjs" # since hyprpanel has so many different wordings, making it clear that this is currently the hyprpanel service name
_ps=(gBar wofi swaync waybar $hyprpanel)
for _prs in "${_ps[@]}"; do
if pidof "${_prs}" >/dev/null; then
pkill "${_prs}"
fi
done
}
_redshift() {
. $_scripts/redshift.sh && notify-send -u low "󰴅" "Redshift active"
}
# ─< Relaunch waybar >────────────────────────────────────────────────────────────────────
pywall_waybar() {
notify-send -u low "Bar" "waybar is launching with wal.."
waybar --style $HOME/.config/waybar/pywal_style.css
}
_hyprpanel() {
notify-send -u low "Bar" "hyprpanel is loading.."
hyprpanel &
}
_waybar() {
if command_exists wal; then
pywall_waybar
else
notify-send -u normal "Bar" "waybar is loading.."
waybar --config $HOME/.config/waybar/ai_config.jsonc --style $HOME/.config/waybar/ai_style.css &
fi
}
# ─< Relaunch gBar >──────────────────────────────────────────────────────────────────────
_gBar() {
notify-send -u low "Bar" "gBar is loading.."
gBar bar 0 &
gBar bar 1 &
}
_bar() {
if command_exists hyprpanel; then
_hyprpanel
elif command_exists gBar; then
_gBar
elif command_exists waybar; then
_waybar
else
notify-send -u critical "ERROR" "No 'bar'-provider found! Install either hyprpanel, gBar or waybar!"
fi
}
# # for cava-pywal (note, need to manually restart cava once wallpaper changes)
# # ln -sf "$HOME/.cache/wal/cava-colors" "$HOME/.config/cava/config" || true
# if [ -d "$HOME/.cache/wal/" ]; then
# ln -sf "$HOME/.cache/wal/colors-rofi-dark.rasi" "$HOME/.config/rofi/pywal-color/pywal-theme.rasi" || true
# if [ -e "$HOME/.config/waybar/pywal.css" ]; then
# rm $HOME/.config/waybar/pywal.css
# command cat $HOME/.cache/wal/colors.css >$HOME/.config/waybar/pywal.css
# # pywall_waybar || _waybar
# _gBar
# else
# # _waybar
# _gBar
# fi
# else
# # _waybar
# _gBar
# notify-send -u critical "ERROR" "critical failure! wal is not present!!"
# fi
main() {
notify-send "low" "terminating main wm elements"
_kill_
# relaunch swaync
sleep 0.3
# swaync >/dev/null 2>&1 &
notify-send "low" "bar" "launching.."
_bar
notify-send "low" "wallpaper" "loading.."
_wallpaper
if command_exists redshift; then
notify-send "low" "redshift" "protecting your eyes from the blue light.."
_redshift
fi
exit 0
}
main

3
.scripts/screenshot Executable file
View file

@ -0,0 +1,3 @@
#!/usr/bin/bash
grim -g "$(slurp)" -o $HOME/.config/screenshots/ - | wl-copy -t image/png
notify-send "Screenshot copied to clipboard"

3
.scripts/screenshot_area Executable file
View file

@ -0,0 +1,3 @@
#!/usr/bin/bash
grimshot copy area || exit
notify-send "Screenshot copied to clipboard"

3
.scripts/screenshot_full Executable file
View file

@ -0,0 +1,3 @@
#!/usr/bin/bash
grimshot copy output || exit
notify-send "Screenshot copied to clipboard"

4
.scripts/wlogout.sh Executable file
View file

@ -0,0 +1,4 @@
#!/bin/bash
grim /tmp/shot.png
magick /tmp/shot.png -blur 0x8 /tmp/shot_blurred.png
wlogout --css $HOME/.config/wlogout/style.css

167
hotkeys.conf Normal file
View file

@ -0,0 +1,167 @@
# ╭───────╮
# │ Input │
# ╰───────╯
# https://wiki.hyprland.org/Configuring/Variables/#input
input {
kb_layout = de
kb_variant =
kb_model =
kb_options =
kb_rules =
numlock_by_default = true
follow_mouse = 1
sensitivity = 0 # -1.0 - 1.0, 0 means no modification.
touchpad {
natural_scroll = false
}
}
# ──────────────< 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 = 0
}
# ─────────────────< See https://wiki.hyprland.org/Configuring/Keywords/ >───────────────
$scripts = ~/.config/hypr/.scripts
# ─< set mod key >────────────────────────────────────────────────────────────────────────
$mainMod = ALT # Sets "ALT" key as main modifier
# ╭─────────────╮
# │ MY PROGRAMS │
# ╰─────────────╯
# menus
$rofi = pkill rofi || rofi -show drun -modi drun,filebrowser,run,window,ssh
$tofi = pkill tofi || tofi-drun -c $HOME/.config/tofi/config
# ─< Set programs that you use >──────────────────────────────────────────────────────────
$terminal = kitty --class="shell" -e zsh # wezterm start --always-new-process zsh #bash ghostty kitty --class="shell" -e zsh
$browser = zen-browser # brave-browser
$fileManager = caja # pcmanfm nautilus cosmic-files caja thunar dolphin
$menu = $rofi
$lockscreen = swaylock --screenshots --clock --indicator --effect-pixelate 18 --effect-blur 8x8
$logout = wlogout
$wallpaper = $scripts/random_swww.sh
$notify = swaync-client --open-panel
$test = $scripts/a.sh
$screenshotTool = $scripts/screenshot_area
# Test keybindings
# bind = $mainMod SHIFT, T, exec, $scripts/a.sh
# ─< exit hyprland >──────────────────────────────────────────────────────────────────────
bind = $mainMod, M, exit,
# ─< window-actions >─────────────────────────────────────────────────────────────────────
bind = $mainMod, Q, killactive,
bind = $mainMod SHIFT, F, togglefloating,
bind = $mainMod, F, fullscreen,1
# ─< start predefined applications >─────────────────────────────────────────────────────────────────
bind = $mainMod, T, exec, $terminal
bind = $mainMod SHIFT, T, exec, kitty
bind = $mainMod, C, exec, $browser
bind = $mainMod, E, exec, $fileManager
bind = SUPER, R, exec, $rofi # backup for both variants
bind = SUPER, T, exec, $tofi # backup for both variants
bindr = SUPER, SUPER_L, exec, $menu
bind = $mainMod SHIFT, W, exec, bash -c $wallpaper
bind = $mainMod SHIFT, M, exec, $notify
bind = SUPER SHIFT, S, exec, $screenshotTool
# ─< start other applications >───────────────────────────────────────────────────────────
bind = $mainMod SHIFT, N, exec, nwg-look
bind = $mainMod SHIFT, S, exec, steam
bind = $mainMod, O, exec, obsidian
bind = $mainMod, N, exec, neovide
bind = $mainMod, V, exec, virt-manager
bind = $mainMod, G, exec, $scripts/looking-glass.sh
bind = $mainMod CTRL, RETURN, exec, $logout
bind = $SUPER, L, exec, $lockscreen
# ─< Hotkeys to scripts >─────────────────────────────────────────────────────────────────
bind = $mainMod SHIFT, R, exec, $scripts/refresh.sh
# ─< 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, 0
# ─< Move active window to a workspace with mainMod + SHIFT + [0-9] >─────────────────────
bind = $mainMod SHIFT, 1, movetoworkspace, 1
bind = $mainMod SHIFT, 2, movetoworkspace, 2
bind = $mainMod SHIFT, 3, movetoworkspace, 3
bind = $mainMod SHIFT, 4, movetoworkspace, 4
bind = $mainMod SHIFT, 5, movetoworkspace, 5
bind = $mainMod SHIFT, 6, movetoworkspace, 6
bind = $mainMod SHIFT, 7, movetoworkspace, 7
bind = $mainMod SHIFT, 8, movetoworkspace, 8
bind = $mainMod SHIFT, 9, movetoworkspace, 9
# bind = $mainMod SHIFT, 0, movetoworkspace, 10
# ─< Example special workspace (scratchpad) >─────────────────────────────────────────────
bind = $mainMod, X, togglespecialworkspace, magic
bind = $mainMod SHIFT, X, movetoworkspace, special:magic
bind = $mainMod, Y, togglespecialworkspace, windoof
bind = $mainMod SHIFT, Y, movetoworkspace, special:windoof
# ─< 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
# ───────────────────────────────────────< VIM-Keys >───────────────────────────────────────
# ─< Move focus with mainMod + arrow keys >───────────────────────────────────────────────
bind = $mainMod, l, movefocus, r
bind = $mainMod, h, movefocus, l
bind = $mainMod, k, movefocus, u
bind = $mainMod, j, movefocus, d
# ─< Resize active window with mainMod + vim-keys >───────────────────────────────────────
binde = $mainMod SHIFT, h, resizeactive,-50 0
binde = $mainMod SHIFT, l, resizeactive,50 0
binde = $mainMod SHIFT, k, resizeactive,0 -50
binde = $mainMod SHIFT, j, resizeactive,0 50
# ─< Move active window with mainMod + vim-keys >─────────────────────────────────────────
bind = $mainMod CTRL, l, movewindow, r
bind = $mainMod CTRL, h, movewindow, l
bind = $mainMod CTRL, k, movewindow, u
bind = $mainMod CTRL, j, movewindow, d
# Adjust brightness
bind=,XF86MonBrightnessUp,exec,brightnessctl set +7%
bind=,XF86MonBrightnessDown,exec,brightnessctl set 7%-
# ─< Volume control >───────────────────────────────────────────────────────────────────────
bind=,XF86AudioLowerVolume,exec,pamixer -ud 3 && pamixer --get-volume > /tmp/$HYPRLAND_INSTANCE_SIGNATURE.wob
bind=,XF86AudioRaiseVolume,exec,pamixer -ui 3 && pamixer --get-volume > /tmp/$HYPRLAND_INSTANCE_SIGNATURE.wob
bind=,Button6,exec,pamixer -ud 3 && pamixer --get-volume > /tmp/$HYPRLAND_INSTANCE_SIGNATURE.wob
bind=,Button7,exec,pamixer -ui 3 && pamixer --get-volume > /tmp/$HYPRLAND_INSTANCE_SIGNATURE.wob
# ─< mute sound >───────────────────────────────────────────────────────────────────────────
bind=,XF86AudioMute,exec,amixer sset Master toggle | sed -En '/\[on\]/ s/.*\[([0-9]+)%\].*/\1/ p; /\[off\]/ s/.*/0/p' | head -1 > /tmp/$HYPRLAND_INSTANCE_SIGNATURE.wob
# ─< Playback control >─────────────────────────────────────────────────────────────────────
bind=,XF86AudioPlay,exec, playerctl play-pause
bind=,XF86AudioNext,exec, playerctl next
bind=,XF86AudioPrev,exec, playerctl previous

45
hyprland.conf Normal file
View file

@ -0,0 +1,45 @@
# ╭──────────╮
# │ MONITORS │
# ╰──────────╯
# ─< See https://wiki.hyprland.org/Configuring/Monitors/ >──────────────────────────────────
$h_conf = ~/.config/hypr
# ─< monitors configuration for allowing different machines to have different files, >────
# without confusing with git and without having to have a huge ignorelist
source = $HOME/.monitors.conf
# ╭──────────────╮
# │ Source files │
# ╰──────────────╯
source = $h_conf/hotkeys.conf
source = $h_conf/style.conf
source = $h_conf/workspace-rules.conf
source = $h_conf/windowrules.conf
exec-once = $h_conf/.scripts/init.sh
# exec-once = hyprpanel
# exec-once = copyq --start-server
# exec-once = $scripts/swww_random.sh ~/.wallpapers/
exec-once = dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP
# See https://wiki.hyprland.org/Configuring/Environment-variables/
# ╭───────────────────────╮
# │ Environment-variables │
# ╰───────────────────────╯
env = XCURSOR_SIZE,16
env = HYPRCURSOR_THEME,catppuccin-mocha-dark-cursors
env = HYPRCURSOR_SIZE,28
env = QT_QPA_PLATFORMTHEME,qt6ct # change to qt6ct if you have that
env = QT_QPA_PLATFORM,wayland;xcb
env = QT_SCALE_FACTOR,1
# env = GTK_THEME,Nordic-darker
env = XDG_CURRENT_DESKTOP,Hyprland
env = XDG_SESSION_DESKTOP,Hyprland
env = XDG_SESSION_TYPE,wayland
env = QT_WAYLAND_DISABLE_WINDOWDECORATION,1

115
style.conf Normal file
View file

@ -0,0 +1,115 @@
#####################
### LOOK AND FEEL ###
#####################
# Refer to https://wiki.hyprland.org/Configuring/Variables/
# https://wiki.hyprland.org/Configuring/Variables/#general
general {
gaps_in = 2
gaps_out = 8
border_size = 1
# https://wiki.hyprland.org/Configuring/Variables/#variable-types for info about colors
col.active_border = rgba(ffffffe0) rgba(8f8f8fe0) 45deg
col.inactive_border = rgba(2f2f2fe0)
# 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 = master
layout = dwindle
}
# https://wiki.hyprland.org/Configuring/Variables/#decoration
decoration {
rounding = 2
# Change transparency of focused and unfocused windows
active_opacity = 1.0
inactive_opacity = 1.0
# https://wiki.hyprland.org/Configuring/Variables/#blur
blur {
enabled = true
size = 3
passes = 2
vibrancy = 0.1696
}
}
# https://wiki.hyprland.org/Configuring/Variables/#animations
# animations {
# enabled = yes
#
# bezier = myBezier, 0.05, 0.9, 0.1, 1.05
# bezier = linear, 0.0, 0.0, 1.0, 1.0
# 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 = slow, 0, 0.85, 0.3, 1
# bezier = overshot, 0.7, 0.6, 0.1, 1.1
# bezier = bounce, 1.1, 1.6, 0.1, 0.85
# bezier = sligshot, 1, -1, 0.15, 1.25
# bezier = nice, 0, 6.9, 0.5, -4.20
#
# animation = windowsIn, 1, 7, slow, popin
# animation = windowsOut, 1, 7, winOut, popin
# animation = windowsMove, 1, 7, wind, slide
# animation = border, 1, 10, linear
# # animation = borderangle, 1, 180, linear, loop #used by rainbow borders and rotating colors
# animation = fade, 1, 5, overshot
# animation = workspaces, 1, 7, wind
# animation = windows, 1, 7, bounce, popin
# }
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, 4.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 {
force_default_wallpaper = -1 # Set to 0 or 1 to disable the anime mascot wallpapers
disable_hyprland_logo = false # If true disables the random hyprland logo / anime girl background. :(
enable_swallow = true
swallow_regex = ^(wezterm-gui|kitty|Alacritty|foot)$
animate_manual_resizes = true
}

1
windowrules.conf Normal file
View file

@ -0,0 +1 @@
windowrule = workspace special:windoof, title:^(.*[Ll]ooking [Gg]lass.*)

11
workspace-rules.conf Normal file
View file

@ -0,0 +1,11 @@
workspace = 1, monitor:DP-1, default:true, persitent:true
workspace = 2, monitor:HDMI-1 persitent:true
workspace = 3, monitor:DP-1 persitent:true
workspace = 4, monitor:DP-1 persitent:true
workspace = 5, monitor:DP-1
workspace = 6, monitor:DP-1
workspace = 7, monitor:HDMI-1
workspace = 8, monitor:HDMI-1
workspace = 9, monitor:HDMI-1
workspace = magic, monitor:DP-1
# workspace = 0, monitor:HDMI-1