update

This commit is contained in:
lia
2025-08-14 16:05:02 +02:00
parent 79d64008e1
commit 8802652f2f
22 changed files with 804 additions and 1 deletions

46
.config/hypr/env.conf Normal file
View File

@@ -0,0 +1,46 @@
# _|_|_ _ ._ _ _ _
# |_| |(/_| | |(/__>
env = QT_QPA_PLATFORMTHEME,gtk3
env = QT_STYLE_OVERRIDE,adwaita
env = GTK_THEME,Orchis-Teal-Dark-Compact
env = HYPRCURSOR_THEME,Bibata-Modern-Ice
env = HYPRCURSOR_SIZE,24
# _| _
# ><(_|(_|
# _|
env = XDG_CURRENT_DESKTOP,Hyprland
env = XDG_SESSION_TYPE,wayland
env = XDG_SESSION_DESKTOP,Hyprland
#env = XDG_DATA_DIRS,"$XDG_DATA_HOME:/usr/local/share/:/usr/share/"
#env = XDG_DATA_DIR,"$XDG_DATA_HOME:/usr/local/share/:/usr/share/"
#env = GSETTINGS_SCHEMA_DIR,"/usr/share/glib-2.0/schemas"
# _. | _.._ _|
# \/\/(_|\/|(_|| |(_|
# /
env = GDK_BACKEND,wayland
env = QT_QPA_PLATFORM,wayland
env = QT_AUTO_SCREEN_SCALE_FACTOR,1
env = QT_WAYLAND_DISABLE_WINDOWDECORATION,1
env = SDL_VIDEODRIVER,wayland
env = _JAVA_AWT_WM_NONREPARENTING,1
env = WLR_NO_HARDWARE_CURSORS,1
env = MOZ_DISABLE_RDD_SANDBOX,1
env = MOZ_ENABLE_WAYLAND,1
env = OZONE_PLATFORM,wayland
# __ _ (_)__ ____
# / ' \/ (_-</ __/
# /_/_/_/_/___/\__/
# env = LD_PRELOAD,/usr/lib/libgcompat.so.0

View File

@@ -0,0 +1,40 @@
# _|_|_ _ ._ _ _ _
# |_| |(/_| | |(/__>
env = QT_QPA_PLATFORMTHEME,gtk3
# env = QT_STYLE_OVERRIDE,adwaita
env = HYPRCURSOR_THEME,Bibata-Modern-Ice
env = HYPRCURSOR_SIZE,24
# _| _
# ><(_|(_|
# _|
env = XDG_CURRENT_DESKTOP,Hyprland
env = XDG_SESSION_TYPE,wayland
env = XDG_SESSION_DESKTOP,Hyprland
#env = XDG_DATA_DIRS,"$XDG_DATA_HOME:/usr/local/share/:/usr/share/"
#env = XDG_DATA_DIR,"$XDG_DATA_HOME:/usr/local/share/:/usr/share/"
#env = GSETTINGS_SCHEMA_DIR,"/usr/share/glib-2.0/schemas"
# _. | _.._ _|
# \/\/(_|\/|(_|| |(_|
# /
env = GDK_BACKEND,wayland
env = QT_QPA_PLATFORM,wayland
env = QT_AUTO_SCREEN_SCALE_FACTOR,1
env = QT_WAYLAND_DISABLE_WINDOWDECORATION,1
env = QT_IM_MODULE,ibus
env = SDL_VIDEODRIVER,wayland
env = _JAVA_AWT_WM_NONREPARENTING,1
env = WLR_NO_HARDWARE_CURSORS,1
env = MOZ_DISABLE_RDD_SANDBOX,1
env = MOZ_ENABLE_WAYLAND,1
env = OZONE_PLATFORM,wayland

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

