From 601d579991c7175c9ed1ca498fb4e9ac99cf0d5f Mon Sep 17 00:00:00 2001 From: VectorKappa Date: Mon, 7 Apr 2025 23:41:20 +0200 Subject: [PATCH] Edit hyprland config --- .config/hypr/hyprland.conf | 43 ++++++++++++++++++++++++-------------- .config/hypr/monitors.conf | 4 ++++ 2 files changed, 31 insertions(+), 16 deletions(-) create mode 100644 .config/hypr/monitors.conf diff --git a/.config/hypr/hyprland.conf b/.config/hypr/hyprland.conf index b6449e7..2cf220b 100644 --- a/.config/hypr/hyprland.conf +++ b/.config/hypr/hyprland.conf @@ -2,11 +2,7 @@ # Syntax is the same as in Hypr, but settings might differ. # # Refer to the wiki for more information. - -monitor=DP-1,1920x1080@60,0x0,1 -monitor=DP-3,1920x1080@60,1920x0,1 -monitor=eDP-1,1920x1080@60,0x0,1 -monitor=HDMI-A-1,1920x1080@60,1920x0,1 +source=./monitors.conf #workspace=DP-1,1 workspace=1, m:DP-1 workspace=2, m:DP-1 @@ -30,12 +26,12 @@ input { follow_mouse=1 touchpad { natural_scroll=true + tap-and-drag=false } } general { #max_fps=60 # deprecated, unused - sensitivity=1 #main_mod=SUPER gaps_in=5 gaps_out=20 @@ -46,6 +42,12 @@ general { #damage_tracking=full # leave it on full unless you hate your GPU and want to make it suffer } +gestures { + workspace_swipe=true + workspace_swipe_touch=true +} + + decoration { rounding=10 blur { @@ -65,6 +67,7 @@ dwindle { misc { force_default_wallpaper=0 vrr=1 + enable_anr_dialog=0 } # example window rules # for windows named/classed as abc and xyz @@ -77,13 +80,13 @@ misc { # example binds bind=SUPERSHIFT,Z,exec,alacritty -bind=SUPER,Z,exec,kitty +bind=SUPER,Z,exec,wezterm bind=SUPER,X,killactive, bind=SUPER_SHIFT,X,exec,hyprctl activewindow |grep pid |tr -d 'pid:'|xargs kill bind=SUPER_SHIFT,Q,exit, bind=SUPER,E,exec,nemo -bind=SUPERSHIFT,E,exec,kitty ranger +bind=SUPERSHIFT,E,exec,wezterm -e ranger bind=SUPER,F,fullscreen,1 bind=SUPERSHIFT,F,fullscreen,0 @@ -127,7 +130,7 @@ bind=SUPER_SHIFT,9,movetoworkspacesilent,9 bind=SUPER_SHIFT,0,movetoworkspacesilent,10 bind=SUPERSHIFT,S,exec,flameshot gui - +bind = SUPER, V, exec, nwg-clipman # T14gen2 FN KEYS bind=,XF86AudioMicMute,exec,amixer set Capture toggle @@ -136,19 +139,26 @@ bind=,XF86AudioRaiseVolume,exec,amixer set Master playback 5%+ bind=,XF86AudioLowerVolume,exec,amixer set Master playback 5%- bind=,XF86MonBrightnessUp,exec,xbacklight -inc 5 bind=,XF86MonBrightnessDown,exec,xbacklight -dec 5 -bind=,XF86Launch2,exec,touch-mode -bind=CTRL,XF86Launch2,exec,hyprctl keyword monitor "eDP-1,1920x1080@60,0x0,1" -bind=SHIFT,XF86Launch2,exec,hyprctl keyword monitor "eDP-1,1920x1080@60,0x0,1.5" +# FN + RSHIFT +bind=,XF86Launch3,exec,touch-mode +bind=CTRL,XF86Launch3,exec,hyprctl keyword monitor "eDP-1,1920x1080@60,0x0,1" +bind=SHIFT,XF86Launch3,exec,hyprctl keyword monitor "eDP-1,1920x1080@60,0x0,1.5" + bind=SHIFT,XF86MonBrightnessDown,exec,xbacklight -set 0.01 bind=SHIFT,XF86MonBrightnessUp,exec,xbacklight -set 100 exec-once=dash ~/.config/hypr/autostart.sh exec-once=hyprctl setcursor Vimix-white-cursors 24 -exec-once=dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP +# exec-once=dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP +exec-once = wl-paste --type text --watch cliphist store +exec-once = wl-paste --type image --watch cliphist store + windowrulev2 = opacity 0.0 override 0.0 override,class:^(xwaylandvideobridge)$ windowrulev2 = nofocus,class:^(xwaylandvideobridge)$ windowrulev2 = noinitialfocus,class:^(xwaylandvideobridge)$ +windowrulev2 = noblur,class:^(xwaylandvideobridge)$ + windowrulev2 = pin,class:^(scrcpy)$ windowrulev2 = move onscreen 100%-30,class:^(scrcpy)$ @@ -158,10 +168,11 @@ windowrulev2 = stayfocused,title:^rofi windowrulev2 = float,class:^(flameshot)$ windowrulev2 = pin,class:^(flameshot)$ -windowrulev2 = opacity 0.0 override 0.0 override,title:^(Espanso Sync Tool)$ +windowrulev2 = opacity 0.0 override 0.0 override,title:^(.+Espanso Sync Tool.+)$ windowrulev2 = float,title:^(Espanso Sync Tool)$ windowrulev2 = size 0.1 0.1,title:^(Espanso Sync Tool)$ windowrulev2 = move 100% 100%,title:^(Espanso Sync Tool)$ +windowrulev2 = noblur,title:^(Espanso Sync Tool)$ # Envars; to play along with wayland nicely @@ -170,7 +181,7 @@ env = CLUTTER_BACKEND,wayland env = GDK_BACKEND,wayland,x11 env = QT_AUTO_SCREEN_SCALE_FACTOR,1 env = QT_QPA_PLATFORMTHEME,qt5ct - +env = XDG_CURRENT_DESKTOP,Hyprland plugin { hyprbars { @@ -227,4 +238,4 @@ plugin { } } -exec-once = hyprpm reload -n +#exec-once = hyprpm reload -n diff --git a/.config/hypr/monitors.conf b/.config/hypr/monitors.conf new file mode 100644 index 0000000..dff6e17 --- /dev/null +++ b/.config/hypr/monitors.conf @@ -0,0 +1,4 @@ +monitor=DP-1,1920x1080@60,0x0,1 +monitor=DP-3,1920x1080@60,1920x0,1 +monitor=eDP-1,1920x1080@60,0x0,1 +monitor=HDMI-A-1,1920x1080@60,1920x0,1