mirror of
https://github.com/moons-14/dotfiles.git
synced 2026-10-06 08:28:11 +09:00
fix
This commit is contained in:
@@ -45,10 +45,18 @@ in
|
||||
programs.noctalia = {
|
||||
enable = true;
|
||||
settings = {
|
||||
theme.mode = "auto";
|
||||
theme = {
|
||||
mode = "auto";
|
||||
source = "wallpaper";
|
||||
templates = {
|
||||
enable_builtin_templates = false;
|
||||
enable_community_templates = false;
|
||||
};
|
||||
};
|
||||
desktop_widgets.enabled = false;
|
||||
bar = {
|
||||
margin_ends = 15;
|
||||
density = "default";
|
||||
position = "top";
|
||||
showCapsule = true;
|
||||
backgroundOpacity = 0.8;
|
||||
floating = true;
|
||||
@@ -124,20 +132,24 @@ in
|
||||
};
|
||||
dock = {
|
||||
enabled = true;
|
||||
displayMode = "auto_hide";
|
||||
backgroundOpacity = 0.8;
|
||||
floatingRatio = 1;
|
||||
position = "left";
|
||||
auto_hide = true;
|
||||
show_dots = true;
|
||||
background_opacity = 0.8;
|
||||
size = 1;
|
||||
onlySameOutput = true;
|
||||
reserve_space = false;
|
||||
monitors = [ "eDP-1" ];
|
||||
pinnedApps = [
|
||||
pinned = [
|
||||
"com.mitchellh.ghostty"
|
||||
"org.gnome.Nautilus"
|
||||
"google-chrome"
|
||||
"code"
|
||||
];
|
||||
colorizeIcons = false;
|
||||
};
|
||||
shell = {
|
||||
clipboard_enabled = false;
|
||||
};
|
||||
controlCenter = {
|
||||
position = "close_to_bar_button";
|
||||
shortcuts = {
|
||||
|
||||
@@ -40,6 +40,10 @@ in
|
||||
AddKeysToAgent = "no";
|
||||
};
|
||||
|
||||
"*.sfc.wide.ad.jp" = {
|
||||
identityFile = "~/.ssh/id_ed25519_sk_rk";
|
||||
identitiesOnly = true;
|
||||
};
|
||||
"*" = {
|
||||
AddKeysToAgent = "no";
|
||||
SetEnv = {
|
||||
|
||||
@@ -9,20 +9,20 @@ let
|
||||
cfg = config.my.applications.swayidle;
|
||||
|
||||
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;
|
||||
niri = lib.getExe pkgs.niri;
|
||||
rm = "${pkgs.coreutils}/bin/rm";
|
||||
|
||||
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 = ''
|
||||
for supply in /sys/class/power_supply/*; do
|
||||
if [ -f "$supply/type" ] \
|
||||
@@ -51,7 +51,8 @@ let
|
||||
|
||||
lockAndSuspend = pkgs.writeShellScript "swayidle-lock-and-suspend" ''
|
||||
${skipIfOnAC}
|
||||
${noctaliaCall "sessionMenu" "lockAndSuspend"}
|
||||
|
||||
${noctaliaMsg "session lock-and-suspend"}
|
||||
'';
|
||||
|
||||
afterResume = pkgs.writeShellScript "swayidle-after-resume" ''
|
||||
@@ -69,7 +70,10 @@ in
|
||||
{
|
||||
services.swayidle = {
|
||||
enable = true;
|
||||
systemdTargets = [ "graphical-session.target" ];
|
||||
|
||||
systemdTargets = [
|
||||
"graphical-session.target"
|
||||
];
|
||||
|
||||
timeouts = [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user