swayWM, ditch hyprland

This commit is contained in:
Ryan 2024-01-05 18:34:36 +08:00
parent 19a0078a6a
commit fa14f7c34e
4 changed files with 16 additions and 10 deletions

View File

@ -1,6 +1,7 @@
# 75hz monitor
output 'Lectron Company Ltd LECOO M2412HL GG30A137' mode 2560x1440@74.968Hz
output 'Lectron Company Ltd LECOO M2412HL GG30A137' subpixel rgb
output 'Lectron Company Ltd LECOO M2412HL GG30A137' pos 0 500
# output 'Lectron Company Ltd LECOO M2412HL GG30A137' max_render_time 5
# output 'Lectron Company Ltd LECOO M2412HL GG30A137' render_bit_depth 10
@ -19,6 +20,9 @@ output 'Unknown HUAWEI INC 0x00000000' mode 3840x2160@60.000Hz
output 'Unknown HUAWEI INC 0x00000000' scale 2
# lab screen
# output "XMI Redmi 27 NU 3948622WH08F4" mode 1920x1080@60.000Hz
output "XMI Redmi 27 NU 3948622WH08F4" transform 90
# output "XMI Redmi 27 NU 3948622WH08F4" max_render_time 5
# output "XMI Redmi 27 NU 3948622WH08F4" subpixel rgb
output "XMI Redmi 27 NU 3948622WH08F4" max_render_time 3
output "XMI Redmi 27 NU 3948622WH08F4" subpixel rgb
output "XMI Redmi 27 NU 3948622WH08F4" scale 1.5
output "XMI Redmi 27 NU 3948622WH08F4" pos 2560 0

View File

@ -27,7 +27,11 @@ if test "$choice" = lock ; then
timeout $sleep_time 'swaymsg "output * power off"' resume 'swaymsg "output * power on"' \
&
idlepid=$!
swaylock -e -c 282828 --inside-color 00000003
# swaylock -e -c 282828 --inside-color 00000003
swaylock -S --effect-blur "12x12" --effect-greyscale --effect-vignette 0.5:0.5 --inside-color 28282860 \
-e --ring-color 00000000 --line-color 00000000 --indicator --clock --text-color ebdbb2
kill $idlepid
swaymsg "output * power on"
light -S $bright

View File

@ -1,11 +1,11 @@
{
"layer": "top",
"modules-left": [
"hyprland/workspaces"
"sway/workspaces"
],
"fixed-center": false,
"modules-center": [
"hyprland/window"
"sway/window"
],
"modules-right": [
"tray",
@ -17,16 +17,14 @@
"battery",
"clock"
],
"hyprland/workspaces": {
"on-scroll-up": "hyprctl dispatch workspace e-1",
"on-scroll-down": "hyprctl dispatch workspace e+1",
"sway/workspaces": {
"show_special": true,
"on-click": "activate",
"persistent_workspaces": {
"9": ["HDMI-A-1"]
}
},
"hyprland/window": {
"sway/window": {
"max-length": 50,
"separate-outputs": true
},

2
.zshrc
View File

@ -129,7 +129,7 @@ export MANROFFOPT="-c"
export BAT_THEME="base16"
#local path
export PATH="${PATH}:${HOME}/.local/bin:${HOME}/.scripts:${HOME}/cargo/bin:${HOME}/.cache/go/bin:${HOME}/.local/share/nvim/mason/bin}"
export PATH="${PATH}:${HOME}/.local/bin:${HOME}/.scripts:${HOME}/cargo/bin:${HOME}/.cache/go/bin:${HOME}/.local/share/nvim/mason/bin"
export MANPATH="${MANPATH}:${HOME}/.local/share/man"
#ccache support