custom-hypr - synchronously multiple call
This commit is contained in:
@@ -1,14 +0,0 @@
|
|||||||
# 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
|
|
||||||
# }
|
|
||||||
@@ -8,5 +8,6 @@ exec-once = fcitx5
|
|||||||
exec-once = waybar -c ~/.config/waybar/primary_screen/config.jsonc
|
exec-once = waybar -c ~/.config/waybar/primary_screen/config.jsonc
|
||||||
exec-once = waybar -c ~/.config/waybar/secondary_screen/config.jsonc
|
exec-once = waybar -c ~/.config/waybar/secondary_screen/config.jsonc
|
||||||
|
|
||||||
|
|
||||||
exec = gsettings set org.gnome.desktop.interface icon-theme 'Nordzy'
|
exec = gsettings set org.gnome.desktop.interface icon-theme 'Nordzy'
|
||||||
exec = hyprctl setcursor Gruvbox-Retro 20
|
exec = hyprctl setcursor Gruvbox-Retro 20
|
||||||
|
|||||||
@@ -4,4 +4,3 @@ source = ~/.config/hypr/custom/execs.conf
|
|||||||
source = ~/.config/hypr/custom/keybinding.conf
|
source = ~/.config/hypr/custom/keybinding.conf
|
||||||
source = ~/.config/hypr/custom/windowrules.conf
|
source = ~/.config/hypr/custom/windowrules.conf
|
||||||
source = ~/.config/hypr/custom/env.conf
|
source = ~/.config/hypr/custom/env.conf
|
||||||
source = ~/.config/hypr/custom/animation.conf
|
|
||||||
|
|||||||
@@ -56,6 +56,7 @@ bind = Alt, V, exec, vesktop --no-sandbox --ozone-platform=wayland --ozone-platf
|
|||||||
|
|
||||||
|
|
||||||
bind = SUPER, SUPER_L, exec, pkill -x rofi || $scrPath/rofilaunch.sh d # launch application launcher
|
bind = SUPER, SUPER_L, exec, pkill -x rofi || $scrPath/rofilaunch.sh d # launch application launcher
|
||||||
|
bind = SUPER, L, exec, swaylock # launch lock screen
|
||||||
bind = Ctrl+SUPER, Ctrl+SUPER_L, exec, rofi
|
bind = Ctrl+SUPER, Ctrl+SUPER_L, exec, rofi
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -40,9 +40,9 @@ bind = $mainMod, Tab, exec, pkill -x rofi || $scrPath/rofilaunch.sh w # launch w
|
|||||||
bind = $mainMod+Shift, E, exec, pkill -x rofi || $scrPath/rofilaunch.sh f # launch file explorer
|
bind = $mainMod+Shift, E, exec, pkill -x rofi || $scrPath/rofilaunch.sh f # launch file explorer
|
||||||
|
|
||||||
# Audio control
|
# Audio control
|
||||||
bindl = , F10, exec, $scrPath/volumecontrol.sh -o m # toggle audio mute
|
# bindl = , F10, exec, $scrPath/volumecontrol.sh -o m # toggle audio mute
|
||||||
bindel = , F11, exec, $scrPath/volumecontrol.sh -o d # decrease volume
|
# bindel = , F11, exec, $scrPath/volumecontrol.sh -o d # decrease volume
|
||||||
bindel = , F12, exec, $scrPath/volumecontrol.sh -o i # increase volume
|
# bindel = , F12, exec, $scrPath/volumecontrol.sh -o i # increase volume
|
||||||
bindl = , XF86AudioMute, exec, $scrPath/volumecontrol.sh -o m # toggle audio mute
|
bindl = , XF86AudioMute, exec, $scrPath/volumecontrol.sh -o m # toggle audio mute
|
||||||
bindl = , XF86AudioMicMute, exec, $scrPath/volumecontrol.sh -i m # toggle microphone mute
|
bindl = , XF86AudioMicMute, exec, $scrPath/volumecontrol.sh -i m # toggle microphone mute
|
||||||
bindel = , XF86AudioLowerVolume, exec, $scrPath/volumecontrol.sh -o d # decrease volume
|
bindel = , XF86AudioLowerVolume, exec, $scrPath/volumecontrol.sh -o d # decrease volume
|
||||||
|
|||||||
@@ -13,23 +13,30 @@ window_state=$(echo "$window_info" | grep 'fullscreen:' | awk '{print $2}')
|
|||||||
current_workspace=$(hyprctl activeworkspace | grep 'workspace' | awk '{print $3}')
|
current_workspace=$(hyprctl activeworkspace | grep 'workspace' | awk '{print $3}')
|
||||||
window_width=$(echo "$window_info" | grep 'size:' | awk '{print $2}' | cut -d',' -f1)
|
window_width=$(echo "$window_info" | grep 'size:' | awk '{print $2}' | cut -d',' -f1)
|
||||||
|
|
||||||
echo $window_stat
|
|
||||||
echo $window_x_position
|
|
||||||
echo $window_width
|
|
||||||
|
|
||||||
hyprctl dispatch fullscreenstate 0 # minimize trước khi di chuyển
|
hyprctl dispatch fullscreenstate 0 # minimize trước khi di chuyển
|
||||||
|
|
||||||
|
move(){
|
||||||
|
# hyprctl dispatch movetoworkspace $((window_at_workspace-1)) \
|
||||||
|
# && hyprctl dispatch focusmonitor 0 \
|
||||||
|
# && hyprctl dispatch workspace $((current_workspace-2)) \
|
||||||
|
# && hyprctl dispatch focusmonitor 1
|
||||||
|
|
||||||
|
hyprctl --batch "
|
||||||
|
dispatch movetoworkspace $((window_at_workspace-1)) ;
|
||||||
|
dispatch focusmonitor 0 ;
|
||||||
|
dispatch workspace $((current_workspace-2)) ;
|
||||||
|
dispatch focusmonitor 1
|
||||||
|
"
|
||||||
|
exit 0
|
||||||
|
}
|
||||||
|
|
||||||
# NOTE: Di chuyển cửa sổ nếu vị trí X vượt qua ngưỡng
|
# NOTE: Di chuyển cửa sổ nếu vị trí X vượt qua ngưỡng
|
||||||
if [ $window_x_position -eq 14 ] && [ $window_state -eq 1 ]; then
|
if [ $window_x_position -eq 14 ] && [ $window_state -eq 1 ]; then
|
||||||
|
|
||||||
if [ $current_workspace -eq 1 ]; then
|
if [ $current_workspace -eq 1 ]; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
hyprctl dispatch movetoworkspace $((window_at_workspace-1)) \
|
move
|
||||||
&& hyprctl dispatch focusmonitor 0 \
|
|
||||||
&& hyprctl dispatch workspace $((current_workspace-2)) \
|
|
||||||
&& hyprctl dispatch focusmonitor 1
|
|
||||||
exit 0
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ $window_x_position -eq 14 ] && [ $window_width -eq 1892 ]; then
|
if [ $window_x_position -eq 14 ] && [ $window_width -eq 1892 ]; then
|
||||||
@@ -37,11 +44,7 @@ if [ $window_x_position -eq 14 ] && [ $window_width -eq 1892 ]; then
|
|||||||
if [ $current_workspace -eq 1 ]; then
|
if [ $current_workspace -eq 1 ]; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
hyprctl dispatch movetoworkspace $((window_at_workspace-1)) \
|
move
|
||||||
&& hyprctl dispatch focusmonitor 0 \
|
|
||||||
&& hyprctl dispatch workspace $((current_workspace-2)) \
|
|
||||||
&& hyprctl dispatch focusmonitor 1
|
|
||||||
exit 0
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
@@ -50,11 +53,7 @@ if [ $window_x_position -eq 14 ]; then
|
|||||||
if [ $current_workspace -eq 1 ]; then
|
if [ $current_workspace -eq 1 ]; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
hyprctl dispatch movetoworkspace $((window_at_workspace-1)) \
|
move
|
||||||
&& hyprctl dispatch focusmonitor 0 \
|
|
||||||
&& hyprctl dispatch workspace $((current_workspace-2)) \
|
|
||||||
&& hyprctl dispatch focusmonitor 1
|
|
||||||
exit 0
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Nếu không thoả điều kiện di chuyển, di chuyển cửa sổ sang phải
|
# Nếu không thoả điều kiện di chuyển, di chuyển cửa sổ sang phải
|
||||||
|
|||||||
@@ -12,23 +12,30 @@ window_state=$(echo "$window_info" | grep 'fullscreen:' | awk '{print $2}')
|
|||||||
current_workspace=$(hyprctl activeworkspace | grep 'workspace' | awk '{print $3}')
|
current_workspace=$(hyprctl activeworkspace | grep 'workspace' | awk '{print $3}')
|
||||||
window_width=$(echo "$window_info" | grep 'size:' | awk '{print $2}' | cut -d',' -f1)
|
window_width=$(echo "$window_info" | grep 'size:' | awk '{print $2}' | cut -d',' -f1)
|
||||||
|
|
||||||
echo $window_stat
|
|
||||||
echo $window_x_position
|
|
||||||
echo $window_width
|
|
||||||
|
|
||||||
hyprctl dispatch fullscreenstate 0 # minimize trước khi di chuyển
|
hyprctl dispatch fullscreenstate 0 # minimize trước khi di chuyển
|
||||||
|
|
||||||
|
move(){
|
||||||
|
# hyprctl dispatch movetoworkspace $((window_at_workspace+1)) \
|
||||||
|
# && hyprctl dispatch focusmonitor 1 \
|
||||||
|
# && hyprctl dispatch workspace $((current_workspace+2)) \
|
||||||
|
# && hyprctl dispatch focusmonitor 0
|
||||||
|
|
||||||
|
hyprctl --batch "
|
||||||
|
dispatch movetoworkspace $((window_at_workspace+1)) ;
|
||||||
|
dispatch focusmonitor 1 ;
|
||||||
|
dispatch workspace $((current_workspace+2)) ;
|
||||||
|
dispatch focusmonitor 0
|
||||||
|
"
|
||||||
|
exit 0
|
||||||
|
}
|
||||||
|
|
||||||
# NOTE: Di chuyển cửa sổ nếu vị trí X vượt qua ngưỡng
|
# 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 [ $window_x_position -eq 1934 ] && [ $window_state -eq 1 ]; then
|
||||||
|
|
||||||
if [ $current_workspace -eq 8 ]; then
|
if [ $current_workspace -eq 8 ]; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
hyprctl dispatch movetoworkspace $((window_at_workspace+1)) \
|
move
|
||||||
&& hyprctl dispatch focusmonitor 1 \
|
|
||||||
&& hyprctl dispatch workspace $((current_workspace+2)) \
|
|
||||||
&& hyprctl dispatch focusmonitor 0
|
|
||||||
exit 0
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ $window_x_position -eq 1934 ] && [ $window_width -eq 1892 ]; then
|
if [ $window_x_position -eq 1934 ] && [ $window_width -eq 1892 ]; then
|
||||||
@@ -36,11 +43,7 @@ if [ $window_x_position -eq 1934 ] && [ $window_width -eq 1892 ]; then
|
|||||||
if [ $current_workspace -eq 8 ]; then
|
if [ $current_workspace -eq 8 ]; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
hyprctl dispatch movetoworkspace $((window_at_workspace+1)) \
|
move
|
||||||
&& hyprctl dispatch focusmonitor 1 \
|
|
||||||
&& hyprctl dispatch workspace $((current_workspace+2)) \
|
|
||||||
&& hyprctl dispatch focusmonitor 0
|
|
||||||
exit 0
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
@@ -49,11 +52,7 @@ if [ $window_x_position -eq 2990 ]; then
|
|||||||
if [ $current_workspace -eq 8 ]; then
|
if [ $current_workspace -eq 8 ]; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
hyprctl dispatch movetoworkspace $((window_at_workspace+1)) \
|
move
|
||||||
&& hyprctl dispatch focusmonitor 1 \
|
|
||||||
&& hyprctl dispatch workspace $((current_workspace+2)) \
|
|
||||||
&& hyprctl dispatch focusmonitor 0
|
|
||||||
exit 0
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Nếu không thoả điều kiện di chuyển, di chuyển cửa sổ sang phải
|
# Nếu không thoả điều kiện di chuyển, di chuyển cửa sổ sang phải
|
||||||
|
|||||||
@@ -25,10 +25,18 @@ if [ "$primary_monitor_workspace" -le 0 ] || [ "$secondary_monitor_workspace" -g
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# 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
|
||||||
|
|
||||||
|
hyprctl --batch "
|
||||||
|
dispatch focusmonitor 0 ;
|
||||||
|
dispatch workspace $primary_monitor_workspace ;
|
||||||
|
dispatch dispatch focusmonitor 1 ;
|
||||||
|
dispatch workspace $secondary_monitor_workspace ;
|
||||||
|
dispatch focusmonitor $current_monitor
|
||||||
|
"
|
||||||
|
|
||||||
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
|
exit 0
|
||||||
|
|||||||
@@ -26,9 +26,18 @@ if [ "$primary_monitor_workspace" -le 0 ] || [ "$secondary_monitor_workspace" -g
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
hyprctl dispatch focusmonitor 0 \
|
# hyprctl dispatch focusmonitor 0 \
|
||||||
&&hyprctl dispatch workspace $primary_monitor_workspace \
|
# &&hyprctl dispatch workspace $primary_monitor_workspace \
|
||||||
&&hyprctl dispatch focusmonitor 1 \
|
# &&hyprctl dispatch focusmonitor 1 \
|
||||||
&&hyprctl dispatch workspace $secondary_monitor_workspace \
|
# &&hyprctl dispatch workspace $secondary_monitor_workspace \
|
||||||
&&hyprctl dispatch focusmonitor $current_monitor
|
# &&hyprctl dispatch focusmonitor $current_monitor
|
||||||
|
|
||||||
|
hyprctl --batch "
|
||||||
|
dispatch focusmonitor 0 ;
|
||||||
|
dispatch workspace $primary_monitor_workspace ;
|
||||||
|
dispatch dispatch focusmonitor 1 ;
|
||||||
|
dispatch workspace $secondary_monitor_workspace ;
|
||||||
|
dispatch focusmonitor $current_monitor
|
||||||
|
"
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
|||||||
@@ -8,15 +8,19 @@ italic_font VictorMono NF SemiBold Italic
|
|||||||
|
|
||||||
font_size 14
|
font_size 14
|
||||||
|
|
||||||
background_image ~/Pictures/ImgsDownloadsFromBr/BgKittyGif/convert.png
|
# background_image ~/Pictures/ImgsDownloadsFromBr/BgKittyGif/convert.png
|
||||||
background_image_layout cscaled
|
# background_image_layout cscaled
|
||||||
background_tint 0.988
|
# background_tint 0.988
|
||||||
|
background_opacity 0.9
|
||||||
|
|
||||||
input_delay 0
|
input_delay 0
|
||||||
repaint_delay 0
|
repaint_delay 0
|
||||||
sync_to_monitor yes
|
sync_to_monitor yes
|
||||||
wayland_enable_ime no
|
wayland_enable_ime no
|
||||||
|
|
||||||
|
# cursor lirke neovide
|
||||||
|
cursor_trail 3
|
||||||
|
|
||||||
enable_audio_bell no
|
enable_audio_bell no
|
||||||
|
|
||||||
# Disable tab bar
|
# Disable tab bar
|
||||||
|
|||||||
Reference in New Issue
Block a user