home/kanshi: fix monitor positions -- needed for wine bug

This commit is contained in:
Asmir A 2025-05-11 18:33:49 +02:00
parent e0af8b8607
commit a50ae21c82
Signed by: asmir
GPG Key ID: 020C42B7A9ABA3E2

View File

@ -86,6 +86,8 @@ in
hwdec = "auto"; hwdec = "auto";
vo = "gpu-next"; vo = "gpu-next";
ao = "pipewire"; ao = "pipewire";
osd-bar = "no";
border = "no";
script-opts-set = "ytdl_hook-ytdl_path=yt-dlp,sponsorblock-local_database=no,sponsorblock-skip_categories=[sponsor,intro,selfpromo]"; script-opts-set = "ytdl_hook-ytdl_path=yt-dlp,sponsorblock-local_database=no,sponsorblock-skip_categories=[sponsor,intro,selfpromo]";
ytdl-format = "bestvideo[height<=?1080]+bestaudio/best"; ytdl-format = "bestvideo[height<=?1080]+bestaudio/best";
}; };
@ -257,9 +259,11 @@ in
${pkgs.coreutils}/bin/shred "$TMP_FILE" ${pkgs.coreutils}/bin/shred "$TMP_FILE"
${pkgs.coreutils}/bin/rm "$TMP_FILE" ${pkgs.coreutils}/bin/rm "$TMP_FILE"
''; '';
/*
refresh_i3status = pkgs.writeShellScriptBin "refresh_i3status" '' refresh_i3status = pkgs.writeShellScriptBin "refresh_i3status" ''
${pkgs.coreutils}/bin/sleep 1 && ${pkgs.procps}/bin/pkill -USR1 i3status-rs ${pkgs.coreutils}/bin/sleep 1 && ${pkgs.procps}/bin/pkill -USR1 i3status-rs
''; '';
*/
in in
{ {
enable = true; enable = true;
@ -272,10 +276,12 @@ in
event = "lock"; event = "lock";
command = "${locker}/bin/swaylock_fancy"; command = "${locker}/bin/swaylock_fancy";
} }
/*
{ {
event = "after-resume"; event = "after-resume";
command = "${refresh_i3status}/bin/refresh_i3status"; command = "${refresh_i3status}/bin/refresh_i3status";
} }
*/
]; ];
timeouts = [ timeouts = [
{ {
@ -302,17 +308,17 @@ in
profile.outputs = [ profile.outputs = [
{ {
criteria = "eDP-1"; criteria = "eDP-1";
position = "3840,0"; position = "0,0";
} }
{ {
criteria = "Philips Consumer Electronics Company PHL 272S1 UHB2347026536"; criteria = "Philips Consumer Electronics Company PHL 272S1 UHB2347026536";
mode = "1920x1080@74.973Hz"; mode = "1920x1080@74.973Hz";
position = "5760,0"; position = "1920,0";
} }
{ {
criteria = "Philips Consumer Electronics Company PHL 272S1 UHB2347026535"; criteria = "Philips Consumer Electronics Company PHL 272S1 UHB2347026535";
mode = "1920x1080@74.973Hz"; mode = "1920x1080@74.973Hz";
position = "7680,0"; position = "3840,0";
} }
]; ];
} }