From 6d7afd19bac412bb79e66cdff826b42e866ba78e Mon Sep 17 00:00:00 2001 From: Ryan Date: Wed, 10 Jan 2024 17:28:42 +0800 Subject: [PATCH] structure(sway): decouple the structure --- .config/sway/conf.d/custom.d/{fedora => gentoo} | 2 +- .config/sway/conf.d/custom.d/outputs | 8 ++++---- .config/sway/conf.d/display | 13 ------------- .config/sway/conf.d/exec | 2 -- .config/sway/conf.d/theme | 12 ++++++++++++ 5 files changed, 17 insertions(+), 20 deletions(-) rename .config/sway/conf.d/custom.d/{fedora => gentoo} (67%) delete mode 100644 .config/sway/conf.d/display diff --git a/.config/sway/conf.d/custom.d/fedora b/.config/sway/conf.d/custom.d/gentoo similarity index 67% rename from .config/sway/conf.d/custom.d/fedora rename to .config/sway/conf.d/custom.d/gentoo index b7010c1..6225218 100644 --- a/.config/sway/conf.d/custom.d/fedora +++ b/.config/sway/conf.d/custom.d/gentoo @@ -1,4 +1,4 @@ # vim: filetype=swayconfig -include /etc/sway/config.d/* +include /usr/local/etc/sway/config.d/* exec /usr/libexec/polkit-gnome-authentication-agent-1 diff --git a/.config/sway/conf.d/custom.d/outputs b/.config/sway/conf.d/custom.d/outputs index b46f66d..0c794e5 100644 --- a/.config/sway/conf.d/custom.d/outputs +++ b/.config/sway/conf.d/custom.d/outputs @@ -7,13 +7,13 @@ output 'Lectron Company Ltd LECOO M2412HL GG30A137' subpixel rgb # output 'Lectron Company Ltd LECOO M2412HL GG30A137' max_render_time 5 # lab screen -output "XMI Redmi 27 NU 3948622WH08F4" mode --custom 2560x1440@60Hz -output "XMI Redmi 27 NU 3948622WH08F4" scale 1.5 +# output "XMI Redmi 27 NU 3948622WH08F4" mode --custom 2560x1440@60Hz +# output "XMI Redmi 27 NU 3948622WH08F4" scale 1.5 output "XMI Redmi 27 NU 3948622WH08F4" transform 90 output "XMI Redmi 27 NU 3948622WH08F4" pos 2560 0 output "XMI Redmi 27 NU 3948622WH08F4" subpixel rgb -output "XMI Redmi 27 NU 3948622WH08F4" max_render_time 3 -output "XMI Redmi 27 NU 3948622WH08F4" render_bit_depth 10 +# output "XMI Redmi 27 NU 3948622WH08F4" max_render_time 3 +# output "XMI Redmi 27 NU 3948622WH08F4" render_bit_depth 10 # laptop screen output 'Thermotrex Corporation TL160ADMP03-0 Unknown' subpixel rgb diff --git a/.config/sway/conf.d/display b/.config/sway/conf.d/display deleted file mode 100644 index 1515b24..0000000 --- a/.config/sway/conf.d/display +++ /dev/null @@ -1,13 +0,0 @@ -# vim: filetype=swayconfig - -# laptop output mode -set $laptop eDP-1 -bindswitch --reload --locked lid:on output $laptop disable -bindswitch --reload --locked lid:off output $laptop enable - -# bar -# bar swaybar_command waybar - -#workspace_auto_back_and_forth yes -force_display_urgency_hint 500 ms -smart_borders no_gaps diff --git a/.config/sway/conf.d/exec b/.config/sway/conf.d/exec index feb413a..1de360e 100644 --- a/.config/sway/conf.d/exec +++ b/.config/sway/conf.d/exec @@ -6,5 +6,3 @@ exec mkfifo /tmp/kitty exec wlsunset -s 19:00 -S 07:00 -d 1800 exec xbacklight -set 70 exec playerctld daemon - -include /usr/local/etc/sway/config.d/* diff --git a/.config/sway/conf.d/theme b/.config/sway/conf.d/theme index 4f3b303..c020c1f 100644 --- a/.config/sway/conf.d/theme +++ b/.config/sway/conf.d/theme @@ -1,3 +1,15 @@ # vim: filetype=swayconfig include ~/.config/sway/conf.d/themes/dark + +# laptop output mode +set $laptop eDP-1 +bindswitch --reload --locked lid:on output $laptop disable +bindswitch --reload --locked lid:off output $laptop enable + +# bar +# bar swaybar_command waybar + +#workspace_auto_back_and_forth yes +force_display_urgency_hint 500 ms +smart_borders no_gaps