mirror of
https://github.com/moons-14/dotfiles.git
synced 2026-10-06 07:08:12 +09:00
fix
This commit is contained in:
@@ -45,10 +45,18 @@ in
|
|||||||
programs.noctalia = {
|
programs.noctalia = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
theme.mode = "auto";
|
theme = {
|
||||||
|
mode = "auto";
|
||||||
|
source = "wallpaper";
|
||||||
|
templates = {
|
||||||
|
enable_builtin_templates = false;
|
||||||
|
enable_community_templates = false;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
desktop_widgets.enabled = false;
|
||||||
bar = {
|
bar = {
|
||||||
|
margin_ends = 15;
|
||||||
density = "default";
|
density = "default";
|
||||||
position = "top";
|
|
||||||
showCapsule = true;
|
showCapsule = true;
|
||||||
backgroundOpacity = 0.8;
|
backgroundOpacity = 0.8;
|
||||||
floating = true;
|
floating = true;
|
||||||
@@ -124,20 +132,24 @@ in
|
|||||||
};
|
};
|
||||||
dock = {
|
dock = {
|
||||||
enabled = true;
|
enabled = true;
|
||||||
displayMode = "auto_hide";
|
position = "left";
|
||||||
backgroundOpacity = 0.8;
|
auto_hide = true;
|
||||||
floatingRatio = 1;
|
show_dots = true;
|
||||||
|
background_opacity = 0.8;
|
||||||
size = 1;
|
size = 1;
|
||||||
onlySameOutput = true;
|
onlySameOutput = true;
|
||||||
|
reserve_space = false;
|
||||||
monitors = [ "eDP-1" ];
|
monitors = [ "eDP-1" ];
|
||||||
pinnedApps = [
|
pinned = [
|
||||||
"com.mitchellh.ghostty"
|
"com.mitchellh.ghostty"
|
||||||
"org.gnome.Nautilus"
|
|
||||||
"google-chrome"
|
"google-chrome"
|
||||||
"code"
|
"code"
|
||||||
];
|
];
|
||||||
colorizeIcons = false;
|
colorizeIcons = false;
|
||||||
};
|
};
|
||||||
|
shell = {
|
||||||
|
clipboard_enabled = false;
|
||||||
|
};
|
||||||
controlCenter = {
|
controlCenter = {
|
||||||
position = "close_to_bar_button";
|
position = "close_to_bar_button";
|
||||||
shortcuts = {
|
shortcuts = {
|
||||||
|
|||||||
@@ -40,6 +40,10 @@ in
|
|||||||
AddKeysToAgent = "no";
|
AddKeysToAgent = "no";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
"*.sfc.wide.ad.jp" = {
|
||||||
|
identityFile = "~/.ssh/id_ed25519_sk_rk";
|
||||||
|
identitiesOnly = true;
|
||||||
|
};
|
||||||
"*" = {
|
"*" = {
|
||||||
AddKeysToAgent = "no";
|
AddKeysToAgent = "no";
|
||||||
SetEnv = {
|
SetEnv = {
|
||||||
|
|||||||
@@ -9,20 +9,20 @@ let
|
|||||||
cfg = config.my.applications.swayidle;
|
cfg = config.my.applications.swayidle;
|
||||||
|
|
||||||
noctaliaPkg = inputs.noctalia.packages.${pkgs.stdenv.hostPlatform.system}.default;
|
noctaliaPkg = inputs.noctalia.packages.${pkgs.stdenv.hostPlatform.system}.default;
|
||||||
noctalia = lib.getExe noctaliaPkg;
|
|
||||||
|
|
||||||
bash = lib.getExe pkgs.bash;
|
noctalia = lib.getExe noctaliaPkg;
|
||||||
brightnessctl = lib.getExe pkgs.brightnessctl;
|
brightnessctl = lib.getExe pkgs.brightnessctl;
|
||||||
niri = lib.getExe pkgs.niri;
|
niri = lib.getExe pkgs.niri;
|
||||||
rm = "${pkgs.coreutils}/bin/rm";
|
rm = "${pkgs.coreutils}/bin/rm";
|
||||||
|
|
||||||
brightnessState = "$XDG_RUNTIME_DIR/swayidle-brightness";
|
brightnessState = "$XDG_RUNTIME_DIR/swayidle-brightness";
|
||||||
|
|
||||||
noctaliaCall = target: action: "${bash} -lc '${noctalia} ipc call ${target} ${action}'";
|
noctaliaMsg = command: "${noctalia} msg ${command}";
|
||||||
|
|
||||||
lockCmd = noctaliaCall "lockScreen" "lock";
|
lockCmd = noctaliaMsg "session lock";
|
||||||
|
|
||||||
# AC 接続中は何もしない。つまり battery-only の処理にする。
|
# AC 接続中は何もしない。
|
||||||
|
# つまり、以下のアイドル処理をバッテリー駆動時のみにする。
|
||||||
skipIfOnAC = ''
|
skipIfOnAC = ''
|
||||||
for supply in /sys/class/power_supply/*; do
|
for supply in /sys/class/power_supply/*; do
|
||||||
if [ -f "$supply/type" ] \
|
if [ -f "$supply/type" ] \
|
||||||
@@ -51,7 +51,8 @@ let
|
|||||||
|
|
||||||
lockAndSuspend = pkgs.writeShellScript "swayidle-lock-and-suspend" ''
|
lockAndSuspend = pkgs.writeShellScript "swayidle-lock-and-suspend" ''
|
||||||
${skipIfOnAC}
|
${skipIfOnAC}
|
||||||
${noctaliaCall "sessionMenu" "lockAndSuspend"}
|
|
||||||
|
${noctaliaMsg "session lock-and-suspend"}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
afterResume = pkgs.writeShellScript "swayidle-after-resume" ''
|
afterResume = pkgs.writeShellScript "swayidle-after-resume" ''
|
||||||
@@ -69,7 +70,10 @@ in
|
|||||||
{
|
{
|
||||||
services.swayidle = {
|
services.swayidle = {
|
||||||
enable = true;
|
enable = true;
|
||||||
systemdTargets = [ "graphical-session.target" ];
|
|
||||||
|
systemdTargets = [
|
||||||
|
"graphical-session.target"
|
||||||
|
];
|
||||||
|
|
||||||
timeouts = [
|
timeouts = [
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user