# vim: foldmethod=marker ts=2 sw=2 monitor=,highres,auto,1 # env {{{ env = XDG_CURRENT_DESKTOP,Hyprland env = QT_QPA_PLATFORM,wayland;xcb env = QT_WAYLAND_DISABLE_WINDOWDECORATION,1 # }}} # variables {{{ $mod = SUPER $browser = brave $terminal = kitty $notaker = obsidian # }}} # auto start {{{ exec-once = waybar exec-once = hyprpaper exec-once = dunst exec-once = blueman-applet exec-once = wlsunset -S 9:00 -s 21:00 exec-once = /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 exec-once = ~/.config/hypr/xdg-portal.sh exec-once = dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP exec-once = systemctl --user import-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP exec-once = gsettings set org.gnome.desktop.interface font-name "JetBrainsMono Nerd Font" exec-once = gsettings set org.gnome.desktop.interface gtk-theme "Adwaita-dark" # GTK3 exec-once = gsettings set org.gnome.desktop.interface color-scheme "prefer-dark" # GTK4 # exec-once = ~/code/aw-server-rust/target/release/aw-server # exec-once = ~/code/awatcher/target/release/awatcher # }}} # inputs {{{ input { kb_layout = us,ua kb_variant = kb_model = kb_options = grp:win_space_toggle,ctrl:nocaps kb_rules = follow_mouse = 1 sensitivity = 0.0 # -1.0 - 1.0, 0 means no modification touchpad { middle_button_emulation = true disable_while_typing = true natural_scroll = false scroll_factor = 0.4 clickfinger_behavior = 1 } } # }}} # general {{{ general { gaps_in = 2 gaps_out = 4 border_size = 2 col.active_border = rgba(7aa2f7aa) col.inactive_border = rgba(292e42aa) layout = dwindle # master } # }}} # decorations {{{ decoration { rounding = 3 blur { enabled = true size = 3 passes = 1 } shadow { enabled = true range = 10 render_power = 3 } } # }}} # animations {{{ animations { enabled = false } # }}} # dwindle layout {{{ # https://wiki.hyprland.org/Configuring/Dwindle-Layout dwindle { pseudotile = false preserve_split = false force_split = 2 default_split_ratio = 1 } # }}} # master layout {{{ # https://wiki.hyprland.org/Configuring/Master-Layout master { orientation = right new_on_top = true } # }}} # misc {{{ misc { disable_hyprland_logo = false disable_splash_rendering = true mouse_move_enables_dpms = true key_press_enables_dpms = true } # }}} # gestures {{{ gestures { workspace_swipe = true workspace_swipe_invert = false workspace_swipe_create_new = false } # }}} # window rules {{{ windowrulev2 = workspace 1, class:(Logseq|obsidian) windowrulev2 = workspace 2, class:(firefox|Google-chrome|Brave-browser|brave-browser) windowrulev2 = workspace 3, class:(jetbrains-rider|org.octave.Octave) windowrulev2 = workspace 4, class:(KeePassXC|Insomnium|io.gitlab.news_flash.NewsFlash) windowrulev2 = workspace 5, class:(discord|org.telegram.desktop|fractal|thunderbird) windowrulev2 = workspace 7, class:(Spotify) windowrulev2 = workspace 9, class:(zoom) windowrulev2 = float, class:(pavucontrol|blueman-manager) # just fixes some annoyance windowrule = size 700 400, title:(Open File)(.*)$ windowrule = float, title:(Open File)(.*)$ windowrule = move center, title:(Open File)(.*)$ # screen sharing windowrulev2 = opacity 0.0 override 0.0 override,class:^(xwaylandvideobridge)$ windowrulev2 = noanim,class:^(xwaylandvideobridge)$ windowrulev2 = nofocus,class:^(xwaylandvideobridge)$ windowrulev2 = noinitialfocus,class:^(xwaylandvideobridge)$ # smart gaps workspace = w[tv1], gapsout:0, gapsin:0 workspace = f[1], gapsout:0, gapsin:0 windowrulev2 = bordersize 0, floating:0, onworkspace:w[tv1] windowrulev2 = rounding 0, floating:0, onworkspace:w[tv1] windowrulev2 = bordersize 0, floating:0, onworkspace:f[1] windowrulev2 = rounding 0, floating:0, onworkspace:f[1] # }}} # keymaps {{{ bind = $mod, q, killactive bind = $mod SHIFT, q, exec, hyprctl kill bind = $mod, Return, exec, $terminal bind = $mod SHIFT, Return, exec, wofi --show drun --allow-images bind = $mod SHIFT, Escape, exec, ~/bin/wofi-power-menu bind = $mod, f, fullscreen bind = $mod Ctrl, f, togglefloating bind = , Print, exec, hyprshot -m region bind = , SHIFT Print, exec, hyprshot -m output # programs {{{ bind = $mod, comma, exec, wofi-emoji bind = $mod SHIFT, a, exec, anki bind = $mod SHIFT, d, exec, $notaker bind = $mod SHIFT, f, exec, newsflash bind = $mod SHIFT, s, exec, spotify bind = $mod SHIFT, t, exec, telegram-desktop bind = $mod SHIFT, w, exec, $browser # }}} # function keys {{{ bindl = , XF86AudioRaiseVolume, exec, wpctl set-volume -l 1.4 @DEFAULT_AUDIO_SINK@ 5%+ bindl = , XF86AudioLowerVolume, exec, wpctl set-volume -l 1.4 @DEFAULT_AUDIO_SINK@ 5%- bindl = , XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle bindl = , XF86AudioPlay, exec, playerctl play-pause bindl = , XF86AudioNext, exec, playerctl next bindl = , XF86AudioPrev, exec, playerctl previous # brightness bindl = , XF86MonBrightnessUp, exec, brightnessctl set +5% bindl = , XF86MonBrightnessDown, exec, brightnessctl set 5%- # }}} # layout specific {{{ bind = $mod, P, pseudo, # dwindle bind = $mod ALT, J, togglesplit, # dwindle # }}} # wm {{{ bind = $mod, h, movefocus, l bind = $mod, j, movefocus, d bind = $mod, k, movefocus, u bind = $mod, l, movefocus, r # Scroll through existing workspaces with $mod + scroll bind = $mod, mouse_down, workspace, e-1 bind = $mod, mouse_up, workspace, e+1 # Move/resize windows with $mod + LMB/RMB and dragging bindm = $mod, mouse:272, movewindow bindm = $mod, mouse:273, resizewindow bind = $mod Alt, h, resizeactive, -20 0 bind = $mod Alt, l, resizeactive, 20 0 bind = $mod Alt, j, resizeactive, 0 20 bind = $mod Alt, k, resizeactive, 0 -20 bind = $mod SHIFT, h, movewindow, l bind = $mod SHIFT, l, movewindow, r bind = $mod SHIFT, k, movewindow, u bind = $mod SHIFT, j, movewindow, d # workspaces bind = $mod, 1, workspace, 1 bind = $mod, 2, workspace, 2 bind = $mod, 3, workspace, 3 bind = $mod, 4, workspace, 4 bind = $mod, 5, workspace, 5 bind = $mod, 6, workspace, 6 bind = $mod, 7, workspace, 7 bind = $mod, 8, workspace, 8 bind = $mod, 9, workspace, 9 bind = $mod SHIFT, 1, movetoworkspacesilent, 1 bind = $mod SHIFT, 2, movetoworkspacesilent, 2 bind = $mod SHIFT, 3, movetoworkspacesilent, 3 bind = $mod SHIFT, 4, movetoworkspacesilent, 4 bind = $mod SHIFT, 5, movetoworkspacesilent, 5 bind = $mod SHIFT, 6, movetoworkspacesilent, 6 bind = $mod SHIFT, 7, movetoworkspacesilent, 7 bind = $mod SHIFT, 8, movetoworkspacesilent, 8 bind = $mod SHIFT, 9, movetoworkspacesilent, 9 # }}} # }}}