diff --git a/hypr/hyprlandd.conf b/hypr/hyprlandd.conf index e66c3aa..0165323 100644 --- a/hypr/hyprlandd.conf +++ b/hypr/hyprlandd.conf @@ -3,13 +3,25 @@ source = ~/.config/hypr/mocha.conf # Catppuccin colorscheme # < Start Section > # monitors -# Single -#monitor=DP-1, 3440x1440@160, 0x0, 1, vrr, 1, bitdepth, 10 -#monitor=DP-2, disable +monitor=WL-1, 1920x1080@144, 0x0, 1, vrr, 1 -# Double -monitor=DP-1, 3440x1440@160, 1920x0, 1, vrr, 1, bitdepth, 10 -monitor=DP-2, 1920x1080@144, 0x180, 1, vrr, 0 +# < End Section > + + + +# < Start Section > +# environment variables + +env = xdg_current_desktop,hyprland +env = XDG_SESSION_TYPE,wayland +env = XDG_SESSION_DESKTOP,Hyprland +env = MOZ_ENABLE_WAYLAND,1 +env = HYPRCURSOR_THEME, rose-pine-hyprcursor +env = HYPRCURSOR_SIZE, 24 + +# Trace logging +#env = HYPRLAND_TRACE,1 +#env = AQ_TRACE,1 # < End Section > @@ -17,33 +29,10 @@ monitor=DP-2, 1920x1080@144, 0x180, 1, vrr, 0 # < Start Section > # startup applications - -# environment launches -$scrPath = ~/.config/hypr/scripts -exec-once = $scrPath/resetxdgportal.sh # reset XDPH for screenshare -exec-once = dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP # for XDPH -exec-once = dbus-update-activation-environment --systemd --all -exec-once = systemctl --user import-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP -exec-once = /usr/lib/polkit-kde-authentication-agent-1 # authentication dialogue for GUI apps -exec-once = gsettings set org.gnome.desktop.interface gtk-theme 'Catppuccin-Mocha' -exec-once = gsettings set org.gnome.desktop.interface color-scheme 'prefer-dark' - -# xrandr settings -exec-once = $scrPath/xrandr.sh - -exec-once = waybar -c ~/.config/waybar/config -exec-once = dunst -exec-once = swww init -exec-once = syncthing --no-browser - -# main applications -#exec-once = discord -exec-once = spotify --disable-gpu +exec-once = discord exec-once = alacritty -exec-once = firefox -exec-once = taskset -c 1-7 steam-runtime -#exec-once = mangohud steam-runtime -exec-once = bolt + +# exit applications # < End Section > @@ -52,13 +41,6 @@ exec-once = bolt # < Start Section > # workspace rules -workspace = 1, monitor:DP-1, persistent:true, gapsout:0 440 0 440, default:true -workspace = 2, monitor:DP-1, persistent:true, gapsout:126 756 180 756 -workspace = 3, monitor:DP-1, persistent:true, gapsout:0 440 0 440 -workspace = 4, monitor:DP-1, persistent:true -workspace = 5, monitor:DP-1, persistent:true -workspace = 6, monitor:DP-2, persistent:true - # < End Section > @@ -67,26 +49,19 @@ workspace = 6, monitor:DP-2, persistent:true # variables general { - #gaps_in = 15 - #gaps_out = 40, 160, 40, 160 gaps_in = 0 - gaps_out = 12 - border_size = 4 - #border_size = 0 + gaps_out = 8 + border_size = 3 col.active_border = $peach #col.inactive_border = $peach layout = dwindle resize_on_border = false - #cursor_inactive_timeout = 2 - #no_cursor_warps = false } decoration { rounding = 6 drop_shadow = false dim_special = 0.3 - #active_opacity = 1.0 - #inactive_opacity = 0.8 fullscreen_opacity = 1.0 blur { @@ -118,6 +93,7 @@ animations { input { kb_layout = us + kb_options = caps:escape follow_mouse = 2 mouse_refocus = false; @@ -138,15 +114,13 @@ misc { force_default_wallpaper = 0 vrr = 1 vfr = true + middle_click_paste = false } xwayland { - # latest configuration - # use_nearset_neighbor = true - # force_zero_scaling = true - # current configuration - use_nearest_neighbor = true - force_zero_scaling = false + enabled = true + use_nearest_neighbor = true + force_zero_scaling = false } cursor { @@ -157,13 +131,16 @@ cursor { } debug { - disable_logs = false + #disable_logs = true + disable_logs = false + watchdog_timeout = 0 } -#device { -# name = opentabletdriver-virtual-tablet -# enabled = yes -#} +render { + explicit_sync = 1 + explicit_sync_kms = 1 + direct_scanout = true +} # < End Section > @@ -185,7 +162,7 @@ dwindle { # master layout master { - new_is_master = true + new_status = master } # < End Section > @@ -195,7 +172,7 @@ master { # < Start Section > # window rules -# Core +# core windowrulev2 = opacity 0.80 0.80,class:^(.*)$ windowrulev2 = opacity 0.80 0.70,class:^(pavucontrol)$ windowrulev2 = opacity 0.80 0.70,class:^(org.kde.polkit-kde-authentication-agent-1)$ @@ -203,68 +180,88 @@ windowrulev2 = float, class:^(qt5ct)$ windowrulev2 = float, class:^(nwg-look)$ windowrulev2 = float, class:^(pavucontrol)$ windowrulev2 = float, class:^(org.kde.polkit-kde-authentication-agent-1)$ -#windowrulev2 = float, class:^(steam)$ -# Main +# main windowrulev2 = workspace 1 silent, class:^(discord)$ -windowrulev2 = workspace 1 silent, class:^(Spotify)$ +windowrulev2 = workspace 1 silent, class:^(vesktop)$ +windowrulev2 = workspace 1 silent, class:^(Dopamine)$ +#windowrulev2 = workspace 1 silent, class:^(Spotify)$ +windowrulev2 = workspace 1 silent, initialTitle:^(Spotify Premium)$ windowrulev2 = workspace 2 silent, class:^(Alacritty)$ windowrulev2 = workspace 3 silent, class:^(firefox)$ +windowrulev2 = workspace 3 silent, class:^(firefox-nightly)$ windowrulev2 = workspace 4 silent, class:^(steam)$ +windowrulev2 = workspace 4 silent, class:^(org.prismlauncher.PrismLauncher)$ +windowrulev2 = workspace 4 silent, title:^(Minecraft.*)$ +windowrulev2 = workspace 4 silent, class:^(steam_app_.*)$ +windowrulev2 = workspace 4 silent, class:^(steam_proton)$ +windowrulev2 = workspace 4 silent, class:^(hl2_linux)$ +windowrulev2 = workspace 4 silent, class:^(gamescope)$ windowrulev2 = workspace 5 silent, class:^(Bolt.*)$ +windowrulev2 = workspace 6 silent, class:^(steam)$ -# Development -windowrulev2 = pseudo, title:^(SnakePlusPlus)$ +# development +windowrulev2 = float, title:^(SnakePlusPlus)$ windowrulev2 = center, title:^(SnakePlusPlus)$ windowrulev2 = opacity 0.4, title:^(SnakePlusPlus)$ windowrulev2 = float, title:^(TetrisPlusPlus)$ windowrulev2 = center, title:^(TetrisPlusPlus)$ -# Games +# games # 16:9 windowed - 1920 1080 # 21:9 windowed - 2560 1080 # 32:9 windowed - 3200 900 -# Theoretical mix - 3200 1100 +# theoretical mix - 3200 1100 +# alternative - 2660 1140 +# runelite windowrulev2 = opacity 1.00 override 1.00 override, class:^(net-runelite-client-RuneLite)$ windowrulev2 = pseudo, class:^(net-runelite-client-RuneLite)$ windowrulev2 = size 825 520, class:^(net-runelite-client-RuneLite)$ -windowrulev2 = opacity 1.00 override 1.00 override, class:^(Minecraft.*)$ -windowrulev2 = pseudo, class:^(Minecraft.*)$ -windowrulev2 = size 2560 1080, class:^(Minecraft.*)$ +# minecraft +windowrulev2 = opacity 1.00 override 1.00 override, title:^(Minecraft.*)$ +windowrulev2 = pseudo, title:^(Minecraft.*)$ +windowrulev2 = size 3200 1100, title:^(Minecraft.*)$ +# native windowrulev2 = opacity 1.00 override 1.00 override, class:^(steam_app_.*)$ windowrulev2 = pseudo, class:^(steam_app_.*)$ #windowrulev2 = size 3200 900, class:^(steam_app_.*)$ +# proton windowrulev2 = opacity 1.00 override 1.00 override, class:^(steam_proton)$ windowrulev2 = pseudo, class:^(steam_proton)$ #windowrulev2 = size 3200 900, class:^(steam_proton)$ +# hl2 (css, etc) windowrulev2 = opacity 1.00 override 1.00 override, class:^(hl2_linux)$ -windowrulev2 = workspace 4 silent, class:^(Minecraft.*)$ -windowrulev2 = workspace 4 silent, class:^(steam_app_.*)$ -windowrulev2 = workspace 4 silent, class:^(steam_proton)$ -windowrulev2 = workspace 4 silent, class:^(hl2_linux)$ +# gamescope +windowrulev2 = opacity 1.00 override 1.00 override, class:^(gamescope)$ +windowrulev2 = pseudo, class:^(gamescope)$ +windowrulev2 = size 3200 1100, class:^(gamescope)$ # layer rules layerrule = blur,waybar layerrule = ignorezero, waybar +# xwaylandvideobridge +windowrulev2 = opacity 0.0 override,class:^(xwaylandvideobridge)$ +windowrulev2 = noanim,class:^(xwaylandvideobridge)$ +windowrulev2 = noinitialfocus,class:^(xwaylandvideobridge)$ +windowrulev2 = maxsize 1 1,class:^(xwaylandvideobridge)$ +windowrulev2 = noblur,class:^(xwaylandvideobridge)$ + # < End Section > # < Start Section > -# binds +# keybinds # main modifier -$mainMod = SUPER - -# passthrough -bind = , mouse:275, pass, ^(discord)$ -bind = SHIFT, mouse:275, pass, ^(discord)$ +$mainMod = ALT # core binds bind = $mainMod SHIFT, Q, killactive, bind = $mainMod SHIFT, M, exit bind = $mainMod, SPACE, togglefloating, +bind = $mainMod, C, centerwindow bind = $mainMod, F, fullscreen, bind = $mainMod SHIFT, L, exec, hyprlock bind = $mainMod $CONTROL, ESCAPE, exec, killall waybar || waybar # toggle waybar @@ -277,20 +274,6 @@ bind = $mainMod SHIFT, S, exec, grim -g "$(slurp)" - | wl-copy bind = $mainMod SHIFT, 7, exec, taskset -c 1-7 prismlauncher bind = $mainMod, S, exec, pkill -x rofi || rofi -show drun -# generic audio control -binde = , XF86AudioPlay, exec, playerctl play-pause -binde = , XF86AudioStop, exec, playerctl stop -binde = , XF86AudioPrev, exec, playerctl previous -binde = , XF86AudioNext, exec, playerctl next -binde = , XF86AudioMute, exec, pactl set-sink-mute @DEFAULT_SINK@ toggle -binde = , XF86AudioLowerVolume, exec, pactl set-sink-volume @DEFAULT_SINK@ -5% -binde = , XF86AudioRaiseVolume, exec, pactl set-sink-volume @DEFAULT_SINK@ +5% - -# custom audio control -binde = $mainMod, F1, exec, playerctl play-pause -binde = $mainMod, F2, exec, playerctl previous -binde = $mainMod, F3, exec, playerctl next - # move focus bind = $mainMod, h, movefocus, l bind = $mainMod, l, movefocus, r @@ -310,32 +293,9 @@ bind = $mainMod SHIFT, 3, movetoworkspace, 3 bind = $mainMod SHIFT, 4, movetoworkspace, 4 bind = $mainMod SHIFT, 5, movetoworkspace, 5 bind = $mainMod SHIFT, 6, movetoworkspace, 6 -bind = $mainMod ALT, 1, movetoworkspacesilent, 1 -bind = $mainMod ALT, 2, movetoworkspacesilent, 2 -bind = $mainMod ALT, 3, movetoworkspacesilent, 3 -bind = $mainMod ALT, 4, movetoworkspacesilent, 4 -bind = $mainMod ALT, 5, movetoworkspacesilent, 5 -bind = $mainMod ALT, 6, movetoworkspacesilent, 6 # resizing windows -binde = $mainMod, right, resizeactive, 5 0 -binde = $mainMod, left, resizeactive, -5 0 -binde = $mainMod, up, resizeactive, 0 -5 -binde = $mainMod, down, resizeactive, 0 5 bindm = $mainMod, mouse:272, movewindow bindm = $mainMod, mouse:273, resizewindow # < End Section > - - - -# < Start Section > -# environment variables - -env = XDG_CURRENT_DESKTOP,Hyprland -env = XDG_SESSION_DESKTOP,Hyprland -env = MOZ_ENABLE_WAYLAND,1 -env = HYPRCURSOR_THEME, rose-pine-hyprcursor -env = HYPRCURSOR_SIZE, 24 - -# < End Section >