dotfiles/private_dot_config/hypr/hyprland.conf
Jinks 024f45246d Add .config/hypr/hypr.png
Update .config/hypr/hyprland.conf
Update .config/hypr/hyprlock.conf
2025-01-03 06:51:11 +01:00

358 lines
13 KiB
Text

# This is an example Hyprland config file.
#
# Refer to the wiki for more information.
#
# Please note not all available settings / options are set here.
# For a full list, see the wiki
#
# See https://wiki.hyprland.org/Configuring/Monitors/
monitor=DP-1, 1920x1080, 0x0, 1
monitor=DP-2, 1920x1080, 1920x0, 1
#monitor = , preferred, auto, 1
# See https://wiki.hyprland.org/Configuring/Keywords/ for more
# Execute your favorite apps at launch
# exec-once = waybar & hyprpaper & firefox
# Source a file (multi-file configs)
# source = ~/.config/hypr/myColors.conf
# Some default env vars.
env = XCURSOR_SIZE,32
env = XCURSOR_THEME,Sunity-cursors
env = HYPRCURSOR_SIZE,32
env = HYPRCURSOR_THEME,Sunity-cursors
#env = SDL_VIDEODRIVER,wayland
#env = XDG_CURRENT_DESKTOP,hyprland
env = XDG_SESSION_DESKTOP,hyprland
env = XDG_SESSION_TYPE,hyprland
env = GDK_BACKEND,wayland,x11,*
env = PATH,$HOME/bin:$PATH
env = HYPRSHOT_DIR,$HOME/Pictures/Screenshots
# For all categories, see https://wiki.hyprland.org/Configuring/Variables/
input {
kb_layout = us-german-umlaut
kb_variant =
#kb_layout = de
#kb_variant = nodeadkeys
kb_model =
kb_options =
kb_rules =
numlock_by_default = true
follow_mouse = 1
touchpad {
natural_scroll = false
}
sensitivity = 0 # -1.0 - 1.0, 0 means no modification.
}
general {
# See https://wiki.hyprland.org/Configuring/Variables/ for more
gaps_in = 0
gaps_out = 0
border_size = 0
col.active_border = rgba(82dcccff) rgba(01ccffff) 45deg
col.inactive_border = rgba(007d6fff) rgba(182545ff) 45deg
layout = dwindle
}
decoration {
# See https://wiki.hyprland.org/Configuring/Variables/ for more
inactive_opacity = 0.95
rounding = 0
blur {
enabled = true
size = 3
passes = 1
new_optimizations = true
#xray = true
}
shadow {
enabled = true
range = 4
render_power = 3
color = 0xee1a1a1
}
}
animations {
enabled = true
# 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, 5, default, fade
}
dwindle {
# See https://wiki.hyprland.org/Configuring/Dwindle-Layout/ for more
pseudotile = true # master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below
preserve_split = true # you probably want this
smart_split = true
}
master {
# See https://wiki.hyprland.org/Configuring/Master-Layout/ for more
orientation = center
}
gestures {
# See https://wiki.hyprland.org/Configuring/Variables/ for more
workspace_swipe = false
}
# Example per-device config
# See https://wiki.hyprland.org/Configuring/Keywords/#per-device-input-configs for more
#device:epic-mouse-v1 {
# sensitivity = -0.5
#}
misc {
disable_hyprland_logo = true
disable_splash_rendering = true
mouse_move_enables_dpms = true
key_press_enables_dpms = true
}
# Example windowrule v1
# windowrule = float,^(*ksnip)$
# Example windowrule v2
# windowrulev2 = float,class:^(kitty)$,title:^(kitty)$
# See https://wiki.hyprland.org/Configuring/Window-Rules/ for more
windowrulev2 = float,class:(imv)
windowrulev2 = float,class:(feh)
windowrulev2 = float,class:(org.speedcrunch.speedcrunch)
windowrulev2 = float,title:(^SteamTinkerLaunch.*)
windowrulev2 = syncfullscreen 0,class:(firefox)
windowrulev2 = syncfullscreen 0,class:(chromium)
windowrulev2 = size 30% 50% ,class:(org.speedcrunch.speedcrunch)
windowrulev2 = bordersize 2, floating:1
windowrulev2 = rounding 5, floating:1
windowrulev2 = noborder 1, fullscreen:1
windowrulev2 = norounding 1, fullscreen:1
windowrulev2 = bordercolor rgba(007d6fff) rgba(182545ff) 45deg, floating:1
windowrulev2 = idleinhibit fullscreen,title:(.*)
windowrulev2 = idleinhibit focus, class:(mpv)
windowrulev2 = idleinhibit focus, title:(Euro Truck Simulator 2)
windowrulev2 = idleinhibit always,class:(com.github.iwalton3.jellyfin-media-player)
windowrulev2 = idleinhibit always,class:(^steam_app_.*)
windowrulev2 = workspace 1 silent,class:(Element)
windowrulev2 = workspace 7 silent,class:(steam)
windowrulev2 = workspace 16 silent,class:(org.test.pulsecontrol)
windowrulev2 = workspace 11 silent,class:(vesktop)
# Workspace Rules
#workspace = 1, defaultName:1, monitor:DP-1
#workspace = 2, defaultName:2, monitor:DP-1
#workspace = 3, defaultName:3, monitor:DP-1
#workspace = 4, defaultName:4, monitor:DP-1
#workspace = 5, defaultName:5, monitor:DP-1
#workspace = 6, defaultName:6, monitor:DP-1
#workspace = 7, defaultName:7, monitor:DP-1
#workspace = 8, defaultName:8, monitor:DP-1
#workspace = 9, defaultName:9, monitor:DP-1
#workspace = 10, defaultName:10, monitor:DP-1
#workspace = 11, defaultName:1, monitor:DP-2
#workspace = 12, defaultName:2, monitor:DP-2
#workspace = 13, defaultName:3, monitor:DP-2
#workspace = 14, defaultName:4, monitor:DP-2
#workspace = 15, defaultName:5, monitor:DP-2
#workspace = 16, defaultName:6, monitor:DP-2
#workspace = 17, defaultName:7, monitor:DP-2
#workspace = 18, defaultName:8, monitor:DP-2
#workspace = 19, defaultName:9, monitor:DP-2
#workspace = 20, defaultName:10, monitor:DP-2
workspace = 1, monitor:DP-1
workspace = 2, monitor:DP-1
workspace = 3, monitor:DP-1
workspace = 4, monitor:DP-1
workspace = 5, monitor:DP-1
workspace = 6, monitor:DP-1
workspace = 7, monitor:DP-1
workspace = 8, monitor:DP-1
workspace = 9, monitor:DP-1
workspace = 10, monitor:DP-1
workspace = 11, monitor:DP-2
workspace = 12, monitor:DP-2
workspace = 13, monitor:DP-2
workspace = 14, monitor:DP-2
workspace = 15, monitor:DP-2
workspace = 16, monitor:DP-2
workspace = 17, monitor:DP-2
workspace = 18, monitor:DP-2
workspace = 19, monitor:DP-2
workspace = 20, monitor:DP-2
binds {
allow_workspace_cycles = true
scroll_event_delay = 1
}
# See https://wiki.hyprland.org/Configuring/Keywords/ for more
$mainMod = SUPER
$terminal = terminator
# Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more
bind = $mainMod, RETURN, exec, $terminal
bind = $mainMod, KP_Enter, exec, $terminal
bind = $mainMod, Q, killactive,
bind = $mainMod SHIFT, E, exit,
bind = $mainMod, E, exec, nemo
bind = $mainMod, SPACE, togglefloating,
#bind = $mainMod, D, exec, wofi -S drun,run
bind = $mainMod, D, exec, GSK_RENDERER=ngl walker
bind = $mainMod, P, pseudo, # dwindle
bind = $mainMod, J, togglesplit, # dwindle
bind = $mainMod, F, fullscreen, 0 # dwindle
bind = $mainMod SHIFT, F, fullscreen, 1 # dwindle
bind = $mainMod CTRL, F, fullscreenstate, 0 2 # dwindle
bind = $mainMod, N, exec, swaync-client -t -sw # swaync
bind = $mainMod, G, exec, bluetoothctl connect 3C:FA:06:29:AA:7B
#bind = $mainMod, X, exec, speedcrunch
bind = $mainMod, X, exec, walker -m calc
bind = , XF86Calculator, exec, walker -m calc
# Move focus with mainMod + arrow keys
#bind = $mainMod, left, movefocus, l
#bind = $mainMod, right, movefocus, r
#bind = $mainMod, up, movefocus, u
#bind = $mainMod, down, movefocus, d
# 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
bind = $mainMod CTRL, 1, workspace, 11
bind = $mainMod CTRL, 2, workspace, 12
bind = $mainMod CTRL, 3, workspace, 13
bind = $mainMod CTRL, 4, workspace, 14
bind = $mainMod CTRL, 5, workspace, 15
bind = $mainMod CTRL, 6, workspace, 16
bind = $mainMod CTRL, 7, workspace, 17
bind = $mainMod CTRL, 8, workspace, 18
bind = $mainMod CTRL, 9, workspace, 19
bind = $mainMod CTRL, 0, workspace, 20
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
bind = $mainMod SHIFT CTRL, 1, movetoworkspace, 11
bind = $mainMod SHIFT CTRL, 2, movetoworkspace, 12
bind = $mainMod SHIFT CTRL, 3, movetoworkspace, 13
bind = $mainMod SHIFT CTRL, 4, movetoworkspace, 14
bind = $mainMod SHIFT CTRL, 5, movetoworkspace, 15
bind = $mainMod SHIFT CTRL, 6, movetoworkspace, 16
bind = $mainMod SHIFT CTRL, 7, movetoworkspace, 17
bind = $mainMod SHIFT CTRL, 8, movetoworkspace, 18
bind = $mainMod SHIFT CTRL, 9, movetoworkspace, 19
bind = $mainMod SHIFT CTRL, 0, movetoworkspace, 20
# move active window to previous or next monitor with mainMod + control + shift + arrow keys
bind = $mainMod SHIFT CTRL, left, movewindow, mon:-1
bind = $mainMod SHIFT CTRL, right, movewindow, mon:+1
# Scroll through existing workspaces with mainMod + scroll
bind = $mainMod, mouse_right, workspace, m-1
bind = $mainMod, mouse_left, workspace, m+1
# go to previous or next workspace with mainMod + arrow keys
bind = $mainMod, left, workspace, r-1
bind = $mainMod, right, workspace, r+1
# go to previous or next monitor with mainMod + control + arrow keys
bind = $mainMod CTRL, left, focusmonitor, -1
bind = $mainMod CTRL, right, focusmonitor, +1
# Move/resize windows with mainMod + LMB/RMB and dragging
bindm = $mainMod, mouse:272, movewindow
bindm = $mainMod, mouse:273, resizewindow
# Zoom to cursor
bind = $mainMod, mouse_down, exec, hyprctl keyword cursor:zoom_factor "$(hyprctl getoption cursor:zoom_factor | awk 'NR==1 {factor = $2 * 1.25; if (factor < 1) {factor = 1}; print factor}')"
bind = $mainMod, mouse_up, exec, hyprctl keyword cursor:zoom_factor "$(hyprctl getoption cursor:zoom_factor | awk 'NR==1 {factor = $2 / 1.25; if (factor < 1) {factor = 1}; print factor}')"
bind = $mainMod SHIFT, mouse_up, exec, hyprctl keyword cursor:zoom_factor 1
# Suspend
bindl = $mainMod SHIFT, L, exec, sleep 1 && systemctl suspend
bindl = , XF86Sleep, exec, sleep 1 && systemctl suspend
bind = $mainMod, L, exec, hyprlock
# Brightness
#bindel = , XF86MonBrightnessUp, exec, brightnessctl set 10%+
#bindel = , XF86MonBrightnessDown, exec, brightnessctl set 10%-
bindl = , XF86MonBrightnessUp, exec, swayosd-client --brightness +10
bindl = , XF86MonBrightnessDown, exec, swayosd-client --brightness -10
# Media keys
#bindel = , XF86AudioRaiseVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+
#bindel = , XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-
#bindl = , XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle
#bindl = , XF86AudioMicMute, exec, wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle
bindl = , XF86AudioRaiseVolume, exec, swayosd-client --output-volume 5
bindl = , XF86AudioLowerVolume, exec, swayosd-client --output-volume -5
bindl = , XF86AudioMute, exec, swayosd-client --output-volume mute-toggle
bindl = , XF86AudioMicMute, exec, swayosd-client --input-volume mute-toggle
# Screenshots
#bind = , PRINT, exec, hyprshot -m output # screenshot a monitor
#bind = $mainMod, PRINT, exec, hyprshot -m window # screenshot a window
#bind = $mainMod SHIFT, PRINT, exec, hyprshot -m region # screenshot a region
bind = , PRINT, exec, ~/bin/grimsnap
bind = ALT, PRINT, exec, grim -g "$(slurp)" -t png - | wl-copy -t image/png
bind = SHIFT, PRINT, exec, imv $(find $(xdg-user-dir PICTURES)/Screenshots/ -printf "%C@ %p\n" | sort -n | cut -f2- -d" " | tail -1)
# Autolaunch
#exec-once = hyprpaper
exec = import-gsettings
exec-once = ~/bin/hyprfloatfix.sh
exec-once = xhost +si:localuser:root
#exec-once = swaybg -o \* -i /home/jinks/Pictures/Wallpapers/Icetwigs.jpg -m fill
exec-once = swaybg -o \* -i ~/.config/hypr/hypr.png -m fill
exec-once = waybar -c ~/.config/waybar/siren/config -s ~/.config/waybar/siren/style.css
exec-once = hyprpanel
exec-once = hypridle
exec-once = swaync
exec-once = solaar -w hide
exec-once = blueman-applet
exec-once = copyq --start-server
exec-once = gammastep-indicator -l 53.04:7.44
exec-once = nextcloud
exec-once = pulsecontrol
exec-once = swayosd-server
exec-once = walker --gapplication-service
exec-once = sleep 5 && systemctl --user start hyprpolkitagent
#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 = element-desktop