@@ -0,0 +1,114 @@
# o._ _ ._ _ .__|_ _
# || | ||_)(_)| |__>
# |
source = ~/.config/hypr/startup.conf
source = ~/.config/hypr/env.conf
source = ~/.config/hypr/rules.conf
source = ~/.config/hypr/keybinds.conf
# _ _ ._ _ .__.|
# (_|(/_| |(/_|(_||
# _|
general {
gaps_in = 4
gaps_out = 6
border_size = 1
#col.active_border = rgba(F38BA8FF) rgba(EBA0ACFF) rgba(FAB387FF) rgba(F9E2AFFF) 45deg
col.active_border = rgba(A6E3A1FF) rgba(8AE2C5FF) rgba(64C896FF) rgba(52B478FF) 45deg;
col.inactive_border = rgba(11111bff)
no_border_on_floating = false # enable border on float window
layout = master
no_focus_fallback = false
resize_on_border = false
}
# _|o _._ | _. _
# (_||_>|_)|(_|\/_>
# | /
monitor = DP-2,1920x1080@60,0x0,1,bitdepth,8,vrr,0
monitor = DP-3,1920x1080@144,1920x0,1,bitdepth,8,vrr,2
# monitor = ,preferred,auto,auto
# o._ ._ _|_ _
# || ||_)|_||__>
# |
input {
kb_layout = de # XKB layout
follow_mouse = 1
sensitivity = 0 # -1.0 - 1.0, 0 means no modification.
force_no_accel = 1
numlock_by_default = false
repeat_rate = 30
repeat_delay = 200
accel_profile = flat # flat, adaptive
natural_scroll = false
}
# _.._ o._ _ _._|_o _ ._
# (_|| ||| | |(_| |_|(_)| |
animations {
enabled = true
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
animation = windows, 1, 6, wind, slide
animation = windowsIn, 1, 6, winIn, slide
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
}
# _| _ _ _ ._
# (_|(/_(_(_)|
decoration {
rounding = 0
active_opacity = 1.0
inactive_opacity = 0.9
blur {
enabled = true
size = 4
passes = 4
new_optimizations = true
xray = true
ignore_opacity = true
}
blurls = gtk-layer-shell
blurls = waybar
blurls = lockscreen
}
# ._ _ o _ _
# | | ||_>(_
misc {
disable_hyprland_logo = true
disable_splash_rendering = true
mouse_move_enables_dpms = true
vfr = true
vrr = 1
animate_manual_resizes = true
mouse_move_focuses_monitor = true
enable_swallow = true
swallow_regex = ^(wezterm)$
}

View File

