custom-hypr - disable swap window while fullscrren mode

This commit is contained in:
huyjaky
2024-08-17 16:41:26 +07:00
parent 3bc478b924
commit 8ce7b8d465
4 changed files with 29 additions and 9 deletions

View File

@@ -1,2 +1,4 @@
# You can make apps auto-start here # You can make apps auto-start here
# Relevant Hyprland wiki section: https://wiki.hyprland.org/Configuring/Keywords/#executing # Relevant Hyprland wiki section: https://wiki.hyprland.org/Configuring/Keywords/#executing
#
# exec-once = fcitx5 -d

View File

@@ -12,11 +12,9 @@ decoration {
} }
input { input {
# kb_layout = us # kb_layout = us,vn
# kb_options = grp:win_space_toggle # kb_variant = ','
# kb_options = grp:alt_shift_toggle
# kb_layout = vn, us
# kb_options = grp:win_space_toggle
repeat_delay = 180 repeat_delay = 180
repeat_rate = 50 repeat_rate = 50

View File

@@ -15,26 +15,42 @@ unbind = Super, J
unbind = Super, K unbind = Super, K
unbind = Super, L unbind = Super, L
bind = Alt, H, fullscreenstate, 0 # [hidden]
bind = Alt, H, movefocus, l # [hidden] bind = Alt, H, movefocus, l # [hidden]
bind = Alt, L, fullscreenstate, 0 # [hidden]
bind = Alt, L, movefocus, r # [hidden] bind = Alt, L, movefocus, r # [hidden]
bind = Alt, K, fullscreenstate, 0 # [hidden]
bind = Alt, K, movefocus, u # [hidden] bind = Alt, K, movefocus, u # [hidden]
bind = Alt, J, fullscreenstate, 0 # [hidden]
bind = Alt, J, movefocus, d # [hidden] bind = Alt, J, movefocus, d # [hidden]
bind = Alt, BracketLeft, movefocus, l # [hidden]
bind = Alt, BracketRight, movefocus, r # [hidden] bind = Alt, BracketLeft, movefocus, monitor DP-1 # [hidden]
bind = Alt, BracketRight, movefocus, monitor HDMI-A-1 # [hidden]
bind = Alt, O, killactive, bind = Alt, O, killactive,
bind = Alt, F, fullscreen, 1 bind = Alt, F, fullscreen, 1
bind = Alt, Q, killactive, bind = Alt, Q, killactive,
bind = Alt, R, exec, killall ags ydotool; ags & # Restart widgets bind = Alt, R, exec, killall ags ydotool; ags & # Restart widgets
bind = Alt, E, exec, ags run-js 'openColorScheme.value = true; Utils.timeout(5000, () => openColorScheme.value = false);' # View color scheme and options bind = Alt, E, exec, ags run-js 'openColorScheme.value = true; Utils.timeout(5000, () => openColorScheme.value = false);' # View color scheme and options
bind = Alt, M, exec, ags run-js 'openMusicControls.value = (!mpris.getPlayer() ? false : !openMusicControls.value);' # Toggle music controls bind = Alt, M, exec, ags run-js 'openMusicControls.value = (!mpris.getPlayer() ? false : !openMusicControls.value);' # Toggle music controls
bind = Alt, N, exec, ags -t 'sideright' # Toggle right sidebar bind = Alt, N, exec, ags -t 'sideright' # Toggle right sidebar
bind = Ctrl+Alt, M, exec, pavucontrol # Launch pavucontrol (volume mixer)
bind = Super, T, exec, kitty bind = Super, T, exec, kitty
bind = Super, W, exec, brave bind = Super, W, exec, brave
bind = Shift+Alt, L, workspace, +1 # [hidden] #! window focus
bind = Shift+Alt, H, workspace, -1 # [hidden] bind = Shift+Alt, H, focusmonitor, DP-1 # [hidden]
bind = Shift+Alt, L, focusmonitor, HDMI-A-1 # [hidden]
bind = Alt, T, fullscreenstate, 0
# bind = SUPER + SHIFT + RIGHT, movetoworkspace 1, monitor DP-1 # Moves to monitor 1
# bind = SUPER + SHIFT + LEFT, movetoworkspace 1, monitor HDMI-A-1 # Moves to monitor 2
bindl= Super, J, exec, playerctl previous # Previous track bindl= Super, J, exec, playerctl previous # Previous track
bindl= Super, P, exec, playerctl play-pause # Play/pause media bindl= Super, P, exec, playerctl play-pause # Play/pause media

View File

@@ -3,3 +3,7 @@
# Workspace rules: https://wiki.hyprland.org/Configuring/Workspace-Rules/ # Workspace rules: https://wiki.hyprland.org/Configuring/Workspace-Rules/
# #
windowrulev2 = bordercolor rgb(c21500) rgb(d53369) rgb(F2994A) rgb(F2C94C) 45deg,fullscreen:1 windowrulev2 = bordercolor rgb(c21500) rgb(d53369) rgb(F2994A) rgb(F2C94C) 45deg,fullscreen:1
# windowrulev2 = nofocus, ^(Ibus-ui-gtk3)$
# windowrulev2 = nofocus, ^(Ibus-ui-gtk5)$
# windowrulev2 = nofocus, ^(Ibus-ui-gtk4)$
# windowrulev2=nofocus,ibus-ui