2nd commit : edit of waybar now in overlay mode

This commit is contained in:
ohinh 2026-08-21 12:03:16 +02:00
parent a57c4c068f
commit 89be70159a
5 changed files with 71 additions and 95 deletions

View file

@ -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/*