@@ -0,0 +1,90 @@
# | _ |_ o._ _| _
# |<(/_\/|_)|| |(_|_>
# ~ configs by luciel ♡
$scripts = ~/.config/hypr/scripts
$term = sakura
$files = nemo
# _ _.__ _ ._ _|_ __|_ _
# _>(_|(/_(/_| |_>| |(_)|__>
# bind = SUPER, S, exec, $screenshot full
# bind = SUPER SHIFT, S, exec, hyprshot -m region
bind = SUPER SHIFT, S, exec, grim -g "$(slurp)" - | wl-copy --type image/png
# ._ _ o _ _
# | | ||_>(_
bind = SUPER SHIFT, C, exec, sh $scripts/colorpicker.sh
bind = SUPER SHIFT, L, exec, wlogout -p xdg
bind = SUPER, Return, exec, $term
bind = SUPER, E, exec, $files
bind = SUPER, R, exec, killall tofi-drun || tofi-drun
bind = SUPER, B, exec, killall -SIGUSR1 waybar
bind = SUPER SHIFT, B, exec, killall -SIGUSR2 waybar
# o._ _| _ _
# \/\/|| |(_|(_)\/\/_>
bind = SUPER, Q, killactive,
bind = SUPER, F, fullscreen,
bind = SUPER, SPACE, togglefloating,
bind = SUPER, Tab, cyclenext,
bind = SUPER, Tab, bringactivetotop,
bindm = SUPER, mouse:272, movewindow
bindm = SUPER, mouse:273, resizewindow
# ._ _ _ _
# | | |(_)\/(/_
bind = SUPER SHIFT, left, movewindow, l
bind = SUPER SHIFT, right, movewindow, r
bind = SUPER SHIFT, up, movewindow, u
bind = SUPER SHIFT, down, movewindow, d
# _|_ _.|_ _
# |_(_||_)_>
bind = SUPER, g, togglegroup
bind = SUPER, tab, changegroupactive
# _ ._| _._ _. _ _ _
# \/\/(_)| |<_>|_)(_|(_(/__>
# |
bind = SUPER, 1, workspace, 1
bind = SUPER, 2, workspace, 2
bind = SUPER, 3, workspace, 3
bind = SUPER, 4, workspace, 4
bind = SUPER, 5, workspace, 5
bind = SUPER, 6, workspace, 6
bind = SUPER, 7, workspace, 7
bind = SUPER, 8, workspace, 8
bind = SUPER, 9, workspace, 9
bind = SUPER, 0, workspace, 10
bind = SUPER ALT, up, workspace, e+1
bind = SUPER ALT, down, workspace, e-1
bind = SUPER, mouse_up, workspace, e+1
bind = SUPER, mouse_down, workspace, e-1
bind = SUPER SHIFT, 1, movetoworkspace, 1
bind = SUPER SHIFT, 2, movetoworkspace, 2
bind = SUPER SHIFT, 3, movetoworkspace, 3
bind = SUPER SHIFT, 4, movetoworkspace, 4
bind = SUPER SHIFT, 5, movetoworkspace, 5
bind = SUPER SHIFT, 6, movetoworkspace, 6
bind = SUPER SHIFT, 7, movetoworkspace, 7
bind = SUPER SHIFT, 8, movetoworkspace, 8
bind = SUPER SHIFT, 9, movetoworkspace, 9
bind = SUPER SHIFT, 0, movetoworkspace, 10
bind = SUPER, a, togglespecialworkspace
bind = SUPERSHIFT, a, movetoworkspace, special

74
.config/hypr/rules.conf Normal file
View File

