Add Hyprland configuration

This commit is contained in:
Harzo 2023-05-25 21:56:50 +02:00
commit 7295441a5c
10 changed files with 192 additions and 0 deletions

View File

@ -0,0 +1,10 @@
exec-once = mako &
exec-once = swayosd &
exec-once = waybar &
exec-once = foot -s &
exec-once = udiskie &
exec-once = swayidle -w &
exec-once = wl-paste -t text --watch clipman store --no-persist &
exec-once = /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 &
exec-once = dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP &
exec-once = ~/.scripts/system/random-wallpaper &

View File

@ -0,0 +1,8 @@
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
env = QT_QPA_PLATFORM,wayland
env = XCURSOR_SIZE,32
env = SUDO_PROMPT,%p 󱕵

View File

@ -0,0 +1,20 @@
input {
kb_layout = pl
kb_variant =
kb_model =
kb_options =
kb_rules =
follow_mouse = 1
touchpad {
natural_scroll = no
}
sensitivity = 0
repeat_delay = 300
}
gestures {
workspace_swipe = off
}

View File

@ -0,0 +1,59 @@
$mmod = SUPER
$smod = SUPER_SHIFT
# Managing windows
bind = $smod, Q, killactive,
bind = $smod, Space, togglefloating,
bind = $smod, F, fullscreen
bind = $mmod, P, pseudo,
bind = $mmod, J, togglesplit,
# Move window focus
bind = $mmod, left, movefocus, l
bind = $mmod, right, movefocus, r
bind = $mmod, up, movefocus, u
bind = $mmod, down, movefocus, d
# Move windows
bind = $smod, left, movewindow, l
bind = $smod, right, movewindow, r
bind = $smod, up, movewindow, u
bind = $smod, down, movewindow, d
# Launching applications
bind = $mmod, Return, exec, footclient
bind = $mmod, F, exec, pkill fsearch; fsearch
bind = $smod, D, exec, wofi --show drun
bind = $smod, X, exec, swaylock
bind = $smod, S, exec, ~/.scripts/grimshot
bind = $smod, Escape, exec, ~/.scripts/system/wofi-session
bindle = , XF86AudioRaiseVolume, exec, swayosd --output-volume raise
bindle = , XF86AudioLowerVolume, exec, swayosd --output-volume lower
bindl = , XF86AudioPlay, exec, playerctl play-pause
bind = , Caps_Lock, exec, sleep 0.2 && swayosd --caps-lock
bind = $mmod, V, exec, clipman pick -t wofi
bind = $smod, P, exec, ~/.scripts/colorpicker
# Change current workspace
bind = $mmod, 1, exec, hyprsome workspace 1
bind = $mmod, 2, exec, hyprsome workspace 2
bind = $mmod, 3, exec, hyprsome workspace 3
bind = $mmod, 4, exec, hyprsome workspace 4
bind = $mmod, 5, exec, hyprsome workspace 5
# Move window to specific workspace
bind = $smod, 1, exec, hyprsome move 1
bind = $smod, 2, exec, hyprsome move 2
bind = $smod, 3, exec, hyprsome move 3
bind = $smod, 4, exec, hyprsome move 4
bind = $smod, 5, exec, hyprsome move 5
# Scroll through existing workspaces with mmod + scroll
bind = $mmod, mouse_down, workspace, e+1
bind = $mmod, mouse_up, workspace, e-1
# Move/resize windows with mmod + LMB/RMB and dragging
bindm = $mmod, mouse:272, movewindow
bindm = $mmod, mouse:273, resizewindow
# Mouse bindings

View File

@ -0,0 +1,13 @@
general {
layout = dwindle
}
dwindle {
pseudotile = yes
preserve_split = yes
no_gaps_when_only = yes
}
master {
new_is_master = true
}

View File

@ -0,0 +1,4 @@
misc {
mouse_move_enables_dpms = yes
key_press_enables_dpms = yes
}

View File

@ -0,0 +1,15 @@
monitor = HDMI-A-1,1920x1080@144,0x0,1
workspace = HDMI-A-1,1
workspace = 1, monitor:HDMI-A-1
workspace = 2, monitor:HDMI-A-1
workspace = 3, monitor:HDMI-A-1
workspace = 4, monitor:HDMI-A-1
workspace = 5, monitor:HDMI-A-1
monitor = DP-3,2560x1440@75,auto,1.33
workspace = DP-3,11
workspace = 11, monitor:DP-3
workspace = 12, monitor:DP-3
workspace = 13, monitor:DP-3
workspace = 14, monitor:DP-3
workspace = 15, monitor:DP-3

View File

@ -0,0 +1,11 @@
# Windows
windowrulev2 = float,class:^(mpv)$
windowrulev2 = minsize 700 700,class:^(mpv)$
windowrulev2 = float,class:^(imv)$
windowrulev2 = float,class:^(com\.nextcloud\.desktopclient\.nextcloud)$
windowrulev2 = float,class:^fsearch$
windowrulev2 = float,class:^nm-connection-editor$
windowrulev2 = float,class:^yad$
# Layers
layerrule = noanim,selection

View File

@ -0,0 +1,37 @@
general {
gaps_in = 5
gaps_out = 10
border_size = 2
col.active_border = rgba(81a1c1ff)
col.inactive_border = rgba(2e3440ff)
col.group_border = rgba(2e3440ff)
col.group_border_active = rgba(81a1c1ff)
}
decoration {
rounding = 10
blur = yes
blur_size = 4
blur_passes = 3
blur_new_optimizations = on
drop_shadow = yes
shadow_range = 32
shadow_render_power = 2
col.shadow = 0x66000000
shadow_offset = 4 4
shadow_ignore_window = true
}
animations {
enabled = yes
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
}

View File

@ -0,0 +1,15 @@
# Don't edit this! #############################
source = ~/.config/hypr/conf.d/environment.conf
source = ~/.config/hypr/conf.d/autostart.conf
source = ~/.config/hypr/conf.d/monitors.conf
source = ~/.config/hypr/conf.d/input.conf
source = ~/.config/hypr/conf.d/misc.conf
source = ~/.config/hypr/conf.d/theme.conf
source = ~/.config/hypr/conf.d/layout.conf
source = ~/.config/hypr/conf.d/keybinds.conf
source = ~/.config/hypr/conf.d/rules.conf
################################################
# Custom configuration here
exec-once = ~/.local/bin/jellyfin-rpc &
exec-once = sleep 5; nextcloud &