custom-hypr - up to date

This commit is contained in:
huyjaky
2025-02-07 17:08:39 +07:00
parent 1380fa224b
commit 3cab7862c8
120 changed files with 5678 additions and 3509 deletions

View File

@@ -4,35 +4,36 @@
# 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 = 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
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 = 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
@@ -69,3 +70,7 @@ animations {
# # animation = specialWorkspace, 1, 3, md3_decel, slidefadevert 15%
# animation = specialWorkspace, 1, 3, md3_decel, slidevert
# }
# animations {
# enabled = false
# }

View File

@@ -1 +1,2 @@
env = GTK_IM_MODULE,fcitx

View File

@@ -4,10 +4,15 @@
exec-once = corectrl
exec-once = otd-daemon # run driver veikk
exec-once = fcitx5
exec-once = warp-taskbar
# exec-once = sway
exec-once = waybar -c ~/.config/waybar/primary_screen/config.jsonc
exec-once = waybar -c ~/.config/waybar/secondary_screen/config.jsonc
# exec-once = waybar
exec = gsettings set org.gnome.desktop.interface icon-theme 'Nordzy'
exec = gsettings set org.gnome.desktop.interface cursor-theme 'Gruvbox'
exec = hyprctl setcursor Gruvbox-Retro 20

View File

@@ -16,13 +16,18 @@ workspace = 4, monitor:HDMI-A-1,
workspace = 6, monitor:HDMI-A-1,
workspace = 8, monitor:HDMI-A-1,
workspace = 10, monitor:HDMI-A-1,
#
#
decoration {
blur {
enabled = false
}
drop_shadow = false
# drop_shadow = false
shadow {
enabled = false
}
}
input {
@@ -30,7 +35,7 @@ input {
kb_variant = ,qwerty
# kb_options = grp:alt_shift_toggle
kb_options = grp:win_space_toggle
repeat_delay = 155
repeat_delay = 200
repeat_rate = 55
}
@@ -55,16 +60,9 @@ master {
new_on_top = true
}
dwindle {
preserve_split = true # you probably want this
#no_gaps_when_only = true
smart_resizing = false
}
misc {
vrr = 0
vfr = false
vfr = true
disable_hyprland_logo = true
disable_splash_rendering = true
force_default_wallpaper = 0
@@ -73,28 +71,28 @@ misc {
}
plugin {
hyprbars {
# Honestly idk if it works like css, but well, why not
bar_text_font = VictorMono NF SemiBold Italic
bar_text_size = 18
bar_height = 30
bar_padding = 10
bar_button_padding = 15
bar_precedence_over_border = false
bar_part_of_window = false
# hyprbars {
# # Honestly idk if it works like css, but well, why not
# bar_text_font = VictorMono NF SemiBold Italic
# bar_text_size = 18
# bar_height = 30
# bar_padding = 10
# bar_button_padding = 15
# bar_precedence_over_border = github
# bar_part_of_window = false
bar_color = rgba(12131CFF)
col.text = rgba(E2E1EFFF)
# bar_color = rgba(12131CFF)
# col.text = rgba(E2E1EFFF)
# example buttons (R -> L)
# hyprbars-button = color, size, on-click
hyprbars-button = rgba(12131CFF), 25, 󰖭, hyprctl dispatch killactive
hyprbars-button = rgba(12131CFF), 25,  , hyprctl
hyprbars-button = rgba(12131CFF), 25, , hyprctl
hyprbars-button = rgba(12131CFF), 25, , hyprctl
hyprbars-button = rgba(12131CFF), 25, , hyprctl
hyprbars-button = rgba(12131CFF), 25, , hyprctl
hyprbars-button = rgba(12131CFF), 25, , hyprctl
hyprbars-button = rgba(12131CFF), 25, , hyprctl
}
# # example buttons (R -> L)
# # hyprbars-button = color, size, on-click
# hyprbars-button = rgba(12131CFF), 25, 󰖭, hyprctl dispatch killactive
# hyprbars-button = rgba(12131CFF), 25,  , hyprctl
# hyprbars-button = rgba(12131CFF), 25, , hyprctl
# hyprbars-button = rgba(12131CFF), 25, , hyprctl
# hyprbars-button = rgba(12131CFF), 25, , hyprctl
# hyprbars-button = rgba(12131CFF), 25, , hyprctl
# hyprbars-button = rgba(12131CFF), 25, , hyprctl
# hyprbars-button = rgba(12131CFF), 25, , hyprctl
# }
}

View File

@@ -18,6 +18,7 @@ unbind = Super, K
unbind = Super, L
unbind = Ctrl+Alt, mouse_down
unbind = Ctrl+Alt, mouse_up
unbind = SUPER, Tab
unbind = SUPER, mouse:273
@@ -38,9 +39,9 @@ bind = Ctrl+Alt, J, movewindow, d # [hidden]
## switch workspace
bind = Shift+Alt, L, exec, source /home/duckq1u/.config/hypr/scripts/workspaceV2inscrease.sh
bind = Shift+Alt, H, exec, source /home/duckq1u/.config/hypr/scripts/workspaceV2descrease.sh
bindt = Ctrl+Alt, mouse:272, exec, source /home/duckq1u/.config/hypr/scripts/workspaceV2descrease.sh
bindt = Ctrl+Alt, mouse:273, exec, source /home/duckq1u/.config/hypr/scripts/workspaceV2inscrease.sh
bindm = ALT, mouse:272, movewindow # [hidden]
bind = Alt, Q, killactive,
@@ -51,11 +52,16 @@ bind = Alt, E, exec, nautilus --new-window # Launch Nautilus (file manager)
bind = Alt, T, exec, kitty
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
bind = Alt, V, exec, vesktop --no-sandbox --ozone-platform=wayland --ozone-platform-hint=auto --enable-features=UseOzonePlatform,WaylandWindowDecorations %U
bind = Alt, O, exec, obsidian --enable-features=UseOzonePlatform --ozone-platform=wayland --enable-wayland-ime --wayland-text-input-v3
bind = Alt, V, exec, vesktop --enable-features=UseOzonePlatform --ozone-platform=wayland --enable-wayland-ime --wayland-text-input-v3
bind = Alt, N, exec, swaync-client -t
bind = Alt+Shift, N, exec, dunstctl close-all
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 w # launch application launcher
bind = SUPER, Tab, exec, pkill -x rofi || $scrPath/rofilaunch.sh d # launch window switcher
bind = SUPER, L, exec, swaylock # launch lock screen
bind = Ctrl+SUPER, Ctrl+SUPER_L, exec, rofi

View File

@@ -33,11 +33,10 @@ exec-once = $scrPath/polkitkdeauth.sh # authentication dialogue for GUI apps
exec-once = blueman-applet # systray app for Bluetooth
exec-once = udiskie --no-automount --smart-tray # front-end that allows to manage removable media
exec-once = nm-applet --indicator # systray app for Network/Wifi
exec-once = dunst # start notification demon
# exec-once = dunst # start notification demon
exec-once = wl-paste --type text --watch cliphist store # clipboard store text data
exec-once = wl-paste --type image --watch cliphist store # clipboard store image data
exec-once = $scrPath/swwwallpaper.sh # start wallpaper daemon
exec-once = $scrPath/batterynotify.sh # battery nnotification
# █▀▀ █▄░█ █░█

View File

@@ -44,10 +44,17 @@ bind = $mainMod+Shift, E, exec, pkill -x rofi || $scrPath/rofilaunch.sh f # laun
# bindel = , F11, exec, $scrPath/volumecontrol.sh -o d # decrease volume
# bindel = , F12, exec, $scrPath/volumecontrol.sh -o i # increase volume
bindl = , XF86AudioMute, exec, $scrPath/volumecontrol.sh -o m # toggle audio mute
bindl = , XF86AudioMicMute, exec, $scrPath/volumecontrol.sh -i m # toggle microphone mute
bindl = SUPER, M, exec, $scrPath/volumecontrol.sh -i m # toggle microphone mute
bindel = , XF86AudioLowerVolume, exec, $scrPath/volumecontrol.sh -o d # decrease volume
bindel = , XF86AudioRaiseVolume, exec, $scrPath/volumecontrol.sh -o i # increase volume
# bindl = Alt ,XF86AudioMute, exec, wpctl set-mute @DEFAULT_SOURCE@ toggle # [hidden]
# bindl = Super ,XF86AudioMute, exec, wpctl set-mute @DEFAULT_SOURCE@ toggle # [hidden]
# bindl = ,XF86AudioMute, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 0% # [hidden]
# bindl = Super+Shift,M, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 0% # [hidden]
# bindle=, XF86AudioRaiseVolume, exec, wpctl set-volume -l 1 @DEFAULT_AUDIO_SINK@ 5%+ # [hidden]
# bindle=, XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%- # [hidden]
# Media control
bindl = , XF86AudioPlay, exec, playerctl play-pause # toggle between media play and pause
bindl = , XF86AudioPause, exec, playerctl play-pause # toggle between media play and pause
@@ -115,17 +122,6 @@ binde = $mainMod+Shift, Left, resizeactive, -30 0
binde = $mainMod+Shift, Up, resizeactive, 0 -30
binde = $mainMod+Shift, Down, resizeactive, 0 30
# Move focused window to a workspace
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
# Move focused window to a relative workspace
bind = $mainMod+Ctrl+Alt, Right, movetoworkspace, r+1

View File

@@ -7,7 +7,6 @@ window_info=$(hyprctl activewindow)
window_state=$(echo "$window_info" | grep 'fullscreen:' | awk '{print $2}')
# NOTE: Di chuyển cửa sổ nếu vị trí X vượt qua ngưỡng
if [ $window_state -eq 1 ]; then
hyprctl dispatch focusmonitor 1
@@ -15,4 +14,5 @@ if [ $window_state -eq 1 ]; then
fi
hyprctl dispatch movefocus r
exit 0

View File

@@ -23,7 +23,6 @@ move(){
hyprctl --batch "
dispatch movetoworkspace $((window_at_workspace-1)) ;
dispatch focusmonitor 0 ;
dispatch workspace $((current_workspace-2)) ;
dispatch focusmonitor 1
"

View File

@@ -15,14 +15,9 @@ window_width=$(echo "$window_info" | grep 'size:' | awk '{print $2}' | cut -d','
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
"

View File

@@ -1,6 +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}')
# Determine the second workspace based on whether the current workspace is even or odd
@@ -10,14 +9,8 @@ else
second_workspace=$((current_workspace + 1))
fi
# Assign primary and secondary monitor workspaces based on the current workspace
if [ $((current_workspace % 2)) -eq 0 ]; then
primary_monitor_workspace=$((second_workspace - 2)) # left
secondary_monitor_workspace=$((current_workspace - 2)) # right
else
primary_monitor_workspace=$((current_workspace - 2))
secondary_monitor_workspace=$((second_workspace - 2))
fi
primary_monitor_workspace=$((current_workspace - 2))
secondary_monitor_workspace=$((second_workspace - 2))
# Check if primary_monitor_workspace is less than or equal to 0
# or if secondary_monitor_workspace is greater than or equal to 11
@@ -25,18 +18,8 @@ if [ "$primary_monitor_workspace" -le 0 ] || [ "$secondary_monitor_workspace" -g
exit 1
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
dispatch workspace $primary_monitor_workspace ;
"
exit 0

View File

@@ -5,20 +5,17 @@ current_monitor=$(hyprctl activeworkspace | grep 'monitorID' | awk '{print $2}')
current_workspace=$(hyprctl activeworkspace | grep 'workspace' | awk '{print $3}')
# Determine the second workspace based on whether the current workspace is even or odd
echo $current_workspace
echo $current_monitor
if [ $((current_workspace % 2)) -eq 0 ]; then
second_workspace=$((current_workspace - 1))
else
second_workspace=$((current_workspace + 1))
fi
# Assign primary and secondary monitor workspaces based on the current workspace
if [ $((current_workspace % 2)) -eq 0 ]; then
primary_monitor_workspace=$((second_workspace + 2)) # left
secondary_monitor_workspace=$((current_workspace + 2)) # right
else
primary_monitor_workspace=$((current_workspace + 2))
secondary_monitor_workspace=$((second_workspace + 2))
fi
primary_monitor_workspace=$((current_workspace + 2)) # 1 + 2 =3
secondary_monitor_workspace=$((second_workspace + 2)) # 2 + 2 =4
# Check if primary_monitor_workspace is less than or equal to 0
# or if secondary_monitor_workspace is greater than or equal to 11
@@ -26,18 +23,9 @@ if [ "$primary_monitor_workspace" -le 0 ] || [ "$secondary_monitor_workspace" -g
exit 1
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
dispatch workspace $primary_monitor_workspace ;
"
exit 0

View File

@@ -32,16 +32,19 @@ group {
decoration {
rounding = 3
drop_shadow = false
# drop_shadow = false
shadow {
enabled = false
}
blur {
enabled = yes
size = 4
passes = 2
new_optimizations = on
ignore_opacity = on
xray = false
enabled = false
# size = 4
# passes = 2
# new_optimizations = on
# ignore_opacity = on
# xray = false
}
}
layerrule = blur,waybar
# layerrule = blur,waybar