@@ -0,0 +1,74 @@
# ._ | _ _
# ||_||(/__>
windowrulev2 = opacity 0.90 0.90,class:^(floorp)$
windowrulev2 = opacity 0.80 0.80,class:^(Steam)$
windowrulev2 = opacity 0.80 0.80,class:^(steam)$
windowrulev2 = opacity 0.80 0.80,class:^(steamwebhelper)$
windowrulev2 = opacity 0.80 0.80,class:^(Spotify)$
windowrulev2 = opacity 0.80 0.80,class:^(tidal-hifi)$
windowrulev2 = opacity 0.80 0.80,class:^(Code)$
windowrulev2 = opacity 0.80 0.80,class:^(nemo)$
windowrulev2 = opacity 0.80 0.80,class:^(file-roller)$
windowrulev2 = opacity 0.80 0.80,class:^(nwg-look)$
windowrulev2 = opacity 0.80 0.80,class:^(qt5ct)$
windowrulev2 = opacity 0.80 0.80,class:^(discord)$
windowrulev2 = opacity 0.80 0.80,class:^(discord-canary)$
windowrulev2 = opacity 0.80 0.80,class:^(ayugram-desktop)$
windowrulev2 = opacity 0.80 0.80,class:^(element-desktop)$
windowrulev2 = opacity 0.80 0.70,class:^(pavucontrol)$
windowrulev2 = opacity 0.80 0.70,class:^(org.kde.polkit-kde-authentication-agent-1)$
windowrulev2 = opacity 0.80 0.80,class:^(code-insiders)$
windowrulev2 = opacity 0.80 0.80,class:^(kitty)$
windowrulev2 = opacity 0.80 0.80,class:^(sakura)$
windowrulev2 = opacity 0.80 0.80,class:^(idea)$
windowrulev2 = opacity 0.80 0.80,class:^(idea-wrapper)$
windowrulev2 = opacity 0.70 0.70,title:^(TIDAL - .* - TIDAL)$
windowrulev2 = opacity 0.70 0.70,title:^(ice.stellaris.fyi .*)$
windowrulev2 = opacity 0.70 0.70,title:^(< polycule >)$
windowrulev2 = float,class:^(org.kde.polkit-kde-authentication-agent-1)$
windowrulev2 = float,class:^(pavucontrol)$
windowrulev2 = float,class:^(iwgtk)$
windowrulev2 = float,title:^(iwgtk)$
windowrulev2 = float,title:^(Media viewer)$
windowrulev2 = float,title:^(Volume Control)$
windowrulev2 = float,title:^(Picture-in-Picture)$
windowrulev2 = float,class:^(Viewnior)$
windowrulev2 = float,title:^(DevTools)$
windowrulev2 = float,class:^(file_progress)$
windowrulev2 = float,class:^(confirm)$
windowrulev2 = float,class:^(dialog)$
windowrulev2 = float,class:^(download)$
windowrulev2 = float,class:^(notification)$
windowrulev2 = float,class:^(error)$
windowrulev2 = float,class:^(confirmreset)$
windowrulev2 = float,title:^(Open File)$
windowrulev2 = float,title:^(branchdialog)$
windowrulev2 = float,title:^(Confirm to replace files)
windowrulev2 = float,title:^(File Operation Progress)
windowrulev2 = float,class:^(wezterm-gui)$
windowrulev2 = float,class:^(kitty)$
windowrulev2 = float,class:^(sakura)$
windowrulev2 = float,class:^(nemo)$
windowrulev2 = float,class:^(idea)$
windowrulev2 = float,class:^(idea-wrapper)$
windowrulev2 = move 75% 50,title:^(iwgtk)$
windowrulev2 = move 62% 50,title:^(Volume Control)$
windowrulev2 = size 75% 75%,class:^(download)$
windowrulev2 = size 75% 75%,title:^(Open File)$
windowrulev2 = size 75% 75%,title:^(Save File)$
windowrulev2 = size 30% 50%,title:^(Volume Control)$
windowrulev2 = size 50% 50%,class:^(wezterm-gui)$
windowrulev2 = size 50% 50%,class:^(sakura)$
windowrulev2 = size 50% 50%,class:^(nemo)$
windowrulev2 = idleinhibit focus,class:^(mpv)$
windowrulev2 = idleinhibit fullscreen,class:^(floorp)$
windowrulev2 = opacity 0.0 override 0.0 override,class:^(xwaylandvideobridge)$
windowrulev2 = noanim,class:^(xwaylandvideobridge)$
windowrulev2 = nofocus,class:^(xwaylandvideobridge)$
windowrulev2 = noinitialfocus,class:^(xwaylandvideobridge)$

View File

@@ -0,0 +1,28 @@
#!/bin/bash
TMPPST=$(wl-paste)
CMD=$(echo "$TMPPST")
TMP=/tmp/xcolor_$CMD.png
hyprpick() {
hyprpicker -a -n
}
check_dependencies() {
! command -v hyprpicker &>/dev/null &&
notify-send -u critical -a "Color Picker" xcolor-pick "gpick needs to be installed" && exit 1
! command -v magick &>/dev/null &&
notify-send -u critical -a "Color Picker" xcolor-pick "imagemagick needs to be installed" && exit 1
}
main() {
convert -size 120x120 xc:"$CMD" "$TMP"
printf %s "$CMD" | wl-paste
notify-send -a "Color Picker" -i "$TMP" xcolor-pick "$CMD"
}
check_dependencies
hyprpick
main

View File

@@ -0,0 +1,14 @@
#!/usr/bin/env sh
HYPRGAMEMODE=$(hyprctl getoption animations:enabled | sed -n '2p' | awk '{print $2}')
if [ $HYPRGAMEMODE = 1 ] ; then
hyprctl --batch "\
keyword animations:enabled 0;\
keyword decoration:drop_shadow 0;\
keyword decoration:blur 0;\
keyword general:gaps_in 0;\
keyword general:gaps_out 0;\
keyword general:border_size 1;\
keyword decoration:rounding 0"
exit
fi
hyprctl reload

