Edit hyprland config

This commit is contained in:
2025-04-07 23:41:20 +02:00
parent 9843cc7926
commit 601d579991
2 changed files with 31 additions and 16 deletions

View File

@@ -2,11 +2,7 @@
# Syntax is the same as in Hypr, but settings might differ. # Syntax is the same as in Hypr, but settings might differ.
# #
# Refer to the wiki for more information. # Refer to the wiki for more information.
source=./monitors.conf
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
#workspace=DP-1,1 #workspace=DP-1,1
workspace=1, m:DP-1 workspace=1, m:DP-1
workspace=2, m:DP-1 workspace=2, m:DP-1
@@ -30,12 +26,12 @@ input {
follow_mouse=1 follow_mouse=1
touchpad { touchpad {
natural_scroll=true natural_scroll=true
tap-and-drag=false
} }
} }
general { general {
#max_fps=60 # deprecated, unused #max_fps=60 # deprecated, unused
sensitivity=1
#main_mod=SUPER #main_mod=SUPER
gaps_in=5 gaps_in=5
gaps_out=20 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 #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 { decoration {
rounding=10 rounding=10
blur { blur {
@@ -65,6 +67,7 @@ dwindle {
misc { misc {
force_default_wallpaper=0 force_default_wallpaper=0
vrr=1 vrr=1
enable_anr_dialog=0
} }
# example window rules # example window rules
# for windows named/classed as abc and xyz # for windows named/classed as abc and xyz
@@ -77,13 +80,13 @@ misc {
# example binds # example binds
bind=SUPERSHIFT,Z,exec,alacritty bind=SUPERSHIFT,Z,exec,alacritty
bind=SUPER,Z,exec,kitty bind=SUPER,Z,exec,wezterm
bind=SUPER,X,killactive, bind=SUPER,X,killactive,
bind=SUPER_SHIFT,X,exec,hyprctl activewindow |grep pid |tr -d 'pid:'|xargs kill bind=SUPER_SHIFT,X,exec,hyprctl activewindow |grep pid |tr -d 'pid:'|xargs kill
bind=SUPER_SHIFT,Q,exit, bind=SUPER_SHIFT,Q,exit,
bind=SUPER,E,exec,nemo bind=SUPER,E,exec,nemo
bind=SUPERSHIFT,E,exec,kitty ranger bind=SUPERSHIFT,E,exec,wezterm -e ranger
bind=SUPER,F,fullscreen,1 bind=SUPER,F,fullscreen,1
bind=SUPERSHIFT,F,fullscreen,0 bind=SUPERSHIFT,F,fullscreen,0
@@ -127,7 +130,7 @@ bind=SUPER_SHIFT,9,movetoworkspacesilent,9
bind=SUPER_SHIFT,0,movetoworkspacesilent,10 bind=SUPER_SHIFT,0,movetoworkspacesilent,10
bind=SUPERSHIFT,S,exec,flameshot gui bind=SUPERSHIFT,S,exec,flameshot gui
bind = SUPER, V, exec, nwg-clipman
# T14gen2 FN KEYS # T14gen2 FN KEYS
bind=,XF86AudioMicMute,exec,amixer set Capture toggle 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=,XF86AudioLowerVolume,exec,amixer set Master playback 5%-
bind=,XF86MonBrightnessUp,exec,xbacklight -inc 5 bind=,XF86MonBrightnessUp,exec,xbacklight -inc 5
bind=,XF86MonBrightnessDown,exec,xbacklight -dec 5 bind=,XF86MonBrightnessDown,exec,xbacklight -dec 5
bind=,XF86Launch2,exec,touch-mode # FN + RSHIFT
bind=CTRL,XF86Launch2,exec,hyprctl keyword monitor "eDP-1,1920x1080@60,0x0,1" bind=,XF86Launch3,exec,touch-mode
bind=SHIFT,XF86Launch2,exec,hyprctl keyword monitor "eDP-1,1920x1080@60,0x0,1.5" 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,XF86MonBrightnessDown,exec,xbacklight -set 0.01
bind=SHIFT,XF86MonBrightnessUp,exec,xbacklight -set 100 bind=SHIFT,XF86MonBrightnessUp,exec,xbacklight -set 100
exec-once=dash ~/.config/hypr/autostart.sh exec-once=dash ~/.config/hypr/autostart.sh
exec-once=hyprctl setcursor Vimix-white-cursors 24 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 = opacity 0.0 override 0.0 override,class:^(xwaylandvideobridge)$
windowrulev2 = nofocus,class:^(xwaylandvideobridge)$ windowrulev2 = nofocus,class:^(xwaylandvideobridge)$
windowrulev2 = noinitialfocus,class:^(xwaylandvideobridge)$ windowrulev2 = noinitialfocus,class:^(xwaylandvideobridge)$
windowrulev2 = noblur,class:^(xwaylandvideobridge)$
windowrulev2 = pin,class:^(scrcpy)$ windowrulev2 = pin,class:^(scrcpy)$
windowrulev2 = move onscreen 100%-30,class:^(scrcpy)$ windowrulev2 = move onscreen 100%-30,class:^(scrcpy)$
@@ -158,10 +168,11 @@ windowrulev2 = stayfocused,title:^rofi
windowrulev2 = float,class:^(flameshot)$ windowrulev2 = float,class:^(flameshot)$
windowrulev2 = pin,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 = float,title:^(Espanso Sync Tool)$
windowrulev2 = size 0.1 0.1,title:^(Espanso Sync Tool)$ windowrulev2 = size 0.1 0.1,title:^(Espanso Sync Tool)$
windowrulev2 = move 100% 100%,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 # Envars; to play along with wayland nicely
@@ -170,7 +181,7 @@ env = CLUTTER_BACKEND,wayland
env = GDK_BACKEND,wayland,x11 env = GDK_BACKEND,wayland,x11
env = QT_AUTO_SCREEN_SCALE_FACTOR,1 env = QT_AUTO_SCREEN_SCALE_FACTOR,1
env = QT_QPA_PLATFORMTHEME,qt5ct env = QT_QPA_PLATFORMTHEME,qt5ct
env = XDG_CURRENT_DESKTOP,Hyprland
plugin { plugin {
hyprbars { hyprbars {
@@ -227,4 +238,4 @@ plugin {
} }
} }
exec-once = hyprpm reload -n #exec-once = hyprpm reload -n

View File

@@ -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