hypr: package séparé avec --no-folding pour compatibilité source= hyprland
Hyprland ne suit pas les symlinks de répertoires dans les directives source=. Package hypr/ distinct du package hyprland/, stowé avec --no-folding pour créer des symlinks fichier par fichier dans ~/.config/hypr/. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -23,3 +23,5 @@ mpd/.config/mpd/state
|
|||||||
mpd/.config/mpd/playlists/
|
mpd/.config/mpd/playlists/
|
||||||
|
|
||||||
aerc/.config/vdirsyncer/status/
|
aerc/.config/vdirsyncer/status/
|
||||||
|
|
||||||
|
hyprland/.config/hypr/monitor-manager.log
|
||||||
|
|||||||
3
hypr/.config/hypr/conf.d/hyprlock.conf
Normal file
3
hypr/.config/hypr/conf.d/hyprlock.conf
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
# Verrouillage manuel de l'écran
|
||||||
|
# SUPER + X pour verrouiller, mot de passe pour déverrouiller
|
||||||
|
bind = $mainMod, x, exec, hyprlock
|
||||||
33
hypr/.config/hypr/conf.d/voxtype-submap.conf
Normal file
33
hypr/.config/hypr/conf.d/voxtype-submap.conf
Normal file
@@ -0,0 +1,33 @@
|
|||||||
|
# Voxtype compositor integration
|
||||||
|
# Fixes modifier key interference when using compositor keybindings
|
||||||
|
# Generated by: voxtype setup compositor hyprland
|
||||||
|
#
|
||||||
|
# Two submaps are used:
|
||||||
|
# - voxtype_recording: Active during recording/transcription. F12 cancels.
|
||||||
|
# - voxtype_suppress: Active during text output. Blocks modifier keys.
|
||||||
|
#
|
||||||
|
# NOTE: Do not bind Escape in voxtype_suppress. Binding Escape causes wtype's
|
||||||
|
# first character to be dropped. See: https://github.com/hyprwm/Hyprland/issues/3165
|
||||||
|
|
||||||
|
bind = $mainMod, v, exec, voxtype record toggle
|
||||||
|
# bindr = SUPER, V, exec, voxtype record stop
|
||||||
|
|
||||||
|
# Recording submap - active during recording and transcription
|
||||||
|
# F12 cancels recording/transcription and returns to normal
|
||||||
|
submap = voxtype_recording
|
||||||
|
bind = , F12, exec, voxtype record cancel
|
||||||
|
bind = , F12, submap, reset
|
||||||
|
submap = reset
|
||||||
|
|
||||||
|
# Output submap - blocks modifier keys during text output
|
||||||
|
submap = voxtype_suppress
|
||||||
|
bind = , SUPER_L, exec, true
|
||||||
|
bind = , SUPER_R, exec, true
|
||||||
|
bind = , Control_L, exec, true
|
||||||
|
bind = , Control_R, exec, true
|
||||||
|
bind = , Alt_L, exec, true
|
||||||
|
bind = , Alt_R, exec, true
|
||||||
|
bind = , Shift_L, exec, true
|
||||||
|
bind = , Shift_R, exec, true
|
||||||
|
bind = , F12, submap, reset # Emergency escape if voxtype crashes
|
||||||
|
submap = reset
|
||||||
20
hypr/.config/hypr/hypridle.conf
Normal file
20
hypr/.config/hypr/hypridle.conf
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
general {
|
||||||
|
lock_cmd = pidof hyprlock || hyprlock
|
||||||
|
before_sleep_cmd = loginctl lock-session
|
||||||
|
after_sleep_cmd = hyprctl dispatch dpms on
|
||||||
|
ignore_dbus_inhibit = false
|
||||||
|
}
|
||||||
|
|
||||||
|
# 5 min → extinction écran
|
||||||
|
listener {
|
||||||
|
timeout = 300
|
||||||
|
on-timeout = hyprctl dispatch dpms off
|
||||||
|
on-resume = hyprctl dispatch dpms on
|
||||||
|
}
|
||||||
|
|
||||||
|
# 10 min → verrouillage
|
||||||
|
listener {
|
||||||
|
timeout = 600
|
||||||
|
on-timeout = loginctl lock-session
|
||||||
|
}
|
||||||
|
|
||||||
0
hypr/.config/hypr/hyprland-gui.conf
Normal file
0
hypr/.config/hypr/hyprland-gui.conf
Normal file
351
hypr/.config/hypr/hyprland.conf
Normal file
351
hypr/.config/hypr/hyprland.conf
Normal file
@@ -0,0 +1,351 @@
|
|||||||
|
|
||||||
|
################
|
||||||
|
### MONITORS ###
|
||||||
|
################
|
||||||
|
|
||||||
|
# Configuration dynamique des moniteurs via monitor-manager.sh
|
||||||
|
# See https://wiki.hypr.land/Configuring/Monitors/
|
||||||
|
source = ~/.config/hypr/monitors.conf
|
||||||
|
|
||||||
|
# Exécution du script de gestion automatique des moniteurs
|
||||||
|
exec-once = ~/.config/hypr/monitor-events.sh
|
||||||
|
|
||||||
|
# Configuration des workspaces (sera mise à jour dynamiquement)
|
||||||
|
source = ~/.config/hypr/workspaces.conf
|
||||||
|
|
||||||
|
###################
|
||||||
|
### MY PROGRAMS ###
|
||||||
|
###################
|
||||||
|
|
||||||
|
# See https://wiki.hypr.land/Configuring/Keywords/
|
||||||
|
|
||||||
|
# Set programs that you use
|
||||||
|
$terminal = alacritty
|
||||||
|
$menu = fuzzel
|
||||||
|
$pass = tessen
|
||||||
|
|
||||||
|
|
||||||
|
#################
|
||||||
|
### AUTOSTART ###
|
||||||
|
#################
|
||||||
|
|
||||||
|
# Autostart necessary processes (like notifications daemons, status bars, etc.)
|
||||||
|
# Or execute your favorite apps at launch like this:
|
||||||
|
|
||||||
|
# exec-once = $terminal
|
||||||
|
exec-once = nm-applet
|
||||||
|
exec-once = blueman-applet
|
||||||
|
exec-once = waybar -c ~/.config/waybar/config_hyprland &
|
||||||
|
exec-once = hyprpaper
|
||||||
|
exec-once = hyprsunset -t 4500
|
||||||
|
exec-once = /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
|
||||||
|
exec-once = hypridle
|
||||||
|
exec-once = [workspace special silent] $terminal ncmpcpp
|
||||||
|
exec-once = [workspace 1] zen-browser
|
||||||
|
exec-once = [workspace 2 silent] thunderbird
|
||||||
|
exec-once = super-whisper-linux
|
||||||
|
|
||||||
|
#############################
|
||||||
|
### ENVIRONMENT VARIABLES ###
|
||||||
|
#############################
|
||||||
|
|
||||||
|
# See https://wiki.hypr.land/Configuring/Environment-variables/
|
||||||
|
|
||||||
|
env = XCURSOR_SIZE,24
|
||||||
|
env = HYPRCURSOR_SIZE,24
|
||||||
|
|
||||||
|
|
||||||
|
###################
|
||||||
|
### PERMISSIONS ###
|
||||||
|
###################
|
||||||
|
|
||||||
|
# See https://wiki.hypr.land/Configuring/Permissions/
|
||||||
|
# Please note permission changes here require a Hyprland restart and are not applied on-the-fly
|
||||||
|
# for security reasons
|
||||||
|
|
||||||
|
# ecosystem {
|
||||||
|
# enforce_permissions = 1
|
||||||
|
# }
|
||||||
|
|
||||||
|
# permission = /usr/(bin|local/bin)/grim, screencopy, allow
|
||||||
|
# permission = /usr/(lib|libexec|lib64)/xdg-desktop-portal-hyprland, screencopy, allow
|
||||||
|
# permission = /usr/(bin|local/bin)/hyprpm, plugin, allow
|
||||||
|
|
||||||
|
|
||||||
|
#####################
|
||||||
|
### LOOK AND FEEL ###
|
||||||
|
#####################
|
||||||
|
|
||||||
|
# Refer to https://wiki.hypr.land/Configuring/Variables/
|
||||||
|
|
||||||
|
# https://wiki.hypr.land/Configuring/Variables/#general
|
||||||
|
general {
|
||||||
|
gaps_in = 0
|
||||||
|
gaps_out = 0
|
||||||
|
|
||||||
|
border_size = 2
|
||||||
|
|
||||||
|
# https://wiki.hypr.land/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 = true
|
||||||
|
|
||||||
|
# Please see https://wiki.hypr.land/Configuring/Tearing/ before you turn this on
|
||||||
|
allow_tearing = false
|
||||||
|
|
||||||
|
layout = dwindle
|
||||||
|
}
|
||||||
|
|
||||||
|
# https://wiki.hypr.land/Configuring/Variables/#decoration
|
||||||
|
decoration {
|
||||||
|
rounding = 4
|
||||||
|
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.hypr.land/Configuring/Variables/#blur
|
||||||
|
blur {
|
||||||
|
enabled = true
|
||||||
|
size = 8
|
||||||
|
passes = 2
|
||||||
|
|
||||||
|
vibrancy = 0.1696
|
||||||
|
special = true # Enable blur for special workspace background
|
||||||
|
popups = true # Enable blur for popups and layer surfaces
|
||||||
|
popups_ignorealpha = 0.2 # Apply blur even on semi-transparent popups
|
||||||
|
}
|
||||||
|
|
||||||
|
dim_special = 0.5 # Darken background behind special workspace (0.0 = no dim, 1.0 = black)
|
||||||
|
}
|
||||||
|
|
||||||
|
# https://wiki.hypr.land/Configuring/Variables/#animations
|
||||||
|
animations {
|
||||||
|
enabled = yes, please :)
|
||||||
|
|
||||||
|
# Default animations, see https://wiki.hypr.land/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
|
||||||
|
}
|
||||||
|
|
||||||
|
# Ref https://wiki.hypr.land/Configuring/Workspace-Rules/
|
||||||
|
# "Smart gaps" / "No gaps when only"
|
||||||
|
# uncomment all if you wish to use that.
|
||||||
|
# workspace = w[tv1], gapsout:0, gapsin:0
|
||||||
|
# workspace = f[1], gapsout:0, gapsin:0
|
||||||
|
# windowrule = bordersize 0, floating:0, onworkspace:w[tv1]
|
||||||
|
# windowrule = rounding 0, floating:0, onworkspace:w[tv1]
|
||||||
|
# windowrule = bordersize 0, floating:0, onworkspace:f[1]
|
||||||
|
# windowrule = rounding 0, floating:0, onworkspace:f[1]
|
||||||
|
workspace = special, gapsout:100, gapsin:20
|
||||||
|
|
||||||
|
# See https://wiki.hypr.land/Configuring/Dwindle-Layout/ for more
|
||||||
|
dwindle {
|
||||||
|
preserve_split = true # You probably want this
|
||||||
|
special_scale_factor = 0.8 # Scale factor for special workspace windows (0.8 = 80% with visible padding)
|
||||||
|
}
|
||||||
|
|
||||||
|
# See https://wiki.hypr.land/Configuring/Master-Layout/ for more
|
||||||
|
master {
|
||||||
|
new_status = master
|
||||||
|
}
|
||||||
|
|
||||||
|
# https://wiki.hypr.land/Configuring/Variables/#misc
|
||||||
|
misc {
|
||||||
|
force_default_wallpaper = -1 # Set to 0 or 1 to disable the anime mascot wallpapers
|
||||||
|
disable_hyprland_logo = false # If true disables the random hyprland logo / anime girl background. :(
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
#############
|
||||||
|
### INPUT ###
|
||||||
|
#############
|
||||||
|
|
||||||
|
# https://wiki.hypr.land/Configuring/Variables/#input
|
||||||
|
input {
|
||||||
|
kb_layout = fr
|
||||||
|
kb_variant = azerty
|
||||||
|
# kb_variant = ergol
|
||||||
|
kb_model =
|
||||||
|
kb_options =
|
||||||
|
kb_rules =
|
||||||
|
|
||||||
|
follow_mouse = 1
|
||||||
|
|
||||||
|
sensitivity = 0 # -1.0 - 1.0, 0 means no modification.
|
||||||
|
|
||||||
|
touchpad {
|
||||||
|
natural_scroll = true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
# Configuration souris multi-écrans
|
||||||
|
cursor {
|
||||||
|
no_break_fs_vrr = true
|
||||||
|
min_refresh_rate = 24
|
||||||
|
}
|
||||||
|
|
||||||
|
# https://wiki.hypr.land/Configuring/Variables/#gestures
|
||||||
|
# gestures {
|
||||||
|
# workspace_swipe = true
|
||||||
|
# workspace_swipe_fingers = 3
|
||||||
|
# }
|
||||||
|
gesture = 3, horizontal, workspace
|
||||||
|
|
||||||
|
|
||||||
|
###################
|
||||||
|
### KEYBINDINGS ###
|
||||||
|
###################
|
||||||
|
|
||||||
|
# See https://wiki.hypr.land/Configuring/Keywords/
|
||||||
|
$mainMod = SUPER # Sets "Windows" key as main modifier
|
||||||
|
|
||||||
|
# Exit
|
||||||
|
bind = $mainMod SHIFT, e, exec, hyprctl dispatch exit 0 # exit Hyprland
|
||||||
|
# Example binds, see https://wiki.hypr.land/Configuring/Binds/ for more
|
||||||
|
bind = $mainMod, Return, exec, $terminal
|
||||||
|
bind = $mainMod, q, killactive,
|
||||||
|
bind = $mainMod, f, fullscreen,
|
||||||
|
bind = $mainMod, d, exec, $menu
|
||||||
|
bind = $mainMod, p, exec, $pass
|
||||||
|
|
||||||
|
# Move focus with mainMod + arrow keys
|
||||||
|
bind = $mainMod, h, movefocus, l
|
||||||
|
bind = $mainMod, l, movefocus, r
|
||||||
|
bind = $mainMod, k, movefocus, u
|
||||||
|
bind = $mainMod, j, movefocus, d
|
||||||
|
bind = $mainMod, left, movefocus, l
|
||||||
|
bind = $mainMod, right, movefocus, r
|
||||||
|
bind = $mainMod, up, movefocus, u
|
||||||
|
bind = $mainMod, down, movefocus, d
|
||||||
|
|
||||||
|
# Navigate between monitors
|
||||||
|
bind = $mainMod CTRL, h, focusmonitor, l
|
||||||
|
bind = $mainMod CTRL, l, focusmonitor, r
|
||||||
|
bind = $mainMod CTRL, left, focusmonitor, l
|
||||||
|
bind = $mainMod CTRL, right, focusmonitor, r
|
||||||
|
|
||||||
|
# Move windows
|
||||||
|
bind = $mainMod SHIFT, left, movewindow, l
|
||||||
|
bind = $mainMod SHIFT, right, movewindow, r
|
||||||
|
bind = $mainMod SHIFT, up, movewindow, u
|
||||||
|
bind = $mainMod SHIFT, down, movewindow, d
|
||||||
|
bind = $mainMod SHIFT, h, movewindow, l
|
||||||
|
bind = $mainMod SHIFT, l, movewindow, r
|
||||||
|
bind = $mainMod SHIFT, k, movewindow, u
|
||||||
|
bind = $mainMod SHIFT, j, movewindow, d
|
||||||
|
|
||||||
|
# Move windows between monitors
|
||||||
|
bind = $mainMod SHIFT CTRL, h, movewindow, mon:l
|
||||||
|
bind = $mainMod SHIFT CTRL, l, movewindow, mon:r
|
||||||
|
bind = $mainMod SHIFT CTRL, left, movewindow, mon:l
|
||||||
|
bind = $mainMod SHIFT CTRL, right, movewindow, mon:r
|
||||||
|
|
||||||
|
# Switch workspaces with mainMod + [0-9]
|
||||||
|
bind = $mainMod, code:10, workspace, 1
|
||||||
|
bind = $mainMod, code:11, workspace, 2
|
||||||
|
bind = $mainMod, code:12, workspace, 3
|
||||||
|
bind = $mainMod, code:13, workspace, 4
|
||||||
|
bind = $mainMod, code:14, workspace, 5
|
||||||
|
bind = $mainMod, code:15, workspace, 6
|
||||||
|
bind = $mainMod, code:16, workspace, 7
|
||||||
|
bind = $mainMod, code:17, workspace, 8
|
||||||
|
bind = $mainMod, code:18, workspace, 9
|
||||||
|
bind = $mainMod, code:19, workspace, 10
|
||||||
|
|
||||||
|
# Move active window to a workspace with mainMod + SHIFT + [0-9]
|
||||||
|
bind = $mainMod SHIFT, code:10, movetoworkspace, 1
|
||||||
|
bind = $mainMod SHIFT, code:11, movetoworkspace, 2
|
||||||
|
bind = $mainMod SHIFT, code:12, movetoworkspace, 3
|
||||||
|
bind = $mainMod SHIFT, code:13, movetoworkspace, 4
|
||||||
|
bind = $mainMod SHIFT, code:14, movetoworkspace, 5
|
||||||
|
bind = $mainMod SHIFT, code:15, movetoworkspace, 6
|
||||||
|
bind = $mainMod SHIFT, code:16, movetoworkspace, 7
|
||||||
|
bind = $mainMod SHIFT, code:17, movetoworkspace, 8
|
||||||
|
bind = $mainMod SHIFT, code:18, movetoworkspace, 9
|
||||||
|
bind = $mainMod SHIFT, code:19, movetoworkspace, 10
|
||||||
|
|
||||||
|
# Example special workspace (scratchpad)
|
||||||
|
bind = $mainMod, s, togglespecialworkspace, magic
|
||||||
|
bind = $mainMod SHIFT, s, movetoworkspace, special:magic
|
||||||
|
|
||||||
|
# Scroll through existing workspaces with mainMod + scroll
|
||||||
|
bind = $mainMod, Space, workspace, previous
|
||||||
|
|
||||||
|
# Move/resize windows with mainMod + LMB/RMB and dragging
|
||||||
|
bindm = $mainMod, mouse:272, movewindow
|
||||||
|
bindm = $mainMod, mouse:273, resizewindow
|
||||||
|
|
||||||
|
# Laptop multimedia keys for volume and LCD brightness
|
||||||
|
bindel = ,XF86AudioRaiseVolume, exec, wpctl set-volume -l 1 @DEFAULT_AUDIO_SINK@ 5%+
|
||||||
|
bindel = ,XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-
|
||||||
|
bindel = ,XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle
|
||||||
|
bindel = ,XF86AudioMicMute, exec, wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle
|
||||||
|
bindel = ,XF86MonBrightnessUp, exec, brightnessctl -e4 -n2 set 5%+
|
||||||
|
bindel = ,XF86MonBrightnessDown, exec, brightnessctl -e4 -n2 set 5%-
|
||||||
|
|
||||||
|
# Requires playerctl
|
||||||
|
bindl = , XF86AudioNext, exec, playerctl next
|
||||||
|
bindl = , XF86AudioPause, exec, playerctl play-pause
|
||||||
|
bindl = , XF86AudioPlay, exec, playerctl play-pause
|
||||||
|
bindl = , XF86AudioPrev, exec, playerctl previous
|
||||||
|
|
||||||
|
# printscreen
|
||||||
|
|
||||||
|
bind = , PRINT, exec, ~/.local/bin/sway/rofi_screenshot.sh 2>> ~/tmp/rofi_debug.log
|
||||||
|
|
||||||
|
bind = $mainMod, R, resizeactive, exact 66% 100%
|
||||||
|
|
||||||
|
# Couvercle laptop
|
||||||
|
bindl = , switch:on:Lid Switch, exec, ~/.config/hypr/lid.sh
|
||||||
|
bindl = , switch:off:Lid Switch, exec, ~/.config/hypr/lid.sh
|
||||||
|
|
||||||
|
# Info moniteurs
|
||||||
|
bind = $mainMod SHIFT CTRL, M, exec, notify-send "Monitors" "$(hyprctl monitors | grep -E '^Monitor|^\s+at|^\s+resolution' | sed 's/^\s*/ /')"
|
||||||
|
|
||||||
|
bind = $mainMod SHIFT, R, exec, super-whisper-linux trigger toggle
|
||||||
|
|
||||||
|
##############################
|
||||||
|
### WINDOWS AND WORKSPACES ###
|
||||||
|
##############################
|
||||||
|
|
||||||
|
# See https://wiki.hypr.land/Configuring/Window-Rules/ for more
|
||||||
|
# See https://wiki.hypr.land/Configuring/Workspace-Rules/ for workspace rules
|
||||||
|
|
||||||
|
windowrule = match:class nm-connection-editor, float on
|
||||||
|
windowrule = match:class blueman-manager, float on
|
||||||
|
|
||||||
|
source = ~/.config/hypr/hyprland-gui.conf
|
||||||
|
source = ~/.config/hypr/conf.d/*.conf
|
||||||
|
|
||||||
62
hypr/.config/hypr/hyprlock.conf
Normal file
62
hypr/.config/hypr/hyprlock.conf
Normal file
@@ -0,0 +1,62 @@
|
|||||||
|
general {
|
||||||
|
hide_cursor = true
|
||||||
|
grace = 0
|
||||||
|
}
|
||||||
|
|
||||||
|
# Fond : screenshot flouté + assombri
|
||||||
|
background {
|
||||||
|
monitor =
|
||||||
|
path = screenshot
|
||||||
|
blur_size = 7
|
||||||
|
blur_passes = 3
|
||||||
|
brightness = 0.7
|
||||||
|
contrast = 0.9
|
||||||
|
vibrancy = 0.2
|
||||||
|
}
|
||||||
|
|
||||||
|
# Heure
|
||||||
|
label {
|
||||||
|
monitor =
|
||||||
|
text = cmd[update:1000] echo "$(date +'%H:%M')"
|
||||||
|
color = rgba(ffffffff)
|
||||||
|
font_size = 80
|
||||||
|
font_family = Noto Sans Mono Bold
|
||||||
|
position = 0, 120
|
||||||
|
halign = center
|
||||||
|
valign = center
|
||||||
|
}
|
||||||
|
|
||||||
|
# Date
|
||||||
|
label {
|
||||||
|
monitor =
|
||||||
|
text = cmd[update:60000] LC_TIME=fr_FR.UTF-8 date +'%A %d %B'
|
||||||
|
color = rgba(ffffffbb)
|
||||||
|
font_size = 22
|
||||||
|
font_family = Noto Sans Mono
|
||||||
|
position = 0, 40
|
||||||
|
halign = center
|
||||||
|
valign = center
|
||||||
|
}
|
||||||
|
|
||||||
|
# Champ de saisie
|
||||||
|
input-field {
|
||||||
|
monitor =
|
||||||
|
size = 320, 52
|
||||||
|
outline_thickness = 2
|
||||||
|
dots_size = 0.25
|
||||||
|
dots_spacing = 0.2
|
||||||
|
dots_center = true
|
||||||
|
outer_color = rgba(ffffff44)
|
||||||
|
inner_color = rgba(00000099)
|
||||||
|
font_color = rgba(ffffffff)
|
||||||
|
fade_on_empty = true
|
||||||
|
placeholder_text = <i>Mot de passe</i>
|
||||||
|
check_color = rgba(00ff99cc)
|
||||||
|
fail_color = rgba(ff5555cc)
|
||||||
|
fail_text = <i>Raté ($ATTEMPTS)</i>
|
||||||
|
capslock_color = rgba(ffaa00cc)
|
||||||
|
numlock_color = -1
|
||||||
|
position = 0, -40
|
||||||
|
halign = center
|
||||||
|
valign = center
|
||||||
|
}
|
||||||
3
hypr/.config/hypr/hyprpaper.conf
Normal file
3
hypr/.config/hypr/hyprpaper.conf
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
preload = /home/lafrite/Images/Wallpapers/coraill.jpg
|
||||||
|
|
||||||
|
wallpaper = ,/home/lafrite/Images/Wallpapers/coraill.jpg
|
||||||
2
hypr/.config/hypr/lid.sh
Executable file
2
hypr/.config/hypr/lid.sh
Executable file
@@ -0,0 +1,2 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
~/.config/hypr/monitor-manager.sh
|
||||||
29
hypr/.config/hypr/monitor-events.sh
Executable file
29
hypr/.config/hypr/monitor-events.sh
Executable file
@@ -0,0 +1,29 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
# Écoute les événements Hyprland IPC et reconfigure les moniteurs à chaud
|
||||||
|
|
||||||
|
MANAGER=~/.config/hypr/monitor-manager.sh
|
||||||
|
SOCKET="/tmp/hypr/$HYPRLAND_INSTANCE_SIGNATURE/.socket2.sock"
|
||||||
|
|
||||||
|
# Attendre que Hyprland soit prêt
|
||||||
|
until [[ -S "$SOCKET" ]]; do sleep 0.2; done
|
||||||
|
sleep 1
|
||||||
|
|
||||||
|
# Configuration initiale
|
||||||
|
"$MANAGER"
|
||||||
|
|
||||||
|
# Debounce : annule et replanifie si plusieurs événements arrivent d'un coup (dock, etc.)
|
||||||
|
PENDING_PID=""
|
||||||
|
configure_debounced() {
|
||||||
|
[[ -n "$PENDING_PID" ]] && kill "$PENDING_PID" 2>/dev/null
|
||||||
|
(sleep 0.8; "$MANAGER") &
|
||||||
|
PENDING_PID=$!
|
||||||
|
}
|
||||||
|
|
||||||
|
# Écouter la socket IPC
|
||||||
|
socat -u "UNIX-CONNECT:$SOCKET" STDOUT | while IFS= read -r line; do
|
||||||
|
case "${line%%>>*}" in
|
||||||
|
monitoradded|monitorremoved)
|
||||||
|
configure_debounced
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
done
|
||||||
61
hypr/.config/hypr/monitor-manager.sh
Executable file
61
hypr/.config/hypr/monitor-manager.sh
Executable file
@@ -0,0 +1,61 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
# Configure les moniteurs via hyprctl keyword (pas de reload, pas d'écriture de fichiers)
|
||||||
|
|
||||||
|
PHILIPS="PHL 223V5"
|
||||||
|
SAMSUNG="LS27A600U"
|
||||||
|
|
||||||
|
is_lid_closed() {
|
||||||
|
for path in /proc/acpi/button/lid/LID0/state \
|
||||||
|
/proc/acpi/button/lid/LID/state \
|
||||||
|
/proc/acpi/button/lid/LID1/state; do
|
||||||
|
[[ -r "$path" ]] && grep -q "closed" "$path" && return 0
|
||||||
|
done
|
||||||
|
return 1
|
||||||
|
}
|
||||||
|
|
||||||
|
main() {
|
||||||
|
local json
|
||||||
|
json=$(hyprctl monitors all -j 2>/dev/null)
|
||||||
|
|
||||||
|
local philips_name samsung_name
|
||||||
|
philips_name=$(echo "$json" | jq -r '[.[] | select(.description | contains("PHL 223V5"))][0].name // empty')
|
||||||
|
samsung_name=$(echo "$json" | jq -r '[.[] | select(.description | contains("LS27A600U"))][0].name // empty')
|
||||||
|
|
||||||
|
local -a others=()
|
||||||
|
while IFS= read -r name; do
|
||||||
|
[[ -n "$name" ]] && others+=("$name")
|
||||||
|
done < <(echo "$json" | jq -r '.[] | select(.name != "eDP-1") | select(.description | test("PHL 223V5|LS27A600U") | not) | .name')
|
||||||
|
|
||||||
|
local has_externals=false
|
||||||
|
[[ -n "$philips_name" || -n "$samsung_name" || ${#others[@]} -gt 0 ]] && has_externals=true
|
||||||
|
|
||||||
|
# Lid fermé + aucun externe → veille
|
||||||
|
if is_lid_closed && [[ "$has_externals" == false ]]; then
|
||||||
|
systemctl suspend
|
||||||
|
return
|
||||||
|
fi
|
||||||
|
|
||||||
|
# eDP-1 : actif si lid ouvert, désactivé si lid fermé
|
||||||
|
if is_lid_closed; then
|
||||||
|
hyprctl keyword monitor "eDP-1,disable"
|
||||||
|
else
|
||||||
|
hyprctl keyword monitor "eDP-1,preferred,0x0,1"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Philips portrait (1920x0, à droite de eDP-1)
|
||||||
|
[[ -n "$philips_name" ]] && \
|
||||||
|
hyprctl keyword monitor "$philips_name,1920x1080@60,1920x0,1,transform,1"
|
||||||
|
|
||||||
|
# Samsung (3000x0 = 1920 eDP-1 + 1080 Philips portrait)
|
||||||
|
[[ -n "$samsung_name" ]] && \
|
||||||
|
hyprctl keyword monitor "$samsung_name,2560x1440@74.971,3000x0,1"
|
||||||
|
|
||||||
|
# Écrans inconnus (à droite de Samsung)
|
||||||
|
local x=5560
|
||||||
|
for name in "${others[@]}"; do
|
||||||
|
hyprctl keyword monitor "$name,preferred,${x}x0,1"
|
||||||
|
((x += 1920))
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
|
main
|
||||||
36
hypr/.config/hypr/monitor-menu.sh
Executable file
36
hypr/.config/hypr/monitor-menu.sh
Executable file
@@ -0,0 +1,36 @@
|
|||||||
|
#!/usr/bin/env zsh
|
||||||
|
|
||||||
|
# Menu de sélection des modes d'affichage pour Hyprland
|
||||||
|
# Utilise fuzzel comme sélecteur
|
||||||
|
|
||||||
|
# Options du menu
|
||||||
|
menu_items="🏠 Internal - Écran portable seul
|
||||||
|
🖥️ Desk - Bureau (2 écrans externes)
|
||||||
|
🎒 Nomad - Portable + externe(s)
|
||||||
|
🔄 Auto - Détection automatique"
|
||||||
|
|
||||||
|
# Afficher le menu et capturer la sélection
|
||||||
|
selected=$(echo "$menu_items" | fuzzel --dmenu --prompt="Mode d'affichage: " --width=40 --lines=4)
|
||||||
|
|
||||||
|
# Extraire le mode de la sélection
|
||||||
|
case "$selected" in
|
||||||
|
*"Internal"*)
|
||||||
|
mode="internal"
|
||||||
|
;;
|
||||||
|
*"Desk"*)
|
||||||
|
mode="desk"
|
||||||
|
;;
|
||||||
|
*"Nomad"*)
|
||||||
|
mode="nomad"
|
||||||
|
;;
|
||||||
|
*"Auto"*)
|
||||||
|
mode="auto"
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
# Annulation ou sélection invalide
|
||||||
|
exit 0
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
# Exécuter le changement de mode
|
||||||
|
~/.config/hypr/monitor-manager.sh "$mode"
|
||||||
4
hypr/.config/hypr/monitors.conf
Normal file
4
hypr/.config/hypr/monitors.conf
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
# eDP-1 toujours à scale 1 dès le boot
|
||||||
|
monitor=eDP-1,preferred,auto,1
|
||||||
|
# Catch-all pour les autres
|
||||||
|
monitor=,preferred,auto,auto
|
||||||
20
hypr/.config/hypr/workspaces.conf
Normal file
20
hypr/.config/hypr/workspaces.conf
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
# Quand un moniteur est absent, ses workspaces rejoignent eDP-1 automatiquement
|
||||||
|
# → tous les 10 workspaces sont toujours accessibles
|
||||||
|
|
||||||
|
# eDP-1 (laptop) : 1-4
|
||||||
|
workspace = 1, monitor:eDP-1, default:true
|
||||||
|
workspace = 2, monitor:eDP-1
|
||||||
|
workspace = 3, monitor:eDP-1
|
||||||
|
workspace = 4, monitor:eDP-1
|
||||||
|
|
||||||
|
# DVI-I-1 (Samsung) : 5-7
|
||||||
|
workspace = 5, monitor:DVI-I-1, default:true
|
||||||
|
workspace = 6, monitor:DVI-I-1
|
||||||
|
workspace = 7, monitor:DVI-I-1
|
||||||
|
|
||||||
|
# DVI-I-2 (Philips portrait) : 8-10
|
||||||
|
workspace = 8, monitor:DVI-I-2
|
||||||
|
workspace = 9, monitor:DVI-I-2
|
||||||
|
workspace = 10, monitor:DVI-I-2
|
||||||
|
|
||||||
|
workspace = special, gapsout:100, gapsin:20
|
||||||
Reference in New Issue
Block a user