mirror of
https://github.com/Swarsel/.dotfiles.git
synced 2026-04-14 21:29:12 +02:00
feat[client]: add shikane
This commit is contained in:
parent
694dd794f7
commit
91f4393800
34 changed files with 2182 additions and 1802 deletions
|
|
@ -23,7 +23,7 @@
|
|||
# laptop screen
|
||||
output = {
|
||||
criteria = config.swarselsystems.sharescreen;
|
||||
mode = config.swarselsystems.highResolution;
|
||||
mode = "${config.swarselsystems.highResolution}@165.000";
|
||||
scale = 1.0;
|
||||
};
|
||||
}
|
||||
|
|
@ -57,7 +57,7 @@
|
|||
name = "lidopen";
|
||||
exec = [
|
||||
"${pkgs.swaybg}/bin/swaybg --output '${config.swarselsystems.sharescreen}' --image ${config.swarselsystems.wallpaper} --mode ${config.stylix.imageScalingMode}"
|
||||
"${pkgs.swaybg}/bin/swaybg --output '${monitor}' --image ${self}/files/wallpaper/standwp.png --mode ${config.stylix.imageScalingMode}"
|
||||
"${pkgs.swaybg}/bin/swaybg --output '${monitor}' --image ${self}/files/wallpaper/landscape/standwp.png --mode ${config.stylix.imageScalingMode}"
|
||||
];
|
||||
outputs = [
|
||||
{
|
||||
|
|
@ -82,7 +82,7 @@
|
|||
in
|
||||
{
|
||||
name = "lidclosed";
|
||||
exec = [ "${pkgs.swaybg}/bin/swaybg --output '${monitor}' --image ${self}/files/wallpaper/standwp.png --mode ${config.stylix.imageScalingMode}" ];
|
||||
exec = [ "${pkgs.swaybg}/bin/swaybg --output '${monitor}' --image ${self}/files/wallpaper/landscape/standwp.png --mode ${config.stylix.imageScalingMode}" ];
|
||||
outputs = [
|
||||
{
|
||||
criteria = config.swarselsystems.sharescreen;
|
||||
|
|
|
|||
|
|
@ -101,7 +101,7 @@
|
|||
tridactyl-native
|
||||
|
||||
# mako related
|
||||
mako
|
||||
# mako
|
||||
libnotify
|
||||
|
||||
# general utilities
|
||||
|
|
|
|||
77
modules/home/common/shikane.nix
Normal file
77
modules/home/common/shikane.nix
Normal file
|
|
@ -0,0 +1,77 @@
|
|||
{ lib, config, confLib, ... }:
|
||||
{
|
||||
options.swarselmodules.shikane = lib.mkEnableOption "kanshi settings";
|
||||
config = lib.mkIf config.swarselmodules.shikane {
|
||||
|
||||
systemd.user.services.shikane = confLib.overrideTarget "noctalia-shell.target";
|
||||
services.shikane = {
|
||||
enable = true;
|
||||
settings =
|
||||
let
|
||||
homeMonitor = [
|
||||
"m=PHL BDM3270"
|
||||
"s=AU11806002320"
|
||||
"v=Philips Consumer Electronics Company"
|
||||
];
|
||||
exec = [ "notify-send shikane \"Profile $SHIKANE_PROFILE_NAME has been applied\"" ];
|
||||
in
|
||||
{
|
||||
profile = [
|
||||
|
||||
{
|
||||
name = "internal-on";
|
||||
inherit exec;
|
||||
output = [
|
||||
{
|
||||
match = config.swarselsystems.sharescreen;
|
||||
enable = true;
|
||||
mode = "${config.swarselsystems.highResolution}@165.000";
|
||||
scale = 1.0;
|
||||
}
|
||||
];
|
||||
}
|
||||
|
||||
{
|
||||
name = "home-internal-on";
|
||||
inherit exec;
|
||||
output = [
|
||||
{
|
||||
match = config.swarselsystems.sharescreen;
|
||||
enable = true;
|
||||
scale = 1.7;
|
||||
position = "2560,0";
|
||||
}
|
||||
{
|
||||
match = homeMonitor;
|
||||
enable = true;
|
||||
scale = 1.0;
|
||||
mode = "2560x1440";
|
||||
position = "0,0";
|
||||
}
|
||||
];
|
||||
}
|
||||
|
||||
{
|
||||
name = "home-internal-off";
|
||||
inherit exec;
|
||||
output = [
|
||||
{
|
||||
match = config.swarselsystems.sharescreen;
|
||||
enable = false;
|
||||
position = "2560,0";
|
||||
}
|
||||
{
|
||||
match = homeMonitor;
|
||||
scale = 1.0;
|
||||
enable = true;
|
||||
mode = "2560x1440";
|
||||
position = "0,0";
|
||||
}
|
||||
];
|
||||
}
|
||||
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -394,36 +394,36 @@ in
|
|||
swayfxSettings = config.swarselsystems.swayfxConfig;
|
||||
in
|
||||
"
|
||||
# exec_always autotiling
|
||||
# set $exit \"exit: [s]leep, [l]ock, [p]oweroff, [r]eboot, [u]ser logout\"
|
||||
# exec_always autotiling
|
||||
# set $exit \"exit: [s]leep, [l]ock, [p]oweroff, [r]eboot, [u]ser logout\"
|
||||
|
||||
# mode $exit {
|
||||
# bindsym --to-code {
|
||||
# s exec \"systemctl suspend\", mode \"default\"
|
||||
# h exec \"systemctl hibernate\", mode \"default\"
|
||||
# l exec \"swaylock --screenshots --clock --effect-blur 7x5 --effect-vignette 0.5:0.5 --fade-in 0.2 --daemonize\", mode \"default\
|
||||
# p exec \"systemctl poweroff\"
|
||||
# r exec \"systemctl reboot\"
|
||||
# u exec \"swaymsg exit\"
|
||||
# mode $exit {
|
||||
# bindsym --to-code {
|
||||
# s exec \"systemctl suspend\", mode \"default\"
|
||||
# h exec \"systemctl hibernate\", mode \"default\"
|
||||
# l exec \"swaylock --screenshots --clock --effect-blur 7x5 --effect-vignette 0.5:0.5 --fade-in 0.2 --daemonize\", mode \"default\
|
||||
# p exec \"systemctl poweroff\"
|
||||
# r exec \"systemctl reboot\"
|
||||
# u exec \"swaymsg exit\"
|
||||
|
||||
# Return mode \"default\"
|
||||
# Escape mode \"default\"
|
||||
# ${modifier}+Escape mode \"default\"
|
||||
# }
|
||||
# }
|
||||
# Return mode \"default\"
|
||||
# Escape mode \"default\"
|
||||
# ${modifier}+Escape mode \"default\"
|
||||
# }
|
||||
# }
|
||||
|
||||
exec systemctl --user import-environment
|
||||
# exec swayidle -w
|
||||
exec systemctl --user import-environment
|
||||
# exec swayidle -w
|
||||
|
||||
seat * hide_cursor 2000
|
||||
seat * hide_cursor 2000
|
||||
|
||||
exec_always kill -1 $(pidof kanshi)
|
||||
exec_always kill -1 $(pidof kanshi)
|
||||
|
||||
bindswitch --locked lid:on exec kanshictl switch lidclosed
|
||||
bindswitch --locked lid:off exec kanshictl switch lidopen
|
||||
bindswitch --locked lid:on exec kanshictl switch lidclosed
|
||||
bindswitch --locked lid:off exec kanshictl switch lidopen
|
||||
|
||||
${swayfxSettings}
|
||||
";
|
||||
${swayfxSettings}
|
||||
";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -22,12 +22,13 @@ in
|
|||
# { timeout = 300; command = "${swaylock} -f"; }
|
||||
{ timeout = 300; command = "${noctalia} lockScreen lock || ${swaylock} -f"; }
|
||||
# { timeout = 600; command = ''${pkgs.sway}/bin/swaymsg "output * dpms off"; resumeCommand = "${pkgs.sway}/bin/swaymsg output * dpms on''; }
|
||||
{ timeout = 600; command = "${noctalia} sessionMenu lockAndSuspend || ${suspend}"; }
|
||||
# { timeout = 600; command = "${noctalia} sessionMenu lockAndSuspend || ${suspend}"; }
|
||||
{ timeout = 600; command = "${suspend}"; }
|
||||
];
|
||||
events = {
|
||||
# { event = "before-sleep"; command = "${lib.getExe pkgs.swaylock-effects} -f --screenshots --clock --effect-blur 7x5 --effect-vignette 0.5:0.5 --fade-in 0.2"; }
|
||||
# { event = "before-sleep"; command = "${noctalia} lockScreen lock || ${lib.getExe pkgs.swaylock-effects} -f --screenshots --clock --effect-blur 7x5 --effect-vignette 0.5:0.5 --fade-in 0.2"; }
|
||||
# { event = "after-resume"; command = "${swaylock} -f "; }
|
||||
# before-sleep = "${swaylock} -f ";
|
||||
before-sleep = "${noctalia} lockScreen lock || ${swaylock} -f ";
|
||||
# lock = "${swaylock} -f ";
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue