custom-hypr - up to date
This commit is contained in:
@@ -4,18 +4,68 @@
|
||||
|
||||
# See https://wiki.hyprland.org/Configuring/Animations/
|
||||
|
||||
# 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
|
||||
# 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
|
||||
# }
|
||||
|
||||
|
||||
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
|
||||
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
|
||||
enabled = true
|
||||
# Some default animations, see https://wiki.hyprland.org/Configuring/Animations/ for more
|
||||
bezier = myBezier, 0.05, 0.9, 0.1, 1.05
|
||||
animation = windows, 1, 7, myBezier
|
||||
animation = windowsOut, 1, 7, default, popin 80%
|
||||
animation = border, 1, 10, default
|
||||
animation = borderangle, 1, 8, default
|
||||
animation = fade, 1, 7, default
|
||||
animation = workspaces, 1, 6, default
|
||||
}
|
||||
|
||||
#
|
||||
# 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
|
||||
# }
|
||||
|
||||
14
.config/hypr/custom/animation.conf
Normal file
14
.config/hypr/custom/animation.conf
Normal file
@@ -0,0 +1,14 @@
|
||||
# animations {
|
||||
# enabled = true
|
||||
|
||||
# # Some default animations, see https://wiki.hyprland.org/Configuring/Animations/ for more
|
||||
|
||||
# bezier = myBezier, 0.05, 0.9, 0.1, 1.05
|
||||
|
||||
# animation = windows, 1, 7, myBezier
|
||||
# animation = windowsOut, 1, 7, default, popin 80%
|
||||
# animation = border, 1, 10, default
|
||||
# animation = borderangle, 1, 8, default
|
||||
# animation = fade, 1, 7, default
|
||||
# animation = workspaces, 1, 6, default
|
||||
# }
|
||||
@@ -0,0 +1 @@
|
||||
env = GTK_IM_MODULE,fcitx
|
||||
|
||||
@@ -4,3 +4,4 @@ source = ~/.config/hypr/custom/execs.conf
|
||||
source = ~/.config/hypr/custom/keybinding.conf
|
||||
source = ~/.config/hypr/custom/windowrules.conf
|
||||
source = ~/.config/hypr/custom/env.conf
|
||||
source = ~/.config/hypr/custom/animation.conf
|
||||
|
||||
@@ -63,8 +63,13 @@ dwindle {
|
||||
}
|
||||
|
||||
misc {
|
||||
vrr = 0
|
||||
vfr = false
|
||||
disable_hyprland_logo = true
|
||||
disable_splash_rendering = true
|
||||
force_default_wallpaper = 0
|
||||
background_color = rgba(12131CFF)
|
||||
vfr = true
|
||||
new_window_takes_over_fullscreen = 2
|
||||
}
|
||||
|
||||
plugin {
|
||||
|
||||
@@ -49,9 +49,9 @@ bind = Shift+Alt, F, fullscreen, 0
|
||||
bind = Alt, E, exec, nautilus --new-window # Launch Nautilus (file manager)
|
||||
|
||||
bind = Alt, T, exec, kitty
|
||||
bind = Alt, B, exec, thorium-browser
|
||||
bind = Alt, B, exec, thorium-browser --enable-features=UseOzonePlatform --ozone-platform=wayland --enable-wayland-ime # phai them cai nay vao no moi chay tren wayland chuan xac duoc
|
||||
bind = Shift+Alt, B, exec, brave
|
||||
bind = Alt, O, exec, obsidian --no-sandbox --ozone-platform=wayland --ozone-platform-hint=auto --enable-features=UseOzonePlatform,WaylandWindowDecorations %U
|
||||
bind = Alt, O, exec, obsidian
|
||||
bind = Alt, V, exec, vesktop --no-sandbox --ozone-platform=wayland --ozone-platform-hint=auto --enable-features=UseOzonePlatform,WaylandWindowDecorations %U
|
||||
|
||||
|
||||
@@ -67,3 +67,4 @@ $scrPath = $HOME/.local/share/bin # set scripts path
|
||||
|
||||
bind = $mainMod+Shift, S, exec, $scrPath/screenshot.sh sf # partial screenshot capture (frozen screen)
|
||||
bind = , Print, exec, $scrPath/screenshot.sh p # all monitors screenshot capture
|
||||
|
||||
|
||||
@@ -49,7 +49,7 @@ env = PATH,$PATH:$scrPath
|
||||
env = XDG_CURRENT_DESKTOP,Hyprland
|
||||
env = XDG_SESSION_TYPE,wayland
|
||||
env = XDG_SESSION_DESKTOP,Hyprland
|
||||
env = QT_QPA_PLATFORM,wayland;xcb
|
||||
env = QT_QPA_PLATFORM,wayland;fcitx
|
||||
env = QT_QPA_PLATFORMTHEME,qt6ct
|
||||
env = QT_WAYLAND_DISABLE_WINDOWDECORATION,1
|
||||
env = QT_AUTO_SCREEN_SCALE_FACTOR,1
|
||||
|
||||
0
.config/hypr/scripts/movetoworkspace.sh
Normal file
0
.config/hypr/scripts/movetoworkspace.sh
Normal file
@@ -21,7 +21,7 @@ hyprctl dispatch fullscreenstate 0 # minimize trước khi di chuyển
|
||||
# NOTE: Di chuyển cửa sổ nếu vị trí X vượt qua ngưỡng
|
||||
if [ $window_x_position -eq 1934 ] && [ $window_state -eq 1 ]; then
|
||||
|
||||
if [ $current_workspace -eq 6 ]; then
|
||||
if [ $current_workspace -eq 8 ]; then
|
||||
exit 1
|
||||
fi
|
||||
hyprctl dispatch movetoworkspace $((window_at_workspace+1)) \
|
||||
@@ -33,7 +33,7 @@ fi
|
||||
|
||||
if [ $window_x_position -eq 1934 ] && [ $window_width -eq 1892 ]; then
|
||||
|
||||
if [ $current_workspace -eq 6 ]; then
|
||||
if [ $current_workspace -eq 8 ]; then
|
||||
exit 1
|
||||
fi
|
||||
hyprctl dispatch movetoworkspace $((window_at_workspace+1)) \
|
||||
@@ -46,7 +46,7 @@ fi
|
||||
|
||||
if [ $window_x_position -eq 2990 ]; then
|
||||
|
||||
if [ $current_workspace -eq 6 ]; then
|
||||
if [ $current_workspace -eq 8 ]; then
|
||||
exit 1
|
||||
fi
|
||||
hyprctl dispatch movetoworkspace $((window_at_workspace+1)) \
|
||||
|
||||
@@ -21,15 +21,14 @@ fi
|
||||
|
||||
# Check if primary_monitor_workspace is less than or equal to 0
|
||||
# or if secondary_monitor_workspace is greater than or equal to 11
|
||||
if [ "$primary_monitor_workspace" -le 0 ] || [ "$secondary_monitor_workspace" -ge 7 ]; then
|
||||
if [ "$primary_monitor_workspace" -le 0 ] || [ "$secondary_monitor_workspace" -ge 9 ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
||||
hyprctl dispatch fullscreenstate 0 \
|
||||
&&hyprctl dispatch focusmonitor 1 \
|
||||
hyprctl dispatch focusmonitor 0 \
|
||||
&&hyprctl dispatch workspace $primary_monitor_workspace \
|
||||
&&hyprctl dispatch focusmonitor 0 \
|
||||
&&hyprctl dispatch focusmonitor 1 \
|
||||
&&hyprctl dispatch workspace $secondary_monitor_workspace \
|
||||
&&hyprctl dispatch focusmonitor $current_monitor \
|
||||
&&hyprctl dispatch focusmonitor $current_monitor
|
||||
exit 0
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Extract workspace ID from the output of hyprctl activewindow
|
||||
current_monitor=$(hyprctl activeworkspace | grep 'monitorID' | awk '{print $2}')
|
||||
current_workspace=$(hyprctl activeworkspace | grep 'workspace' | awk '{print $3}')
|
||||
@@ -21,16 +22,13 @@ fi
|
||||
|
||||
# Check if primary_monitor_workspace is less than or equal to 0
|
||||
# or if secondary_monitor_workspace is greater than or equal to 11
|
||||
if [ "$primary_monitor_workspace" -le 0 ] || [ "$secondary_monitor_workspace" -ge 7 ]; then
|
||||
if [ "$primary_monitor_workspace" -le 0 ] || [ "$secondary_monitor_workspace" -ge 9 ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
hyprctl dispatch fullscreenstate 0 \
|
||||
&&hyprctl dispatch focusmonitor 0 \
|
||||
hyprctl dispatch focusmonitor 0 \
|
||||
&&hyprctl dispatch workspace $primary_monitor_workspace \
|
||||
&&hyprctl dispatch focusmonitor 1 \
|
||||
&&hyprctl dispatch workspace $secondary_monitor_workspace \
|
||||
&&hyprctl dispatch focusmonitor $current_monitor
|
||||
exit 0
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user