View File

@@ -0,0 +1,52 @@
#!/usr/bin/env sh
## main script ##
CFGDIR="$HOME/.config"
X_MODE=$1
## check mode ##
if [ "$X_MODE" == "dark" ] || [ "$X_MODE" == "light" ] ; then
S_MODE="$X_MODE"
elif [ "$X_MODE" == "switch" ] ; then
X_MODE=`readlink $CFGDIR/swww/wall.set | awk -F "." '{print $NF}'`
if [ "$X_MODE" == "dark" ] ; then
S_MODE="light"
flatpak --user override --env=GTK_THEME=Catppuccin-Latte
elif [ "$X_MODE" == "light" ] ; then
S_MODE="dark"
flatpak --user override --env=GTK_THEME=Catppuccin-Mocha
else
echo "ERROR: unable to fetch wallpaper mode."
fi
else
echo "ERROR: unknown mode, use 'dark', 'light' or 'switch'."
exit 1
fi
### hyprland ###
ln -fs $CFGDIR/hypr/${S_MODE}.conf $CFGDIR/hypr/theme.conf
hyprctl reload
### swwwallpaper ###
x=`echo $S_MODE | cut -c 1`
$CFGDIR/swww/swwwallpaper.sh -$x
### qt5ct ###
ln -fs $CFGDIR/qt5ct/colors/${S_MODE}.conf $CFGDIR/qt5ct/colors/theme.conf
### rofi ###
ln -fs $CFGDIR/rofi/${S_MODE}.rasi $CFGDIR/rofi/theme.rasi
### kitty ###
ln -fs $CFGDIR/kitty/${S_MODE}.conf $CFGDIR/kitty/theme.conf
killall -SIGUSR1 kitty
### waybar ###
ln -fs $CFGDIR/waybar/${S_MODE}.css $CFGDIR/waybar/style.css
sleep 1
killall -SIGUSR2 waybar

View File

@@ -0,0 +1,16 @@
#!/bin/bash
sleep 1
killall xdg-desktop-portal-hyprland
killall xdg-desktop-portal-gnome
killall xdg-desktop-portal-wlr
killall xdg-desktop-portal
logger 'killed all xdg-desktop'
sleep 1
/usr/lib/xdg-desktop-portal-hyprland &
logger 'xdg-desktop-portal-hyprland started'
sleep 2
/usr/libexec/xdg-desktop-portal &
logger 'xdg-desktop-portal started'

31
.config/hypr/startup.conf Normal file
View File

@@ -0,0 +1,31 @@
# _| _
# ><(_|(_|
# _|
exec-once = ~/.config/hypr/scripts/resetxdgportal.sh
exec-once = dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP
exec-once = hyprctl setcursor Bibata-Modern-Ice 24
# _ __|_ _ ._ _
# _>\/_> |_(/_| | |
# /
exec-once = /usr/bin/pipewire & /usr/bin/pipewire-pulse & /usr/bin/wireplumber
exec-once = /usr/lib/polkit-kde-authentication-agent-1
# exec-once = /usr/libexec/polkit-gnome-authentication-agent-1
#exec-once = /usr/bin/xwaylandvideobridge
exec-once = xwayland-satellite
# _.|| _
# \/\/(_|||_>
exec-once = swww-daemon & swww img --transition-fps=144 -t wave --transition-bezier 0.16,0.57,0.57,-0.32 --transition-duration 2 --transition-step 255 --transition-angle 315 "/home/iouring/Pictures/walls/Madoka-Magica-Walpurgisnacht-Rising-Side-Homura-tokuhou-screenshot-1_upscayl_2x_digital-art-4x.png"
# exec-once = mpvpaper -vs -o "vo=libmpv --gpu-api=vulkan --hwdec=auto --no-audio --loop --loop-playlist --keepaspect=no --geometry=100%x100%" "*" "/home/luciel/Pictures/walls/anims/video (3).mp4"
# ._ _ o _ _
# | | ||_>(_
exec-once = waybar & mako