From 8ce7b8d4654381d5f02ae885892c85062d1f0b9d Mon Sep 17 00:00:00 2001 From: huyjaky Date: Sat, 17 Aug 2024 16:41:26 +0700 Subject: [PATCH] custom-hypr - disable swap window while fullscrren mode --- execs.conf | 2 ++ general.conf | 8 +++----- keybinds.conf | 24 ++++++++++++++++++++---- rules.conf | 4 ++++ 4 files changed, 29 insertions(+), 9 deletions(-) diff --git a/execs.conf b/execs.conf index cae4ef6..021c478 100644 --- a/execs.conf +++ b/execs.conf @@ -1,2 +1,4 @@ # You can make apps auto-start here # Relevant Hyprland wiki section: https://wiki.hyprland.org/Configuring/Keywords/#executing +# +# exec-once = fcitx5 -d diff --git a/general.conf b/general.conf index 0373ad5..1d396fb 100644 --- a/general.conf +++ b/general.conf @@ -12,11 +12,9 @@ decoration { } input { - # kb_layout = us - # kb_options = grp:win_space_toggle - - # kb_layout = vn, us - # kb_options = grp:win_space_toggle + # kb_layout = us,vn + # kb_variant = ',' + # kb_options = grp:alt_shift_toggle repeat_delay = 180 repeat_rate = 50 diff --git a/keybinds.conf b/keybinds.conf index c688aee..896687a 100644 --- a/keybinds.conf +++ b/keybinds.conf @@ -15,26 +15,42 @@ unbind = Super, J unbind = Super, K unbind = Super, L + +bind = Alt, H, fullscreenstate, 0 # [hidden] bind = Alt, H, movefocus, l # [hidden] + +bind = Alt, L, fullscreenstate, 0 # [hidden] bind = Alt, L, movefocus, r # [hidden] + +bind = Alt, K, fullscreenstate, 0 # [hidden] bind = Alt, K, movefocus, u # [hidden] + +bind = Alt, J, fullscreenstate, 0 # [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, F, fullscreen, 1 bind = Alt, Q, killactive, 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, 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 = Ctrl+Alt, M, exec, pavucontrol # Launch pavucontrol (volume mixer) + bind = Super, T, exec, kitty bind = Super, W, exec, brave -bind = Shift+Alt, L, workspace, +1 # [hidden] -bind = Shift+Alt, H, workspace, -1 # [hidden] +#! window focus +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, P, exec, playerctl play-pause # Play/pause media diff --git a/rules.conf b/rules.conf index be74c96..ef54f03 100644 --- a/rules.conf +++ b/rules.conf @@ -3,3 +3,7 @@ # Workspace rules: https://wiki.hyprland.org/Configuring/Workspace-Rules/ # 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