autostart some programs

This commit is contained in:
Leonardo Eugênio 2022-07-20 20:07:58 -03:00
parent 20ef97bddc
commit 64e13f5bc9

View file

@ -83,12 +83,19 @@ in {
alacritty
exa
fd
sd
ripgrep
yt-dlp
ffmpeg
imagemagick
mpv
xfce.thunar
# chat
tdesktop
discord
# Theming
liberation_ttf
hack-font
font-awesome_5
@ -96,6 +103,12 @@ in {
(nerdfonts.override { fonts = [ "FiraCode" "Hack" ]; })
orchis_theme_compact
papirus_red
# Programming
vscode
cargo
rust-analyzer
gcc
];
programs.fish.enable = true;
programs.helix = {
@ -485,6 +498,7 @@ in {
};
in {
"${mod}+Return" = "exec ${terminal}";
"${mod}+Ctrl+Return" = "exec thunar";
"${mod}+x" = "kill";
"${mod}+s" = "exec ${menu}";
"${mod}+b" = "splith";
@ -568,5 +582,46 @@ in {
style.package = pkgs.libsForQt5.qtstyleplugins;
style.name = "gtk2";
};
programs.mangohud.enable = true;
systemd.user.services = {
firefox = {
Unit = {
Description = "Firefox Web browser";
Documentation = "https://github.com/Alexays/Waybar/wiki";
PartOf = [ "graphical-session.target" ];
After = [ "graphical-session.target" ];
};
Service = {
ExecStart = "${pkgs.discord}/bin/discord";
Restart = "on-failure";
};
Install = { WantedBy = [ "sway-session.target" ]; };
};
discord = {
Unit = {
Description = "Discord Internet voice chat";
PartOf = [ "graphical-session.target" ];
After = [ "graphical-session.target" ];
};
Service = {
ExecStart = "${pkgs.discord}/bin/discord";
Restart = "on-failure";
};
Install = { WantedBy = [ "sway-session.target" ]; };
};
telegram = {
Unit = {
Description = "Telegram Internet chat";
PartOf = [ "graphical-session.target" ];
After = [ "graphical-session.target" ];
};
Service = {
ExecStart = "${pkgs.tdesktop}/bin/telegram-desktop";
Restart = "on-failure";
};
Install = { WantedBy = [ "sway-session.target" ]; };
};
};
}