Ajout : configuration de Hyprland pour ahrc-laptop

This commit is contained in:
Ahurac 2024-01-09 18:37:35 +01:00
parent e974504179
commit 403b0863b6
16 changed files with 324 additions and 0 deletions

View file

@ -0,0 +1,31 @@
# Defaults
$terminal = alacritty
$browser = librewolf
$locker = swaylock
# Applications
$joplin = joplin-desktop
$bitwarden = bitwarden-desktop
$element = element-desktop
$discord = webcord
$deezer = deezer --enable-features=UseOzonePlatform --ozone-platform=wayland
# Classes
$terminal_class = Alacritty
$joplin_class = @joplin/app-desktop
$bitwarden_class = Bitwarden
$element_class = Element
$discord_class = WebCord
$deezer_class = Deezer
# Colors
$col_accentdark = rgb(00ff00)
$col_accentlight = rgb(80ff80)
$col_inactive = rgba(80808080)
$col_textlight = rgba(ffffffe8)
# Plugins
plugin = /usr/lib/libhy3.so
# Configuration modules
source = hyprland.d/*.conf

View file

@ -0,0 +1,5 @@
# Animations
animations {
# Save battery
enabled = false
}

View file

@ -0,0 +1,94 @@
# Open terminal
bind = SUPER, Return, exec, $terminal
# Workspaces
#bind = SUPER, equal, movetoworkspace, special
bind = SUPER, 10, workspace, 1
bind = SUPER, 11, workspace, 2
bind = SUPER, 12, workspace, 3
bind = SUPER, 13, workspace, 4
bind = SUPER, R, workspace, 5
bind = SUPER, F, workspace, 6
bind = SUPER, V, workspace, 7
bind = SUPER, C, workspace, 8
bind = SUPER, X, workspace, 9
bind = SUPER, W, workspace, 10
bind = SUPER, mouse_down, workspace, e-1
bind = SUPER, mouse_up, workspace, e+1
bind = SUPER Alt_L, Return, exec, hyprswapworkspaces
# Windows
bindm = SUPER, mouse:272, movewindow
bindm = SUPER, mouse:273, resizewindow
bind = SUPER SHIFT, Q, killactive
bind = SUPER SHIFT, 10, movetoworkspacesilent, 1
bind = SUPER SHIFT, 11, movetoworkspacesilent, 2
bind = SUPER SHIFT, 12, movetoworkspacesilent, 3
bind = SUPER SHIFT, 13, movetoworkspacesilent, 4
bind = SUPER SHIFT, R, movetoworkspacesilent, 5
bind = SUPER SHIFT, F, movetoworkspacesilent, 6
bind = SUPER SHIFT, V, movetoworkspacesilent, 7
bind = SUPER SHIFT, C, movetoworkspacesilent, 8
bind = SUPER SHIFT, X, movetoworkspacesilent, 9
bind = SUPER SHIFT, W, movetoworkspacesilent, 10
bind = SUPER SHIFT, space, pin, active
bind = SUPER SHIFT, A, hy3:movewindow, l
bind = SUPER SHIFT, Z, hy3:movewindow, u
bind = SUPER SHIFT, S, hy3:movewindow, d
bind = SUPER SHIFT, D, hy3:movewindow, r
bind = SUPER Alt_L, space, togglefloating
bind = SUPER Alt_L, F, fullscreen
bind = SUPER SHIFT Alt_L, F, fakefullscreen
# Focus
bind = SUPER, A, hy3:movefocus, l
bind = SUPER, Z, hy3:movefocus, u
bind = SUPER, S, hy3:movefocus, d
bind = SUPER, D, hy3:movefocus, r
bindn = , mouse:272, hy3:focustab, mouse
bindn = , mouse_up, hy3:focustab, r, require_hovered, wrap
bindn = , mouse_down, hy3:focustab, l, require_hovered, wrap
# Groups
bind = SUPER, Q, hy3:makegroup, tab, force_ephemeral
bind = SUPER, E, hy3:changegroup, opposite
bind = SUPER, B, hy3:changegroup, toggletab
# Global
bind = SUPER SHIFT, BackSpace, exit
# Launchers
bind = SUPER, F1, exec, $browser
bind = SUPER, F2, exec, $joplin
bind = SUPER, F3, exec, $bitwarden
bind = SUPER, F4, exec, $element
bind = SUPER, F5, exec, $discord
bind = SUPER, F6, exec, $deezer
# Screenshots
bind = , Print, exec, glurp full clip
bind = Alt_L, Print, exec, glurp full file
bind = SHIFT, Print, exec, glurp area clip
bind = SHIFT Alt_L, Print, exec, glurp area file
# Lock screen
bind = SUPER, L, exec, $locker
# Sound
binde = , XF86AudioRaiseVolume, exec, swayosd-client --output-volume=raise
binde = , XF86AudioLowerVolume, exec, swayosd-client --output-volume=lower
binde = , XF86AudioMute, exec, swayosd-client --output-volume=mute-toggle
# Resize
bind = SUPER Alt_L, R, submap, resize
submap = resize
binde = , A, resizeactive, -25 0
binde = , Z, resizeactive, 0 -25
binde = , S, resizeactive, 0 25
binde = , D, resizeactive, 25 0
bind = , escape, submap, reset
submap = reset
# Brightness
binde = , XF86MonBrightnessDown, exec, swayosd-client --brightness=lower
binde = , XF86MonBrightnessUp, exec, swayosd-client --brightness=raise

View file

@ -0,0 +1,14 @@
# Binds
binds {
# Scrolling
scroll_event_delay = 0
# Workspaces
workspace_back_and_forth = false
allow_workspace_cycles = false
workspace_center_on = 1
# Focus
focus_preferred_method = 1
movefocus_cycles_fullscreen = false
}

View file

@ -0,0 +1,23 @@
# Decoration
decoration {
# Corners
rounding = 10
# Opacity
active_opacity = 1.0
inactive_opacity = 1.0
fullscreen_opacity = 1.0
# Shadows
drop_shadow = false
# Dimming
dim_inactive = false
# Blur
blur {
enabled = false
ignore_opacity = true
xray = true
}
}

View file

@ -0,0 +1,20 @@
# Qt
env = QT_QPA_PLATFORM, wayland
env = QT_QPA_PLATFORMTHEME, qt6ct
env = QT_AUTO_SCREEN_SCALE_FACTOR, 1
env = QT_WAYLAND_DISABLE_WINDOWDECORATION, 1
# Clutter
env = CLUTTER_BACKEND = wayland
# SDL
env = SDL_VIDEODRIVER, wayland
# ELM
env = ELM_DISPLAY, wl
# Java
env = _JAVA_AWT_WM_NONREPARENTING, 1
# XDG
env = XDG_SESSION_DESKTOP, Hyprland

View file

@ -0,0 +1,25 @@
# General
general {
# Borders
border_size = 2
col.inactive_border = $col_inactive
col.nogroup_border = $col_inactive
col.active_border = $col_accentdark $col_accentlight 90deg
col.nogroup_border_active = rgb(00cc66) rgb(33ff99) 270deg
resize_on_border = false
# Gaps
gaps_in = 5
gaps_out = 10
gaps_workspaces = 0
# Cursor
cursor_inactive_timeout = 0
no_cursor_warps = false
# Layout
layout = hy3
# Focus
no_focus_fallback = true
}

View file

@ -0,0 +1,4 @@
# Gestures
gestures {
workspace_swipe = true
}

View file

@ -0,0 +1,18 @@
# Input
input {
# Keyboard
kb_layout = fr
numlock_by_default = true
repeat_rate = 75
repeat_delay = 300
# Mouse
sensitivity = 0.0
accel_profile = flat
# Touchpad
touchpad {
disable_while_typing = false
natural_scroll = true
}
}

View file

@ -0,0 +1,30 @@
# Misc
misc {
# Logos and mascotts
disable_hyprland_logo = true
disable_splash_rendering = true
force_hypr_chan = false
# Focus
layers_hog_keyboard_focus = true
mouse_move_focuses_monitor = true
# Animations
animate_manual_resizes = true
# Swallowing
enable_swallow = true
swallow_regex = $terminal_class
# Cursor
hide_cursor_on_touch = false
# Screen locking
#allow_session_lock_restore = true
# Workspaces
close_special_on_empty = true
# Windows
new_window_takes_over_fullscreen = 2
}

View file

@ -0,0 +1,2 @@
# Main monitor
monitor = , highrr, 1920x0, 1

View file

@ -0,0 +1,34 @@
# Plugin configuration
plugin {
hy3 {
# Windows
no_gaps_when_only = false
# Groups
node_collapse_policy = 0
# Tabs
tabs {
height = 15
padding = 5
from_top = true
rounding = 8
render_text = true
text_center = false
text_font = Hack Nerd Font
text_height = 8
text_padding = 10
col.active = rgba(000000e0)
col.urgent = rgb(ffd966)
col.inactive = rgba(00000080)
col.text.active = $col_accentdark
col.text.urgent = rgba(000000e8)
col.text.inactive = rgb(808080)
}
# Autotile
autotile {
enable = true
}
}
}

View file

@ -0,0 +1,8 @@
# Wallpaper
exec-once = hyprpaper
# XDG compliance
exec-once = hyprxdg
# SwayOSD
exec-once = swayosd-server

View file

@ -0,0 +1,6 @@
# Workspace 4
windowrulev2 = workspace 4 silent, class:($joplin_class)
windowrulev2 = workspace 4 silent, class:($bitwarden_class)
windowrulev2 = workspace 4 silent, class:($element_class)
windowrulev2 = workspace 4 silent, class:($discord_class)
windowrulev2 = workspace 4 silent, class:($deezer_class)

View file

@ -0,0 +1,4 @@
# Xwayland
xwayland {
force_zero_scaling = true
}

View file

@ -0,0 +1,6 @@
# Wallpaper
preload = ~/.local/share/backgrounds/chime_interdimensional.jpg
wallpaper = , ~/.local/share/backgrounds/chime_interdimensional.jpg
# Save battery
ipc = off