inital commit

This commit is contained in:
2025-03-04 14:37:46 +01:00
commit 6711294f5e
33 changed files with 551 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
general {
lock_cmd = pidof hyprlock || hyprlock # avoid starting multiple hyprlock instances.
before_sleep_cmd = loginctl lock-session # lock before suspend.
after_sleep_cmd = hyprctl dispatch dpms on # to avoid having to press a key twice to turn on the display.
}
listener {
timeout = 300 # 5min
on-timeout = loginctl lock-session # lock screen when timeout has passed
}
listener {
timeout = 330 # 5.5min
on-timeout = hyprctl dispatch dpms off # screen off when timeout has passed
on-resume = hyprctl dispatch dpms on # screen on when activity is detected after timeout has fired.
}
listener {
timeout = 1800 # 30min
on-timeout = systemctl suspend # suspend pc
}

View File

@@ -0,0 +1,34 @@
$mainMod = SUPER # Sets "Windows" key as main modifier
$terminal = uwsm app -- kitty
$menu = uwsm app -- $(wofi --show drun --define=drun-print_desktop_file=true)
monitor=,preferred,auto,auto
env = XCURSOR_SIZE,24
env = HYPRCURSOR_SIZE,24
# TO BE MOVED
bind = $mainMod, M, exit,
misc {
force_default_wallpaper = 0 # Set to 0 or 1 to disable the anime mascot wallpapers
disable_hyprland_logo = true # If true disables the random hyprland logo / anime girl background. :(
}
gestures {
workspace_swipe = false
}
# IMPORTS
source = ./hyprland/binds/*
source = ./hyprland/rules/*
source = ./hyprland/input.conf
source = ./hyprland/general.conf
source = ./hyprland/decoration.conf
source = ./hyprland/animations.conf
source = ./hyprland/layouts.conf
source = ./hyprland/workspaces.conf

View File

@@ -0,0 +1,28 @@
animations {
enabled = yes, please :)
# Default animations, see https://wiki.hyprland.org/Configuring/Animations/ for more
bezier = easeOutQuint,0.23,1,0.32,1
bezier = easeInOutCubic,0.65,0.05,0.36,1
bezier = linear,0,0,1,1
bezier = almostLinear,0.5,0.5,0.75,1.0
bezier = quick,0.15,0,0.1,1
animation = global, 1, 10, default
animation = border, 1, 5.39, easeOutQuint
animation = windows, 1, 4.79, easeOutQuint
animation = windowsIn, 1, 4.1, easeOutQuint, popin 87%
animation = windowsOut, 1, 1.49, linear, popin 87%
animation = fadeIn, 1, 1.73, almostLinear
animation = fadeOut, 1, 1.46, almostLinear
animation = fade, 1, 3.03, quick
animation = layers, 1, 3.81, easeOutQuint
animation = layersIn, 1, 4, easeOutQuint, fade
animation = layersOut, 1, 1.5, linear, fade
animation = fadeLayersIn, 1, 1.79, almostLinear
animation = fadeLayersOut, 1, 1.39, almostLinear
animation = workspaces, 1, 1.94, almostLinear, fade
animation = workspacesIn, 1, 1.21, almostLinear, fade
animation = workspacesOut, 1, 1.94, almostLinear, fade
}

View File

@@ -0,0 +1,11 @@
# Requires pactl
bindl=, XF86AudioRaiseVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+ && ~/.local/bin/wp-vol.sh && paplay /usr/share/sounds/freedesktop/stereo/bell.oga
bindl=, XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%- && ~/.local/bin/wp-vol.sh && paplay /usr/share/sounds/freedesktop/stereo/bell.oga
bindl=, XF86AudioMicMute, exec, wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle
bindl=, XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle
# Requires playerctl
bindl = , XF86AudioNext, exec, playerctl next
bindl = , XF86AudioPause, exec, playerctl play-pause
bindl = , XF86AudioPlay, exec, playerctl play-pause
bindl = , XF86AudioPrev, exec, playerctl previous

View File

@@ -0,0 +1,13 @@
# general
bind = $mainMod, RETURN, exec, $terminal
bind = $mainMod L_SHIFT, P, exec, $menu
# Workspace binded apps
bind = $mainMod Control_L, 1, exec, uwsm app -- vesktop
bind = $mainMod Control_L, 2, exec, uwsm app -- zen-browser
bind = $mainMod Control_L, 3, exec, uwsm app -- mangohud steam
bind = $mainMod Control_L, 4, exec, uwsm app -- gimp
bind = $mainMod Control_L, 9, exec, uwsm app -- spotify-launcher
bind = $mainMod Control_L, 0, exec, uwsm app -- obs

View File

@@ -0,0 +1,4 @@
bind = $mainMod L_SHIFT ctrl, l, exec, hyprlock # lock
bind = $mainMod L_SHIFT ctrl, r, exec, systemctl reboot
bind = $mainMod L_SHIFT ctrl, p, exec, systemctl poweroff
bind = $mainMod L_SHIFT ctrl, s, exec, systemctl suspend

View File

@@ -0,0 +1,19 @@
# screenshots fullscreen (mainMod)
bindt = , PRINT, exec, ~/.local/bin/screenshots.sh fullscreen --copy --save
bindt = L_SHIFT, PRINT, exec, ~/.local/bin/screenshots.sh fullscreen --edit
# screenshots region (alt)
bindt = alt_l, PRINT, exec, ~/.local/bin/screenshots.sh region --copy --save
bindt = alt_l L_SHIFT, PRINT, exec, ~/.local/bin/screenshots.sh region --edit
# screenshots window (control)
bindt = Control_L, PRINT, exec, ~/.local/bin/screenshots.sh window --copy --save
bindt = Control_L SHIFT_L, PRINT, exec, ~/.local/bin/screenshots.sh window --edit
# color picker
bindt = $mainMod, PRINT, exec, ~/.local/bin/screenshots.sh color

View File

@@ -0,0 +1,82 @@
# Move focus with mainMod + vim keys
bind = $mainMod, h, movefocus, l
bind = $mainMod, l, movefocus, r
bind = $mainMod, k, movefocus, u
bind = $mainMod, j, movefocus, d
# Resize with mainMod + shift + vim keys
binde = $mainMod L_SHIFT, l, resizeactive, 10 0 # right
binde = $mainMod L_SHIFT, h, resizeactive, -10 0 # left
binde = $mainMod L_SHIFT, k, resizeactive, 0 -10 #up
binde = $mainMod L_SHIFT, j, resizeactive, 0 10 # down
# Move/resize windows with mainMod + LMB/RMB and dragging
bindm = $mainMod, mouse:272, movewindow
bindm = $mainMod, mouse:273, resizewindow
# Scroll through existing workspaces with mainMod + scroll
bind = $mainMod, mouse_down, workspace, e+1
bind = $mainMod, mouse_up, workspace, e-1
# Move to different monitor
bind = $mainMod L_SHIFT, right, exec, sleep 1 && hyprctl dispatch movecurrentworkspacetomonitor +1
bind = $mainMod L_SHIFT, left, exec, sleep 1 && hyprctl dispatch movecurrentworkspacetomonitor -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 workspaces with mainMod + alt [10-19]
bind = $mainMod L_ALT, 1, workspace, 11
bind = $mainMod L_ALT, 2, workspace, 12
bind = $mainMod L_ALT, 3, workspace, 13
bind = $mainMod L_ALT, 4, workspace, 14
bind = $mainMod L_ALT, 5, workspace, 15
bind = $mainMod L_ALT, 6, workspace, 16
bind = $mainMod L_ALT, 7, workspace, 17
bind = $mainMod L_ALT, 8, workspace, 18
bind = $mainMod L_ALT, 9, workspace, 19
bind = $mainMod L_ALT, 0, workspace, 20
# 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 L_ALT, 1, movetoworkspace, 11
bind = $mainMod SHIFT L_ALT, 2, movetoworkspace, 12
bind = $mainMod SHIFT L_ALT, 3, movetoworkspace, 13
bind = $mainMod SHIFT L_ALT, 4, movetoworkspace, 14
bind = $mainMod SHIFT L_ALT, 5, movetoworkspace, 15
bind = $mainMod SHIFT L_ALT, 6, movetoworkspace, 16
bind = $mainMod SHIFT L_ALT, 7, movetoworkspace, 17
bind = $mainMod SHIFT L_ALT, 8, movetoworkspace, 18
bind = $mainMod SHIFT L_ALT, 9, movetoworkspace, 19
bind = $mainMod SHIFT L_ALT, 0, movetoworkspace, 20
# Change display settings
bindd = $mainMod, F, Make app fullscreen, fullscreen
bindd = $mainMod, T, Toggle floating, togglefloating
bindd = $mainMod, P, Toggle pseudo, pseudo
bindd = $mainMod, P, Toggle pseudo, pseudo
bindd = $mainMod, S, Toggle split, togglesplit
bindd = $mainMod L_SHIFT, Q, Kill active window, killactive
# special workspace
bind = $mainMod, TAB, togglespecialworkspace, magic
bind = $mainMod SHIFT, TAB, movetoworkspace, special:magic

View File

@@ -0,0 +1,25 @@
# https://wiki.hyprland.org/Configuring/Variables/#decoration
decoration {
rounding = 10
rounding_power = 2
# Change transparency of focused and unfocused windows
active_opacity = 1.0
inactive_opacity = 1.0
shadow {
enabled = true
range = 4
render_power = 3
color = rgba(1a1a1aee)
}
# https://wiki.hyprland.org/Configuring/Variables/#blur
blur {
enabled = true
size = 3
passes = 1
vibrancy = 0.1696
}
}

View File

@@ -0,0 +1,19 @@
general {
gaps_in = 5
gaps_out = 20
border_size = 2
# https://wiki.hyprland.org/Configuring/Variables/#variable-types for info about colors
col.active_border = rgba(33ccffee) rgba(00ff99ee) 45deg
col.inactive_border = rgba(595959aa)
# Set to true enable resizing windows by clicking and dragging on borders and gaps
resize_on_border = false
# Please see https://wiki.hyprland.org/Configuring/Tearing/ before you turn this on
allow_tearing = false
layout = dwindle
}

View File

@@ -0,0 +1,24 @@
input {
kb_layout = pl
kb_variant =
kb_model =
kb_options =
kb_rules =
follow_mouse = 1
left_handed = true
sensitivity = 0 # -1.0 - 1.0, 0 means no modification.
touchpad {
natural_scroll = true
}
}
cursor {
no_hardware_cursors = true
inactive_timeout = 5
warp_on_change_workspace = 1
zoom_factor = 1.0
hide_on_key_press = 1
}

View File

@@ -0,0 +1,8 @@
dwindle {
pseudotile = true # Master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below
preserve_split = true # You probably want this
}
master {
new_status = master
}

View File

@@ -0,0 +1,2 @@
windowrulev2 = float, title:(.*)(itwarden)(.*)
windowrulev2 = float, title:^(Rozszerzenie: (Menedżer Haseł Bitwarden) - Bitwarden — Zen Browser)$

View File

@@ -0,0 +1,12 @@
windowrulev2 = workspace 2 silent, class:^(zen-beta)$
windowrulev2 = noinitialfocus, class:^(zen-beta)$
windowrulev2 = suppressevent activatefocus, class:^(zen-beta)$
windowrulev2 = size 40% 40%, class:^(zen-beta)$
windowrulev2 = pseudo, title:^(Obraz w obrazie)$
windowrulev2 = workspace 2, title:^(Obraz w obrazie)$
windowrulev2 = noinitialfocus, title:^(Obraz w obrazie)$
windowrulev2 = suppressevent activatefocus, title:^(Obraz w obrazie)$
windowrulev2 = float, title:^(Logowanie Konta Google — Zen Browser)$
windowrulev2 = center, title:^(Logowanie Konta Google — Zen Browser)$

View File

@@ -0,0 +1 @@
windowrulev2 = animation:disabled, class:^(feh)$

View File

@@ -0,0 +1 @@
windowrulev2 = workspace 4, class:^(gimp)-(.*)

View File

@@ -0,0 +1 @@
windowrulev2 = workspace 3, class:^(heroic)$

View File

@@ -0,0 +1 @@
windowrulev2 = workspace 4, class:^(kitty)$

View File

@@ -0,0 +1 @@
windowrulev2 = workspace 3, class:^(net.lutris.Lutris)$

View File

@@ -0,0 +1,5 @@
# Ignore maximize requests from apps.
windowrulev2 = suppressevent maximize, class:.*
# Fix some dragging issues with XWayland
windowrulev2 = nofocus,class:^$,title:^$,xwayland:1,floating:1,fullscreen:0,pinned:0

View File

@@ -0,0 +1 @@
windowrulev2 = workspace 10, class:^(com.obsproject.Studio)$

View File

@@ -0,0 +1,4 @@
windowrulev2 = float, class:^(org.pulseaudio.pavucontrol)$
windowrulev2 = size 80% 60%, class:^(org.pulseaudio.pavucontrol)$
windowrulev2 = stayfocused, class:^(org.pulseaudio.pavucontrol)$
windowrulev2 = pin, class:^(org.pulseaudio.pavucontrol)$

View File

@@ -0,0 +1 @@
windowrulev2 = workspace 3, class:^(rpcs3)$

View File

@@ -0,0 +1 @@
windowrulev2 = workspace 9 silent, class:.*potify

View File

@@ -0,0 +1,8 @@
windowrulev2 = workspace 3 silent, class:^(steam)$
windowrulev2 = noinitialfocus, class:^(steam)$
windowrulev2 = suppressevent activatefocus, class:^(steam)$
windowrulev2 = stayfocused, title:^(Sign in to Steam)$, class:^(steam)$
windowrulev2 = float, title:^(Lista znajomych)$
windowrulev2 = center, title:^(Lista znajomych)$
windowrulev2 = size 40% 60%, title:^(Lista znajomych)$

View File

@@ -0,0 +1,2 @@
windowrulev2 = pin, title:swappy
windowrulev2 = stayfocused, title:swappy

View File

@@ -0,0 +1,8 @@
windowrulev2 = workspace 1 silent, class:^(vesktop)$
windowrulev2 = noinitialfocus, class:^(vesktop)$
windowrulev2 = focusonactivate 0, class:^(vesktop)$
windowrulev2 = renderunfocused, class:^(vesktop)$
windowrulev2 = opacity 0.95, class:^(vesktop)$
windowrulev2 = fullscreen, class:^(vesktop)$

View File

@@ -0,0 +1,6 @@
workspace = 1, monitor:HDMI-A-1
workspace = 2, monitor:DP-1
workspace = 3, monitor:DP-1
workspace = 4, monitor:DP-1
workspace = 9, monitor:HDMI-A-1
workspace = 10, monitor:HDMI-A-1

View File

@@ -0,0 +1,32 @@
general {
ignore_empty_input = 1
}
background {
monitor =
color = black
}
input-field {
monitor =
size = 200, 50
outline_thickness = 3
rounding = -1
halign = center
valign = center
color = white
}
label {
monitor =
text = Aktualna godzina: $TIME
text_align = center
color = white
font_size = 25
font_family = Noto Sans
position = 0, 80
halign = center
valign = center
shadow_passes =1
}