From 72c663f71900e5dab25d884b750f69f5dc22c664 Mon Sep 17 00:00:00 2001 From: fy59 Date: Fri, 25 Sep 2026 05:46:05 +0200 Subject: [PATCH] fix(session): repair active desktop configuration --- sway/.config/sway/autostart | 4 ++-- sway/.config/sway/bind | 14 +++++++------- sway/.config/sway/rules | 9 +++++++++ sway/.config/sway/style | 4 ++-- systemd/.config/systemd/user/swayidle.service | 2 +- 5 files changed, 21 insertions(+), 12 deletions(-) diff --git a/sway/.config/sway/autostart b/sway/.config/sway/autostart index 97bf02791..f5930204c 100644 --- a/sway/.config/sway/autostart +++ b/sway/.config/sway/autostart @@ -12,11 +12,11 @@ exec python3 ~/.config/sway/scripts/inactive-windows-transparency.py # Règles d'assignation automatique # ================================================= -assign [class="Spotify"] workspace 10 +assign [app_id="limusic-app"] workspace 10 # ================================================= # Lancement des applications # ================================================= -exec spotify-launcher +exec limusic-app exec autotiling diff --git a/sway/.config/sway/bind b/sway/.config/sway/bind index 7402e7121..19ec25164 100644 --- a/sway/.config/sway/bind +++ b/sway/.config/sway/bind @@ -17,7 +17,7 @@ set $term kitty bindsym $mod+Return exec $term # Kill focused window -bindsym $mod+q kill +bindsym $mod+q exec ~/.local/bin/sway-close # Drag floating windows by holding down $mod and left mouse button. # Resize them with right mouse button + $mod. @@ -204,7 +204,7 @@ bindsym $mod+Alt+i exec ~/.local/bin/vmware-on-demand bindsym $mod+Alt+f exec firefox bindsym $mod+Alt+a exec AppFlowy bindsym $mod+Alt+g exec gimp -bindsym $mod+Alt+m exec spotify-launcher +bindsym $mod+Alt+m exec limusic-app bindsym $mod+Alt+b exec blueman-manager bindsym $mod+Alt+o exec swaylock bindsym $mod+Alt+l exec wofi --cache-file=/dev/null -Dimage_size=26 -Dynamic_lines=true --location top --yoffset=10 --width=600 --height=300 --gtk-dark --show drun @@ -213,10 +213,11 @@ bindsym $mod+Alt+t exec ~/.local/bin/thunderbird-proton bindsym $mod+Alt+y exec kitty -- sh -c "yazi" bindsym $mod+Alt+w exec gtk-launch chrome-hnpfjngllnobngcgfapefoaidbinmjnm-Default bindsym $mod+Alt+v exec ~/.config/sway/scripts/copypast -bindsym $mod+Alt+c exec freecad +bindsym $mod+Alt+c exec --no-startup-id kitty --app-id=lardon-freecad-log --title="Lardon · FreeCAD autopush" --directory=/home/fy59/Documents/Lardon /home/fy59/Documents/Lardon/tools/lardon-freecad-launcher bindsym $mod+Alt+s exec sqlitebrowser bindsym $mod+Alt+e exec sh -c 'cd /home/fy59/Documents/Enquetes/Template/labfy-investigation && exec ./labfy-investigation' bindsym $mod+Alt+n exec ~/.local/bin/nextcloud-sync +bindsym $mod+c exec codex-desktop ############################################### # @@ -238,7 +239,6 @@ bindsym Print exec grim -g "$(slurp)" - | wl-copy -t image/png # Power Daemon # ############################################### -bindsym $mod+F9 exec powerprofilesctl set power-saver -bindsym $mod+F10 exec powerprofilesctl set balanced -bindsym $mod+F11 exec powerprofilesctl set performance - +bindsym $mod+F9 exec tlpctl power-saver +bindsym $mod+F10 exec tlpctl balanced +bindsym $mod+F11 exec tlpctl performance diff --git a/sway/.config/sway/rules b/sway/.config/sway/rules index 14b726fc8..be854a4b0 100644 --- a/sway/.config/sway/rules +++ b/sway/.config/sway/rules @@ -8,3 +8,12 @@ for_window [app_id="blueman-manager"] floating enable, resize set 40ppt 40ppt, move position center for_window [app_id="Proton Pass"] floating enable, resize set 40ppt 40ppt, move position right top + +#================================================= +# Lardon +#================================================= + +for_window [app_id="lardon-freecad-log"] floating enable +for_window [app_id="lardon-freecad-log"] resize set width 850 px height 360 px +for_window [app_id="lardon-freecad-log"] move position center +for_window [app_id="lardon-freecad-log"] border pixel 2 diff --git a/sway/.config/sway/style b/sway/.config/sway/style index 9795c28d5..15fecdb20 100644 --- a/sway/.config/sway/style +++ b/sway/.config/sway/style @@ -24,7 +24,7 @@ exec_always { gsettings set $gnome-schema font-name 'jetbrains mono nerd font 12' gsettings set $gnome-schema color-scheme 'prefer-dark' - gsettings get $gnome-schema icon-theme 'Tela-circle-blue' + gsettings set $gnome-schema icon-theme 'Tela-circle-blue' } set $cursor_theme Bibata-Modern-Classic @@ -40,5 +40,5 @@ seat seat0 xcursor_theme $cursor_theme $cursor_size # Set inner/outer gaps - gaps inner 8 + gaps inner 5 gaps outer 0 diff --git a/systemd/.config/systemd/user/swayidle.service b/systemd/.config/systemd/user/swayidle.service index 0792a580a..582038980 100644 --- a/systemd/.config/systemd/user/swayidle.service +++ b/systemd/.config/systemd/user/swayidle.service @@ -4,7 +4,7 @@ PartOf=graphical-session.target After=graphical-session.target [Service] -ExecStart=/usr/bin/swayidle -w timeout 300 'swaylock -f -c 000000' timeout 360 'swaymsg "output * power off"' resume 'swaymsg "output * power on"' before-sleep 'playerctl pause; swaylock -f -c 000000' +ExecStart=/usr/bin/swayidle -w timeout 300 'swaylock -f -c 000000' timeout 360 'swaymsg "output * power off"' resume 'swaymsg "output * power on"' timeout 420 'playerctl -a pause 2>/dev/null || true' idlehint 420 before-sleep 'playerctl -a pause 2>/dev/null || true; swaylock -f -c 000000' Restart=on-failure [Install]