Skip to content

Instantly share code, notes, and snippets.

@SIMULATAN
Created October 9, 2023 08:11
Show Gist options
  • Save SIMULATAN/79d7fc593b5dd450e3b1e07d2d6e6353 to your computer and use it in GitHub Desktop.
Save SIMULATAN/79d7fc593b5dd450e3b1e07d2d6e6353 to your computer and use it in GitHub Desktop.
monitor=eDP-1,auto,auto,1
# XDG
env = XDG_SESSION_TYPE,wayland
env = XDG_CURRENT_DESKTOP,Hyprland
env = XDG_SESSION_DESKTOP,Hyprland
# Toolkit Backend
env = SDL_VIDEODRIVER,wayland
env = GDK_BACKEND,wayland,x11
env = _JAVA_AWT_WM_NONREPARENTING,1
# QT
env = QT_QPA_PLATFORM,wayland;xcb
env = QT_WAYLAND_DISABLE_WINDOWDECORATION,1
# NVIDIA
env = LIBVA_DRIVER_NAME,nvidia
env = XDG_SESSION_TYPE,wayland
#env = GBM_BACKEND,nvidia-drm
env = __GLX_VENDOR_LIBRARY_NAME,nvidia
env = WLR_NO_HARDWARE_CURSORS,1
exec-once = dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP
exec-once = systemctl --user import-environment DISPLAY WAYLAND_DISPLAY XDG_CURRENT_DESKTOP
exec-once = hyprpaper
env = XCURSOR_SIZE,16
input {
kb_layout = de
kb_variant =
kb_model =
kb_options =
kb_rules =
follow_mouse = 1
touchpad {
natural_scroll = yes
}
sensitivity = 0 # -1.0 - 1.0, 0 means no modification.
}
general {
# See https://wiki.hyprland.org/Configuring/Variables/ for more
gaps_in = 2
gaps_out = 6
border_size = 2
layout = dwindle
}
decoration {
# See https://wiki.hyprland.org/Configuring/Variables/ for more
rounding = 10
blur {
size = 8
passes = 2
}
}
animations {
enabled = yes
# Some default animations, see https://wiki.hyprland.org/Configuring/Animations/ for more
bezier = myBezier, 0.05, 0.9, 0.1, 1.05
animation = windows, 1, 7, myBezier
animation = windowsOut, 1, 7, default, popin 80%
animation = border, 1, 10, default
animation = borderangle, 1, 8, default
animation = fade, 1, 7, default
animation = workspaces, 1, 6, default
}
dwindle {
# See https://wiki.hyprland.org/Configuring/Dwindle-Layout/ for more
pseudotile = yes # master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below
preserve_split = yes # you probably want this
force_split = 2 # always split to bottom right (like in BSPWM)
}
misc {
# get fucked red screen of death
allow_session_lock_restore = true
}
gestures {
# See https://wiki.hyprland.org/Configuring/Variables/ for more
workspace_swipe = on
}
# See https://wiki.hyprland.org/Configuring/Keywords/ for more
$mainMod = SUPER
# Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more
bind = $mainMod, T, exec, alacritty
# Toggle Rofi
bind = ALT, Space, exec, pkill rofi || rofi -show drun
bind = $mainMod SHIFT, Q, killactive
bind = $mainMod SHIFT, F4, exit
bind = $mainMod, P, pseudo # dwindle
bind = $mainMod, S, togglesplit # dwindle
bind = , Print, exec, flameshot gui
bind = CONTROL, Print, exec, flameshot gui --raw | wl-copy
# Do not disturbe / "m" for mute
bind = $mainMod SHIFT, M, exec, dunstctl set-paused toggle
# Monocole
bind = $mainMod, M, fullscreen, 1
bind = $mainMod SHIFT, F, fullscreen, 0
bind = $mainMod SHIFT, A, fakefullscreen
bind = $mainMod SHIFT, Space, togglefloating
# Move focus with mainMod + arrow keys
bind = $mainMod, h, movefocus, l
bind = $mainMod, l, movefocus, r
bind = $mainMod, j, movefocus, u
bind = $mainMod, k, movefocus, d
# Swap windows in direction
bind = $mainMod SHIFT, h, movewindow, l
bind = $mainMod SHIFT, l, movewindow, r
bind = $mainMod SHIFT, j, movewindow, u
bind = $mainMod SHIFT, k, movewindow, d
workspace=1,monitor:eDP-1
workspace=2,monitor:eDP-1
workspace=3,monitor:eDP-1
workspace=4,monitor:eDP-1
workspace=4,monitor:eDP-1
workspace=5,monitor:eDP-1
workspace=6,monitor:eDP-1
workspace=7,monitor:eDP-1
workspace=8,monitor:eDP-1
workspace=9,monitor:eDP-1
workspace=10,monitor:eDP-1
# Switch workspaces with mainMod + [0-9]
bind = $mainMod, 1, workspace, 1
bind = $mainMod, 2, workspace, 2
bind = $mainMod, 3, workspace, 3
bind = $mainMod, 4, workspace, 4
bind = $mainMod, 5, workspace, 5
bind = $mainMod, 6, workspace, 6
bind = $mainMod, 7, workspace, 7
bind = $mainMod, 8, workspace, 8
bind = $mainMod, 9, workspace, 9
bind = $mainMod, 0, workspace, 10
# Switch to previous workspace
bind = $mainMod, Tab, workspace, previous
# Move active window to a workspace with mainMod + SHIFT + [0-9]
bind = $mainMod SHIFT, 1, movetoworkspace, 1
bind = $mainMod SHIFT, 2, movetoworkspace, 2
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 SHIFT, 7, movetoworkspace, 7
bind = $mainMod SHIFT, 8, movetoworkspace, 8
bind = $mainMod SHIFT, 9, movetoworkspace, 9
bind = $mainMod SHIFT, 0, movetoworkspace, 10
# Scroll through existing workspaces with mainMod + scroll
bind = $mainMod, mouse_down, workspace, e+1
bind = $mainMod, mouse_up, workspace, e-1
# Move/resize windows with mainMod + LMB/RMB and dragging
bindm = $mainMod, mouse:272, movewindow
bindm = $mainMod, mouse:273, resizewindow
# Lock screen
bind = $mainMod ALT, L, exec, lock.sh
bind = ,XF86AudioMute, exec, pactl set-sink-mute @DEFAULT_SINK@ toggle; volume.sh
binde = ,XF86AudioLowerVolume, exec, pactl set-sink-volume @DEFAULT_SINK@ -5%; volume.sh
binde = ,XF86AudioRaiseVolume, exec, pactl set-sink-volume @DEFAULT_SINK@ +5%; volume.sh
binde = ,XF86MonBrightnessUp,exec,brightnessctl set +5%
binde = ,XF86MonBrightnessDown,exec,brightnessctl set 5%-
bind = ,XF86AudioPrev, exec, playerctl previous; volume.sh
bind = $mainMod,F7, exec, playerctl previous; volume.sh
bind = ,XF86AudioPlay, exec, playerctl play-pause; volume.sh
bind = $mainMod,F8, exec, playerctl play-pause; volume.sh
bind = ,XF86AudioNext, exec, playerctl next; volume.sh
bind = $mainMod,F9, exec, playerctl next; volume.sh
bind = SUPER,F10,pass,^(com\.obsproject\.Studio)$
windowrulev2 = noblur,animation none,class:^(flameshot)$
# disable middle-click paste
exec-once wl-paste -p --watch wl-copy -pc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment