diff --git a/.config/hypr/conf/autostart.conf b/.config/hypr/conf/autostart.conf index eccc2cb..e1d848c 100644 --- a/.config/hypr/conf/autostart.conf +++ b/.config/hypr/conf/autostart.conf @@ -6,5 +6,8 @@ exec-once = copyq --start-server exec-once = /usr/lib/pam_kwallet_init & blueman-applet & hypridle & hyprpaper & nm-applet & waybar exec-once = dunst exec-once = blueman-applet -exec-once = ~/.config/hypr/conf/autostart.conf +exec-once = ~/.config/hypr/scripts/start-wob.sh +exec-once = poweralertd +exec-once = [ -x "$(command -v wlsunset)" ] && /home/goodhumored/dotfiles/.config/scripts/sunset.sh "on" +exec-once = crow diff --git a/.config/hypr/conf/input.conf b/.config/hypr/conf/input.conf index 15f7956..8a95681 100644 --- a/.config/hypr/conf/input.conf +++ b/.config/hypr/conf/input.conf @@ -13,8 +13,8 @@ input { touchpad { natural_scroll = true } - repeat_delay = 200 - repeat_rate = 50 + repeat_delay = 150 + repeat_rate = 45 } # https://wiki.hyprland.org/Configuring/Variables/#gestures diff --git a/.config/hypr/conf/keybindings.conf b/.config/hypr/conf/keybindings.conf index 69771ff..61cbcac 100644 --- a/.config/hypr/conf/keybindings.conf +++ b/.config/hypr/conf/keybindings.conf @@ -9,26 +9,35 @@ # See https://wiki.hyprland.org/Configuring/Keywords/ $mainMod = SUPER # Sets "Windows" key as main modifier +# apps bind = $mainMod, T, exec, $terminal # terminal -bind = $mainMod, F, exec, fullscreen # fullscreen -bind = $mainMod, Q, killactive, # kill window +bind = $mainMod SHIFT, T, exec, ~/.config/hypr/scripts/show-crow.sh +bind = $mainMod CTRL SHIFT, T, exec, ~/.config/hypr/scripts/translate-selection.sh bind = $mainMod, E, exec, $fileManager # file manager -bind = $mainMod, V, togglefloating, # toggle float bind = $mainMod, A, exec, $toggle_menu_cmd # wofi + +# ──────────────────────────────── copyq ────────────────────────────── +bind = CTRL_ALT, V, exec, copyq toggle + +bind = $mainMod, F, fullscreen # fullscreen +bind = $mainMod, Q, killactive, # kill window +bind = $mainMod, V, togglefloating, # toggle float bind = $mainMod, P, pseudo, # pseudo bind = $mainMod, DELETE, exit, # pseudo bind = $mainMod, R, togglesplit, # toggle split bind = $mainMod CTRL, L, exec, hyprlock # lock screen - -bind = CTRL ALT $mainMod SHIFT, comma, movecurrentworkspacetomonitor, l -bind = CTRL ALT $mainMod SHIFT, period, movecurrentworkspacetomonitor, r +# ─────────────────────────── move workspaces ───────────────────────── +bind = CTRL ALT $mainMod SHIFT CTRL ALT, H, movecurrentworkspacetomonitor, l +bind = CTRL ALT $mainMod SHIFT CTRL ALT, L, movecurrentworkspacetomonitor, r +bind = CTRL ALT $mainMod SHIFT CTRL ALT, J, movecurrentworkspacetomonitor, d +bind = CTRL ALT $mainMod SHIFT CTRL ALT, K, movecurrentworkspacetomonitor, u # ────────────────────────── window move focus ──────────────────────── -bind = $mainMod, left, movefocus, l -bind = $mainMod, right, movefocus, r -bind = $mainMod, up, movefocus, u -bind = $mainMod, down, movefocus, d +binde = $mainMod, right, resizeactive, 20 0 +binde = $mainMod, left, resizeactive, -20 0 +binde = $mainMod, up, resizeactive, 0 -20 +binde = $mainMod, down, resizeactive, 0 20 bind = $mainMod, H, movefocus, l bind = $mainMod, L, movefocus, r bind = $mainMod, K, movefocus, u @@ -73,8 +82,6 @@ bind = $mainMod, M, togglespecialworkspace, music bind = $mainMod, mouse_down, workspace, e+1 bind = $mainMod, mouse_up, workspace, e-1 -# ──────────────────────────────── copyq ────────────────────────────── -bind = CTRL_ALT, V, exec, copyq toggle # ───────────────────────────── screenshots ─────────────────────────── bind = $mainMod SHIFT, S, exec, grimblast copy area --freeze --notify --cursor diff --git a/.config/hypr/conf/start-wob.sh b/.config/hypr/conf/start-wob.sh deleted file mode 100755 index 24af21c..0000000 --- a/.config/hypr/conf/start-wob.sh +++ /dev/null @@ -1 +0,0 @@ -tail -f /tmp/wobpipe diff --git a/.config/hypr/hypridle.conf b/.config/hypr/hypridle.conf index 68894ec..3f58336 100644 --- a/.config/hypr/hypridle.conf +++ b/.config/hypr/hypridle.conf @@ -11,7 +11,6 @@ listener { # HYPRLOCK ONTIMEOUT on-timeout = loginctl lock-session } - # dpms listener { # DPMS TIMEOUT diff --git a/.config/hypr/hyprland.conf b/.config/hypr/hyprland.conf index bcca92c..7233ea4 100644 --- a/.config/hypr/hyprland.conf +++ b/.config/hypr/hyprland.conf @@ -172,17 +172,19 @@ windowrulev2 = pin, title:^(Picture-in-Picture)$ windowrulev2 = move 69.5% 4%, title:^(Picture-in-Picture)$ -windowrule = maxsize 400 300, (blueman) -windowrule = float, (copyq|pavucontrol|blueman-manager|wofi|rofi) -windowrule = pin, (copyq|pavucontrol|blueman-manager|wofi|rofi) -windowrule = stayfocused, (copyq|pavucontrol|blueman-manager|wofi|rofi) +# different floating modals +windowrule = maxsize 400 300, (blueman|io.crow_translate.CrowTranslate) +windowrule = float, (copyq|pavucontrol|blueman-manager|wofi|rofi|imv|io.crow_translate.CrowTranslate) +windowrule = pin, (copyq|pavucontrol|blueman-manager|wofi|rofi|io.crow_translate.CrowTranslate) +windowrule = stayfocused, (copyq|pavucontrol|blueman-manager|wofi|rofi|io.crow_translate.CrowTranslate) +windowrule = move onscreen cursor,(copyq|pavucontrol|blueman-manager|imv|io.crow_translate.CrowTranslate) + windowrule = center, (wofi) windowrule = workspace 3, title:^(.*)(Telegram)(.*)$ windowrule = workspace 1, title:^(.*)(Firefox)(.*)$ windowrule = workspace special:music, title:(.*)((M|m)usic|(М|м)узыка)(.*) windowrule = float, title:(.*)((M|m)usic|(М|м)узыка)(.*) -windowrule = size 600 500, title:(.*)((M|m)usic|(М|м)узыка)(.*) -windowrule = move onscreen cursor,(copyq|pavucontrol|blueman-manager) +windowrule = size 1500 900, title:(.*)((M|m)usic|(М|м)узыка)(.*) # Example windowrule v2 windowrulev2 = float,class:^(cursor-float)$ windowrulev2 = move onscreen cursor,class:^(cursor-float)$ @@ -191,6 +193,16 @@ windowrulev2 = float,class:^(dmenu)$ windowrulev2 = pin,class:^(dmenu)$ windowrulev2 = stayfocused,class:^(dmenu)$ # windowrulev2 = move onscreen cursor,class:^(dmenu)$ +# + +# matlab +windowrule = tile, class:(.*)(MATLAB)(.*) +windowrule = workspace 6, class:(.*)(MATLAB)(.*) +windowrule = size 400 400, class:(.*)(MATLAB)(.*) + +windowrule = tile, (.*)(Figure)(.*) +windowrule = workspace 6, (.*)(Figure)(.*) +windowrule = size 400 400, (.*)(Figure)(.*) windowrulev2 = suppressevent maximize, class:.* # You'll probably like this. diff --git a/.config/hypr/monitors.conf b/.config/hypr/monitors.conf index e0d100a..b61d561 100644 --- a/.config/hypr/monitors.conf +++ b/.config/hypr/monitors.conf @@ -3,3 +3,4 @@ monitor=eDP-1,1920x1080@60.01,0x0,1.0 monitor=DP-2,1920x1080@60.0,1920x-953,1.0 monitor=HDMI-A-1,2560x1440@59.95,-640x-1440,1.0 +monitor=desc:BNQ BenQ G925HDA 29A01966019,prefered,auto,1.0 diff --git a/.config/hypr/scripts/show-crow.sh b/.config/hypr/scripts/show-crow.sh new file mode 100755 index 0000000..74ee8fe --- /dev/null +++ b/.config/hypr/scripts/show-crow.sh @@ -0,0 +1 @@ +dbus-send --type=method_call --dest=io.crow_translate.CrowTranslate /io/crow_translate/CrowTranslate/MainWindow io.crow_translate.CrowTranslate.MainWindow.open diff --git a/.config/hypr/scripts/start-wob.sh b/.config/hypr/scripts/start-wob.sh new file mode 100755 index 0000000..31b7569 --- /dev/null +++ b/.config/hypr/scripts/start-wob.sh @@ -0,0 +1 @@ +tail -f /tmp/wobpipe | wob diff --git a/.config/hypr/scripts/translate-selection.sh b/.config/hypr/scripts/translate-selection.sh new file mode 100755 index 0000000..d6bc21c --- /dev/null +++ b/.config/hypr/scripts/translate-selection.sh @@ -0,0 +1 @@ +qdbus io.crow_translate.CrowTranslate /io/crow_translate/CrowTranslate/MainWindow translateSelection