mirror of
https://github.com/Swarsel/.dotfiles.git
synced 2025-12-06 09:07:21 +01:00
fix: make syncthingtray wait for tray
This commit is contained in:
parent
220451e8ac
commit
7b22970507
8 changed files with 62 additions and 49 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -1,3 +1,4 @@
|
||||||
secrets/keys/pubring.kbx
|
secrets/keys/pubring.kbx
|
||||||
secrets/keys/private-keys-v1.d/
|
secrets/keys/private-keys-v1.d/
|
||||||
result
|
result
|
||||||
|
*.~undo-tree~
|
||||||
|
|
|
||||||
|
|
@ -5527,6 +5527,7 @@ Mostly used to install some compilers and lsp's that I want to have available wh
|
||||||
# pinentry
|
# pinentry
|
||||||
dbus
|
dbus
|
||||||
swaylock-effects
|
swaylock-effects
|
||||||
|
syncthingtray-minimal
|
||||||
|
|
||||||
# secure boot
|
# secure boot
|
||||||
sbctl
|
sbctl
|
||||||
|
|
@ -5666,22 +5667,22 @@ Do not touch this.
|
||||||
folders = {
|
folders = {
|
||||||
"Default Folder" = {
|
"Default Folder" = {
|
||||||
path = "/home/swarsel/Sync";
|
path = "/home/swarsel/Sync";
|
||||||
devices = [ "sync (@oracle) magicant" ];
|
devices = [ "sync (@oracle)" "magicant" ];
|
||||||
id = "default";
|
id = "default";
|
||||||
};
|
};
|
||||||
"Obsidian" = {
|
"Obsidian" = {
|
||||||
path = "/home/swarsel/Nextcloud/Obsidian";
|
path = "/home/swarsel/Nextcloud/Obsidian";
|
||||||
devices = [ "sync (@oracle) magicant" ];
|
devices = [ "sync (@oracle)" "magicant" ];
|
||||||
id = "yjvni-9eaa7";
|
id = "yjvni-9eaa7";
|
||||||
};
|
};
|
||||||
"Org" = {
|
"Org" = {
|
||||||
path = "/home/swarsel/Nextcloud/Org";
|
path = "/home/swarsel/Nextcloud/Org";
|
||||||
devices = [ "sync (@oracle) magicant" ];
|
devices = [ "sync (@oracle)" "magicant" ];
|
||||||
id = "a7xnl-zjj3d";
|
id = "a7xnl-zjj3d";
|
||||||
};
|
};
|
||||||
"Vpn" = {
|
"Vpn" = {
|
||||||
path = "/home/swarsel/Vpn";
|
path = "/home/swarsel/Vpn";
|
||||||
devices = [ "sync (@oracle) magicant" ];
|
devices = [ "sync (@oracle)" "magicant" ];
|
||||||
id = "hgp9s-fyq3p";
|
id = "hgp9s-fyq3p";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
@ -6603,7 +6604,6 @@ This holds packages that I can use as provided, or with small modifications (as
|
||||||
# gnome.gnome-clocks
|
# gnome.gnome-clocks
|
||||||
# wlogout
|
# wlogout
|
||||||
# jdiskreport
|
# jdiskreport
|
||||||
syncthingtray
|
|
||||||
# monitor
|
# monitor
|
||||||
|
|
||||||
#keychain
|
#keychain
|
||||||
|
|
@ -6880,45 +6880,45 @@ Some programs lack a dmenu launcher - I define them myself here.
|
||||||
TODO: Non-NixOS machines (=sp3) should not use these by default, but instead the programs prefixed with "nixGL". I need to figure out how to automate this process, as it is not feasible to write desktop entries for all programs installed on that machine.
|
TODO: Non-NixOS machines (=sp3) should not use these by default, but instead the programs prefixed with "nixGL". I need to figure out how to automate this process, as it is not feasible to write desktop entries for all programs installed on that machine.
|
||||||
|
|
||||||
#+begin_src nix :tangle profiles/common/home/desktop.nix
|
#+begin_src nix :tangle profiles/common/home/desktop.nix
|
||||||
_:
|
_:
|
||||||
{
|
{
|
||||||
xdg.desktopEntries = {
|
xdg.desktopEntries = {
|
||||||
|
|
||||||
|
cura = {
|
||||||
|
name = "Ultimaker Cura";
|
||||||
|
genericName = "Cura";
|
||||||
|
exec = "cura";
|
||||||
|
terminal = false;
|
||||||
|
categories = [ "Application" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
anki = {
|
||||||
|
name = "Anki Flashcards";
|
||||||
|
genericName = "Anki";
|
||||||
|
exec = "anki";
|
||||||
|
terminal = false;
|
||||||
|
categories = [ "Application" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
element = {
|
||||||
|
name = "Element Matrix Client";
|
||||||
|
genericName = "Element";
|
||||||
|
exec = "element-desktop -enable-features=UseOzonePlatform -ozone-platform=wayland --disable-gpu-driver-bug-workarounds";
|
||||||
|
terminal = false;
|
||||||
|
categories = [ "Application" ];
|
||||||
|
};
|
||||||
|
|
||||||
|
emacsclient-newframe = {
|
||||||
|
name = "Emacs (Client, New Frame)";
|
||||||
|
genericName = "Emacs (Client, New Frame)";
|
||||||
|
exec = "emacsclient -r %u";
|
||||||
|
icon = "emacs";
|
||||||
|
terminal = false;
|
||||||
|
categories = [ "Development" "TextEditor" ];
|
||||||
|
};
|
||||||
|
|
||||||
cura = {
|
|
||||||
name = "Ultimaker Cura";
|
|
||||||
genericName = "Cura";
|
|
||||||
exec = "cura";
|
|
||||||
terminal = false;
|
|
||||||
categories = [ "Application" ];
|
|
||||||
};
|
};
|
||||||
|
}
|
||||||
anki = {
|
|
||||||
name = "Anki Flashcards";
|
|
||||||
genericName = "Anki";
|
|
||||||
exec = "anki";
|
|
||||||
terminal = false;
|
|
||||||
categories = [ "Application" ];
|
|
||||||
};
|
|
||||||
|
|
||||||
element = {
|
|
||||||
name = "Element Matrix Client";
|
|
||||||
genericName = "Element";
|
|
||||||
exec = "element-desktop -enable-features=UseOzonePlatform -ozone-platform=wayland --disable-gpu-driver-bug-workarounds";
|
|
||||||
terminal = false;
|
|
||||||
categories = [ "Application" ];
|
|
||||||
};
|
|
||||||
|
|
||||||
emacsclient-newframe = {
|
|
||||||
name = "Emacs (Client, New Frame)";
|
|
||||||
genericName = "Emacs (Client, New Frame)";
|
|
||||||
exec = "emacsclient -r %u";
|
|
||||||
icon = "emacs";
|
|
||||||
terminal = false;
|
|
||||||
categories = [ "Development" "TextEditor" ];
|
|
||||||
};
|
|
||||||
|
|
||||||
};
|
|
||||||
}
|
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
**** Linking dotfiles
|
**** Linking dotfiles
|
||||||
|
|
@ -6951,6 +6951,10 @@ As for the `home.sessionVariables`, it should be noted that environment variable
|
||||||
source = ../../../programs/git/.gitmessage;
|
source = ../../../programs/git/.gitmessage;
|
||||||
target = ".gitmessage";
|
target = ".gitmessage";
|
||||||
};
|
};
|
||||||
|
"swayidle/config" = {
|
||||||
|
source = ../../../programs/swayidle/config;
|
||||||
|
target = ".config/swayidle/config";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
@ -8342,7 +8346,7 @@ Currently, I am too lazy to explain every option here, but most of it is very se
|
||||||
}
|
}
|
||||||
|
|
||||||
exec systemctl --user import-environment
|
exec systemctl --user import-environment
|
||||||
|
exec swayidle -w
|
||||||
|
|
||||||
|
|
||||||
${swayfxSettings}
|
${swayfxSettings}
|
||||||
|
|
|
||||||
|
|
@ -120,7 +120,6 @@
|
||||||
# gnome.gnome-clocks
|
# gnome.gnome-clocks
|
||||||
# wlogout
|
# wlogout
|
||||||
# jdiskreport
|
# jdiskreport
|
||||||
syncthingtray
|
|
||||||
# monitor
|
# monitor
|
||||||
|
|
||||||
#keychain
|
#keychain
|
||||||
|
|
|
||||||
|
|
@ -273,7 +273,7 @@ in
|
||||||
}
|
}
|
||||||
|
|
||||||
exec systemctl --user import-environment
|
exec systemctl --user import-environment
|
||||||
|
exec swayidle -w
|
||||||
|
|
||||||
|
|
||||||
${swayfxSettings}
|
${swayfxSettings}
|
||||||
|
|
|
||||||
|
|
@ -18,6 +18,10 @@ _:
|
||||||
source = ../../../programs/git/.gitmessage;
|
source = ../../../programs/git/.gitmessage;
|
||||||
target = ".gitmessage";
|
target = ".gitmessage";
|
||||||
};
|
};
|
||||||
|
"swayidle/config" = {
|
||||||
|
source = ../../../programs/swayidle/config;
|
||||||
|
target = ".config/swayidle/config";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
xdg.configFile = {
|
xdg.configFile = {
|
||||||
|
|
|
||||||
|
|
@ -21,6 +21,7 @@
|
||||||
# pinentry
|
# pinentry
|
||||||
dbus
|
dbus
|
||||||
swaylock-effects
|
swaylock-effects
|
||||||
|
syncthingtray-minimal
|
||||||
|
|
||||||
# secure boot
|
# secure boot
|
||||||
sbctl
|
sbctl
|
||||||
|
|
|
||||||
|
|
@ -21,22 +21,22 @@ _:
|
||||||
folders = {
|
folders = {
|
||||||
"Default Folder" = {
|
"Default Folder" = {
|
||||||
path = "/home/swarsel/Sync";
|
path = "/home/swarsel/Sync";
|
||||||
devices = [ "sync (@oracle) magicant" ];
|
devices = [ "sync (@oracle)" "magicant" ];
|
||||||
id = "default";
|
id = "default";
|
||||||
};
|
};
|
||||||
"Obsidian" = {
|
"Obsidian" = {
|
||||||
path = "/home/swarsel/Nextcloud/Obsidian";
|
path = "/home/swarsel/Nextcloud/Obsidian";
|
||||||
devices = [ "sync (@oracle) magicant" ];
|
devices = [ "sync (@oracle)" "magicant" ];
|
||||||
id = "yjvni-9eaa7";
|
id = "yjvni-9eaa7";
|
||||||
};
|
};
|
||||||
"Org" = {
|
"Org" = {
|
||||||
path = "/home/swarsel/Nextcloud/Org";
|
path = "/home/swarsel/Nextcloud/Org";
|
||||||
devices = [ "sync (@oracle) magicant" ];
|
devices = [ "sync (@oracle)" "magicant" ];
|
||||||
id = "a7xnl-zjj3d";
|
id = "a7xnl-zjj3d";
|
||||||
};
|
};
|
||||||
"Vpn" = {
|
"Vpn" = {
|
||||||
path = "/home/swarsel/Vpn";
|
path = "/home/swarsel/Vpn";
|
||||||
devices = [ "sync (@oracle) magicant" ];
|
devices = [ "sync (@oracle)" "magicant" ];
|
||||||
id = "hgp9s-fyq3p";
|
id = "hgp9s-fyq3p";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
4
programs/swayidle/config
Normal file
4
programs/swayidle/config
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
timeout 300 'swaylock -f --screenshots --clock --effect-blur 7x5 --effect-vignette 0.5:0.5 --fade-in 0.2 --daemonize '
|
||||||
|
timeout 600 'swaymsg "output * power off"'
|
||||||
|
after-resume 'swaymsg "output * power on"'
|
||||||
|
before-sleep 'swaylock -f --screenshots --clock --effect-blur 7x5 --effect-vignette 0.5:0.5 --fade-in 0.2 --daemonize -'
|
||||||
Loading…
Add table
Add a link
Reference in a new issue