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

@ -19,7 +19,7 @@ ModifierOnlyKeyTimeout=250
0=Shift_L 0=Shift_L
[Hotkey/EnumerateGroupForwardKeys] [Hotkey/EnumerateGroupForwardKeys]
0=Alt+Tab 0=Control+Tab
[Hotkey/EnumerateGroupBackwardKeys] [Hotkey/EnumerateGroupBackwardKeys]
0=Shift+Super+space 0=Shift+Super+space

View file

@ -32,11 +32,13 @@ set $file nautilus
set $browser flatpak run app.zen_browser.zen set $browser flatpak run app.zen_browser.zen
include /etc/sway/config-vars.d/* include /etc/sway/config-vars.d/*
# autoload when start wm # autoload when start wm
exec waybar
exec /usr/libexec/polkit-mate-authentication-agent-1 exec /usr/libexec/polkit-mate-authentication-agent-1
exec wlsunset 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 exec swaync
### Output configuration ### Output configuration
@ -48,15 +50,20 @@ output * background ~/.config/sway/wallpapers/frieren.png fill
output HDMI-A-1 resolution 1920x1080 position 1920,0 output HDMI-A-1 resolution 1920x1080 position 1920,0
#exec swayidle -w \ exec swayidle -w \
# timeout 300 'swaylock -f -c 000000' \ timeout 300 'swaylock -f -c 000000' \
# timeout 600 'swaymsg "output * power off"' resume 'swaymsg "output * power on"' \ timeout 600 'swaymsg "output * power off"' resume 'swaymsg "output * power on"' \
# before-sleep 'swaylock -f -c 000000' before-sleep 'swaylock -f -c 000000'
# This will lock your screen after 300 seconds of inactivity, then turn off # 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 # 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. # 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 ### Input configuration
@ -77,16 +84,15 @@ input type:keyboard {
} }
input "6058:20564:ThinkPad_Extra_Buttons" { input "6058:20564:ThinkPad_Extra_Buttons" {
} }
# window gaps # window gaps
smart_borders on smart_borders on
default_border pixel 2 default_border pixel 3
default_floating_border pixel 3 default_floating_border pixel 3
gaps inner 1 gaps inner 0
gaps outer 1 gaps outer 0
# Window borders # Window borders
@ -103,16 +109,15 @@ client.background #000000
# thème du curseur de souris # thème du curseur de souris
seat seat0 xcursor_theme Bibata-Modern-Ice seat seat0 xcursor_theme Bibata-Modern-Ice
# faire disparaître le titlebar # faire disparaître le titlebar
font pango:monospace 0.001 font pango:monospace 0.001
titlebar_border_thickness 1 titlebar_border_thickness 1
### Key bindings ### Key bindings
# #
# Basics: # Basics:
# #
# Start a terminal # Start a terminal
bindsym $mod+Return exec $term bindsym $mod+Return exec $term
@ -137,7 +142,8 @@ titlebar_border_thickness 1
floating_modifier $mod normal floating_modifier $mod normal
# clipboard manager # 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 # notification center
bindsym $mod+Shift+n exec swaync-client -t -sw bindsym $mod+Shift+n exec swaync-client -t -sw
@ -235,9 +241,9 @@ assign [app_id="foot"] 1
assign [app_id="zen"] 02 assign [app_id="zen"] 02
assign [app_id="zen"] 2 assign [app_id="zen"] 2
assign [app_id="anki"] 02 assign [app_id="anki"] 02
assign [app_id="anytype"] 3 assign [app_id="anytype"] 03
assign [app_id="libreoffice"] 3 assign [app_id="libreoffice"] 03
assign [app_id="signal"] 4 assign [app_id="signal"] 04
assign [app_id="thunderbird"] 04 assign [app_id="thunderbird"] 04
assign [app_id="thunderbird"] 4 assign [app_id="thunderbird"] 4
assign [app_id="mpv"] 05 assign [app_id="mpv"] 05
@ -246,9 +252,9 @@ assign [app_id="vlc"] 05
assign [app_id="vlc"] 5 assign [app_id="vlc"] 5
assign [app_id="steam"] 06 assign [app_id="steam"] 06
assign [app_id="steam"] 6 assign [app_id="steam"] 6
assign [app_id="kde-connect"] 7 assign [app_id="kde-connect"] 07
assign [app_id="nextcloud"] 7 assign [app_id="nextcloud"] 07
assign [app_id="Zotero"] 07
# #
# Layout stuff: # Layout stuff:
# #
@ -324,7 +330,7 @@ bindsym $mod+$mod1+r mode "resize"
bindsym --locked XF86MonBrightnessUp exec brightnessctl set 5%+ bindsym --locked XF86MonBrightnessUp exec brightnessctl set 5%+
# Special key to take a screenshot with grim # Special key to take a screenshot with grim
bindsym Print exec grim bindsym Print exec grim
bindsym $mod+Print exec grim -g "$(slurp)" bindsym $mod+Shift+s exec grim -g "$(slurp)"
#power #power
bindsym $mod+Escape exec wlogout 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: # 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. bar {
# The default just shows the current date and time. swaybar_command waybar
# status_command while date +'%Y-%m-%d %X'; do sleep 1; done position top
hidden_state show
# colors { mode hide
# statusline #ffffff modifier $mod
# background #323232 }
# inactive_workspace #32323200 #32323200 #5c5c5c
# }
#}
include /etc/sway/config.d/* include /etc/sway/config.d/*

View file

@ -1,11 +1,12 @@
{ {
"reload_style_on_change": true, "reload_style_on_change": true,
"layer": "top", "ipc": true,
"position": "top", "layer": "overlay",
"mod": "dock", "position": "bottom",
"margin-top": 0, "output": "eDP-1",
"margin-left": 5, "margin-top": 1,
"margin-right": 5, "margin-left": 41,
"margin-right": 41,
"margin-bottom": 0, "margin-bottom": 0,
@ -26,19 +27,6 @@
"modules": ["sway/workspaces"] "modules": ["sway/workspaces"]
}, },
"group/left3": {
"orientation": "inherit",
"modules": [
"custom/screenrecording-indicator"
]
},
"group/left4": {
"orientation": "inherit",
"modules": []
},
"modules-left": [ "modules-left": [
"group/left0", "group/left0",
"group/left1", "group/left1",
@ -260,7 +248,7 @@
}, },
"tray": { "tray": {
"icon-size": 12, "icon-size": 19,
"spacing": 10 "spacing": 10
}, },

View file

@ -4,10 +4,10 @@
* { * {
font-family: 'JetBrainsMono Nerd Font'; font-family: 'JetBrainsMono Nerd Font';
font-size: 16px; font-size: 17px;
font-weight: 600; font-weight: 600;
min-height: 0px; min-height: 0px;
border-radius:7px; border-radius: 10px;
} }
/* --- Waybar ---*/ /* --- Waybar ---*/
@ -18,9 +18,9 @@
} }
#waybar > box { #waybar > box {
margin: 2px 6px; margin: 0px 50px;
padding: 0px; padding: 0px;
background-color: @base; background-color: transparent;
border: 0px solid alpha(@highlightMed, 0.3); border: 0px solid alpha(@highlightMed, 0.3);
box-shadow: box-shadow:
inset 3px 0 0 0px @iris, inset 3px 0 0 0px @iris,
@ -32,35 +32,32 @@
#left0, #left1, #left2, #left3, #left4, #left0, #left1, #left2, #left3, #left4,
#right1, #right2, #right1, #right2,
.modules-center { .modules-center {
margin: 0px 2px; margin: 0px 3px;
padding: 0 5px; padding: 0 4px;
transition: all 0.2s ease-in-out; transition: all 0.2s ease-in-out;
} }
#left0 { #left0 {
background-color: @overlay; background-color: @base;
border-radius: 1px;
}
#left1 {
background-color: @overlay;
border-radius: 7px; border-radius: 7px;
} }
#left2 { #left1 {
background-color: @overlay; background-color: @base;
box-shadow: inset 0 -3px 0 0 @love; border-radius: 5px;
padding: 0px; box-shadow: inset 0px -3px 0px 0px @pine;
} }
#left3 { #left2 {
background-color: @surface; background-color: @base;
box-shadow: inset 0 -3px 0 0 @pine; box-shadow: inset 0 -3px 0 0 @love;
padding: 0px;
} }
.modules-center { .modules-center {
color: @plum; color: @plum;
background-color: @surface; background-color: @surface;
border-radius: 3px;
box-shadow: inset 0 -3px 0 0 @foam; box-shadow: inset 0 -3px 0 0 @foam;
padding: 0px; padding: 0px;
} }
@ -68,6 +65,7 @@ background-color: @surface;
#right1 { #right1 {
background-color: @surface; background-color: @surface;
box-shadow: inset 0 -3px 0 0 @subtle; box-shadow: inset 0 -3px 0 0 @subtle;
margin-left: 2;
} }
#right2 { #right2 {
@ -154,14 +152,12 @@ window#waybar.empty #window {
#custom-debian, #custom-debian,
#custom-screenrecording-indicator, #custom-screenrecording-indicator,
#custom-updatespacman { #custom-updatespacman {
min-width: 16px; min-width: 22px;
margin: 0 2px; margin: 0 2px;
padding: 0 4px; padding: 0 4px;
} }
#custom-update {
padding-left: 3px;
}
/* --- Module-Group-Colors --- */ /* --- Module-Group-Colors --- */
@ -188,14 +184,6 @@ window#waybar.empty #window {
color: @love; 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 */ /* Specific Module */

View file

@ -4,10 +4,10 @@
} }
window { window {
font-size: 24px; font-size: 30px;
font-family: "JetBrainsMono Nerd Font", monospace; font-family: "JetBrainsMono Nerd Font", monospace;
color: #ffffff; color: #ffffff;
background-color: rgba(40, 44, 52, 0.97); background-color: rgba(40, 44, 52, 0.98);
} }
#entry{ #entry{
@ -30,8 +30,8 @@ window {
#input{ #input{
background-color: rgba(40, 44, 52, 0.5); background-color: rgba(40, 44, 52, 0.5);
color: white; color: cyan;
padding: 0.25em; padding: 0.3em;
} }
image{ image{