From 89be70159a814ac70a0d18607b17aed5b4f9a29f Mon Sep 17 00:00:00 2001 From: ohinh Date: Fri, 21 Aug 2026 12:03:16 +0200 Subject: [PATCH] 2nd commit : edit of waybar now in overlay mode --- fcitx5/config | 2 +- sway/config | 76 ++++++++++++++++++++++++------------------------ waybar/config | 30 ++++++------------- waybar/style.css | 50 ++++++++++++------------------- wofi/style.css | 8 ++--- 5 files changed, 71 insertions(+), 95 deletions(-) diff --git a/fcitx5/config b/fcitx5/config index 611c154..3d1bb4c 100644 --- a/fcitx5/config +++ b/fcitx5/config @@ -19,7 +19,7 @@ ModifierOnlyKeyTimeout=250 0=Shift_L [Hotkey/EnumerateGroupForwardKeys] -0=Alt+Tab +0=Control+Tab [Hotkey/EnumerateGroupBackwardKeys] 0=Shift+Super+space diff --git a/sway/config b/sway/config index 0406a1b..8550336 100644 --- a/sway/config +++ b/sway/config @@ -32,11 +32,13 @@ set $file nautilus set $browser flatpak run app.zen_browser.zen include /etc/sway/config-vars.d/* + # autoload when start wm -exec waybar exec /usr/libexec/polkit-mate-authentication-agent-1 exec wlsunset -exec wl-paste --watch cliphist store +exec wl-paste -t text --watch clipman store +exec wl-paste -p -t text --watch clipman store -P --histpath="~/.local/share/clipman-primary.json" +exec clipman restore exec swaync ### Output configuration @@ -48,15 +50,20 @@ output * background ~/.config/sway/wallpapers/frieren.png fill output HDMI-A-1 resolution 1920x1080 position 1920,0 -#exec swayidle -w \ -# timeout 300 'swaylock -f -c 000000' \ - # timeout 600 'swaymsg "output * power off"' resume 'swaymsg "output * power on"' \ - # before-sleep 'swaylock -f -c 000000' +exec swayidle -w \ + timeout 300 'swaylock -f -c 000000' \ + timeout 600 'swaymsg "output * power off"' resume 'swaymsg "output * power on"' \ + before-sleep 'swaylock -f -c 000000' # This will lock your screen after 300 seconds of inactivity, then turn off # your displays after another 300 seconds, and turn your screens back on when # resumed. It will also lock your screen before your computer goes to sleep. +# Inhibit idle when any window is fullscreen +for_window [class=".*"] inhibit_idle fullscreen +for_window [app_id=".*"] inhibit_idle fullscreen + + ### Input configuration @@ -77,16 +84,15 @@ input type:keyboard { } input "6058:20564:ThinkPad_Extra_Buttons" { - } # window gaps smart_borders on -default_border pixel 2 +default_border pixel 3 default_floating_border pixel 3 -gaps inner 1 -gaps outer 1 +gaps inner 0 +gaps outer 0 # Window borders @@ -103,16 +109,15 @@ client.background #000000 # thème du curseur de souris seat seat0 xcursor_theme Bibata-Modern-Ice - # faire disparaître le titlebar font pango:monospace 0.001 -titlebar_border_thickness 1 - +titlebar_border_thickness 1 ### Key bindings # # Basics: # + # Start a terminal bindsym $mod+Return exec $term @@ -125,10 +130,10 @@ titlebar_border_thickness 1 # Start a file manager bindsym $mod+e exec $file - + # Start browser bindsym $mod+a exec $browser - + # Drag floating windows by holding down $mod and left mouse button. # Resize them with right mouse button + $mod. # Despite the name, also works for non-floating windows. @@ -137,7 +142,8 @@ titlebar_border_thickness 1 floating_modifier $mod normal # clipboard manager - bindsym $mod+w exec cliphist list | wofi | cliphist decode | wl-copy + bindsym $mod+semicolon exec clipman pick --tool wofi -T'--prompt=clipboard-history -i' + bindsym $mod+x exec "clipman pick -t wofi --err-on-no-selection && wtype -M ctrl -M shift v" # notification center bindsym $mod+Shift+n exec swaync-client -t -sw @@ -235,20 +241,20 @@ assign [app_id="foot"] 1 assign [app_id="zen"] 02 assign [app_id="zen"] 2 assign [app_id="anki"] 02 -assign [app_id="anytype"] 3 -assign [app_id="libreoffice"] 3 -assign [app_id="signal"] 4 -assign [app_id="thunderbird"] 04 -assign [app_id="thunderbird"] 4 +assign [app_id="anytype"] 03 +assign [app_id="libreoffice"] 03 +assign [app_id="signal"] 04 +assign [app_id="thunderbird"] 04 +assign [app_id="thunderbird"] 4 assign [app_id="mpv"] 05 assign [app_id="mpv"] 5 assign [app_id="vlc"] 05 assign [app_id="vlc"] 5 assign [app_id="steam"] 06 assign [app_id="steam"] 6 -assign [app_id="kde-connect"] 7 -assign [app_id="nextcloud"] 7 - +assign [app_id="kde-connect"] 07 +assign [app_id="nextcloud"] 07 +assign [app_id="Zotero"] 07 # # Layout stuff: # @@ -324,7 +330,7 @@ bindsym $mod+$mod1+r mode "resize" bindsym --locked XF86MonBrightnessUp exec brightnessctl set 5%+ # Special key to take a screenshot with grim bindsym Print exec grim - bindsym $mod+Print exec grim -g "$(slurp)" + bindsym $mod+Shift+s exec grim -g "$(slurp)" #power bindsym $mod+Escape exec wlogout @@ -332,20 +338,14 @@ bindsym $mod+$mod1+r mode "resize" # # Status Bar disable because of use waybar instead if you not use waybar just uncomment those below: # -# Read `man 5 sway-bar` for more information about this section. -# bar { -# position top - # When the status_command prints a new line to stdout, swaybar updates. - # The default just shows the current date and time. - # status_command while date +'%Y-%m-%d %X'; do sleep 1; done - -# colors { -# statusline #ffffff -# background #323232 -# inactive_workspace #32323200 #32323200 #5c5c5c -# } -#} +bar { + swaybar_command waybar + position top + hidden_state show + mode hide + modifier $mod +} include /etc/sway/config.d/* diff --git a/waybar/config b/waybar/config index f7db7bc..ef970af 100644 --- a/waybar/config +++ b/waybar/config @@ -1,11 +1,12 @@ { "reload_style_on_change": true, - "layer": "top", - "position": "top", - "mod": "dock", - "margin-top": 0, - "margin-left": 5, - "margin-right": 5, + "ipc": true, + "layer": "overlay", + "position": "bottom", + "output": "eDP-1", + "margin-top": 1, + "margin-left": 41, + "margin-right": 41, "margin-bottom": 0, @@ -26,19 +27,6 @@ "modules": ["sway/workspaces"] }, - - "group/left3": { - "orientation": "inherit", - "modules": [ - "custom/screenrecording-indicator" - ] - }, - - "group/left4": { - "orientation": "inherit", - "modules": [] - }, - "modules-left": [ "group/left0", "group/left1", @@ -89,7 +77,7 @@ "on-click-right": "", "tooltip-format": "L’université n’est pas une usine à fabriquer des diplômes, à la façon des usines à saucisses qui fabriquent des saucisses. \n\nC’est le lieu où une chance est donnée à des hommes de devenir qui ils sont vraiment. \n\nSimon Leys" }, - + "idle_inhibitor": { "format": "{icon}", "format-icons": { @@ -260,7 +248,7 @@ }, "tray": { - "icon-size": 12, + "icon-size": 19, "spacing": 10 }, diff --git a/waybar/style.css b/waybar/style.css index 18579b4..f84b22a 100644 --- a/waybar/style.css +++ b/waybar/style.css @@ -4,10 +4,10 @@ * { font-family: 'JetBrainsMono Nerd Font'; - font-size: 16px; + font-size: 17px; font-weight: 600; min-height: 0px; - border-radius:7px; + border-radius: 10px; } /* --- Waybar ---*/ @@ -18,9 +18,9 @@ } #waybar > box { - margin: 2px 6px; + margin: 0px 50px; padding: 0px; - background-color: @base; + background-color: transparent; border: 0px solid alpha(@highlightMed, 0.3); box-shadow: inset 3px 0 0 0px @iris, @@ -32,35 +32,32 @@ #left0, #left1, #left2, #left3, #left4, #right1, #right2, .modules-center { - margin: 0px 2px; - padding: 0 5px; + margin: 0px 3px; + padding: 0 4px; transition: all 0.2s ease-in-out; } #left0 { - background-color: @overlay; - border-radius: 1px; -} - -#left1 { - background-color: @overlay; + background-color: @base; border-radius: 7px; } -#left2 { -background-color: @overlay; - box-shadow: inset 0 -3px 0 0 @love; - padding: 0px; +#left1 { + background-color: @base; + border-radius: 5px; + box-shadow: inset 0px -3px 0px 0px @pine; } -#left3 { -background-color: @surface; - box-shadow: inset 0 -3px 0 0 @pine; +#left2 { + background-color: @base; + box-shadow: inset 0 -3px 0 0 @love; + padding: 0px; } .modules-center { color: @plum; background-color: @surface; + border-radius: 3px; box-shadow: inset 0 -3px 0 0 @foam; padding: 0px; } @@ -68,6 +65,7 @@ background-color: @surface; #right1 { background-color: @surface; box-shadow: inset 0 -3px 0 0 @subtle; + margin-left: 2; } #right2 { @@ -154,14 +152,12 @@ window#waybar.empty #window { #custom-debian, #custom-screenrecording-indicator, #custom-updatespacman { - min-width: 16px; + min-width: 22px; margin: 0 2px; padding: 0 4px; } -#custom-update { - padding-left: 3px; -} + /* --- Module-Group-Colors --- */ @@ -188,14 +184,6 @@ window#waybar.empty #window { color: @love; } -#custom-idle-indicator, -#custom-notification-silencing-indicator { - min-width: 12px; - margin-left: 0; - margin-right: 0; - font-size: 12px; - padding-bottom: 1px; -} /* Specific Module */ diff --git a/wofi/style.css b/wofi/style.css index 64217db..4278cb8 100644 --- a/wofi/style.css +++ b/wofi/style.css @@ -4,10 +4,10 @@ } window { - font-size: 24px; + font-size: 30px; font-family: "JetBrainsMono Nerd Font", monospace; color: #ffffff; - background-color: rgba(40, 44, 52, 0.97); + background-color: rgba(40, 44, 52, 0.98); } #entry{ @@ -30,8 +30,8 @@ window { #input{ background-color: rgba(40, 44, 52, 0.5); - color: white; - padding: 0.25em; + color: cyan; + padding: 0.3em; } image{