From 2dc65fa38676aace3d17fdad42e9029c3cff81f1 Mon Sep 17 00:00:00 2001 From: zegonix Date: Sun, 22 Jun 2025 15:27:59 +0200 Subject: [PATCH] (sway..) moved transparency from foot to sway, failed with waybar.. --- foot/.config/foot/foot.ini | 1 - sway-monitors-home/.config/sway/monitors | 6 ++++-- sway/.config/sway/config | 21 +++++++++++++-------- waybar/.config/waybar/style.css | 4 +++- 4 files changed, 20 insertions(+), 12 deletions(-) diff --git a/foot/.config/foot/foot.ini b/foot/.config/foot/foot.ini index 707deb8..597e1be 100644 --- a/foot/.config/foot/foot.ini +++ b/foot/.config/foot/foot.ini @@ -31,7 +31,6 @@ blink=no [colors] background=1D1D2C foreground=D8D8D0 -alpha=0.9 regular0=181820 regular1=E00010 diff --git a/sway-monitors-home/.config/sway/monitors b/sway-monitors-home/.config/sway/monitors index 4f2abee..fd12c9b 100644 --- a/sway-monitors-home/.config/sway/monitors +++ b/sway-monitors-home/.config/sway/monitors @@ -4,13 +4,15 @@ set $secondary_display DP-3 output $main_display { resolution 1920x1080@119.982Hz position 0 0 - background ~/dotfiles/images/hollow_knight.png fill +# background ~/dotfiles/images/hollow_knight.png fill + background ~/dotfiles/images/sand_city.png fill } output $secondary_display { resolution 1920x1080@60.000Hz position 1920 0 - background ~/dotfiles/images/hollow_knight.png fill +# background ~/dotfiles/images/hollow_knight.png fill + background ~/dotfiles/images/sand_city.png fill } workspace 1 output $main_display diff --git a/sway/.config/sway/config b/sway/.config/sway/config index 87d0c34..d6bbae9 100644 --- a/sway/.config/sway/config +++ b/sway/.config/sway/config @@ -33,14 +33,15 @@ tiling_drag modifier # start waybar bar { swaybar_command waybar + mode invisible } # start screen locker exec swayidle -w \ - timeout 300 'swaylock -f -e -i ~/dotfiles/images/city_skyline.png' \ - timeout 330 'swaymsg "output * power off"; systemctl suspend' \ + timeout 300 'swaylock -f -e -i ~/dotfiles/images/city_skyline.png' \ + timeout 330 'swaymsg "output * power off"; systemctl suspend' \ resume 'swaymsg "output * power on"' \ - before-sleep 'swaylock -f -e -i ~/dotfiles/images/city_skyline.png' + before-sleep 'swaylock -f -e -i ~/dotfiles/images/city_skyline.png' exec sway-audio-idle-inhibit for_window [class="steam_app.*"] inhibit_idle open @@ -61,8 +62,6 @@ input type:pointer pointer_accel 0.53 # reload the configuration file bindsym $mod+Shift+c reload -# restart i3 inplace (preserves your layout/session, can be used to upgrade i3) -bindsym $mod+Shift+r restart # lock screen bindsym $mod+Escape exec systemctl suspend # kill focused window @@ -182,9 +181,10 @@ mouse_warping none ### configuring presentation # window border style -default_border pixel 2 +default_border pixel 1 default_floating_border pixel 0 -for_window [class=".*"] border pixel 1 +for_window [class=".*"] border pixel 1 +for_window [app_id=".*"] border pixel 1 # gaps between windows and screen border gaps inner 12px @@ -208,5 +208,10 @@ client.focused_inactive $transp $back_focus $text_focus $transp $transp client.unfocused $transp $back_focus $text_focus $transp $transp client.urgent $transp $back_focus $text_focus $transp $transp client.placeholder $transp $back_focus $text_focus $transp $transp -client.background #ffffff + +# transparent windows +for_window [app_id="foot"] opacity 0.9 +for_window [app_id="com.mitchellh.ghostty"] opacity 0.9 +for_window [class="Alacritty"] opacity 0.9 +for_window [class="SpeedCrunch"] opacity 0.93 diff --git a/waybar/.config/waybar/style.css b/waybar/.config/waybar/style.css index a910d3f..0ff7c95 100644 --- a/waybar/.config/waybar/style.css +++ b/waybar/.config/waybar/style.css @@ -7,6 +7,7 @@ @define-color --magenta #E02482; @define-color --light-magenta #FFA0D0; @define-color --green #4E9C3D; +@define-color --transparent rgba(0, 0, 0, 0); window#waybar { font-family: JetBrainsMonoNerdFont; @@ -43,7 +44,8 @@ window#waybar { #workspaces button.urgent { background: @--magenta; - color: @--black; + color: @--white; + border-bottom: 0px solid @--transparent; } #window {