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 alacritty
exa exa
fd fd
sd
ripgrep ripgrep
yt-dlp yt-dlp
ffmpeg ffmpeg
imagemagick imagemagick
mpv mpv
xfce.thunar xfce.thunar
# chat
tdesktop
discord
# Theming
liberation_ttf liberation_ttf
hack-font hack-font
font-awesome_5 font-awesome_5
@ -96,6 +103,12 @@ in {
(nerdfonts.override { fonts = [ "FiraCode" "Hack" ]; }) (nerdfonts.override { fonts = [ "FiraCode" "Hack" ]; })
orchis_theme_compact orchis_theme_compact
papirus_red papirus_red
# Programming
vscode
cargo
rust-analyzer
gcc
]; ];
programs.fish.enable = true; programs.fish.enable = true;
programs.helix = { programs.helix = {
@ -485,6 +498,7 @@ in {
}; };
in { in {
"${mod}+Return" = "exec ${terminal}"; "${mod}+Return" = "exec ${terminal}";
"${mod}+Ctrl+Return" = "exec thunar";
"${mod}+x" = "kill"; "${mod}+x" = "kill";
"${mod}+s" = "exec ${menu}"; "${mod}+s" = "exec ${menu}";
"${mod}+b" = "splith"; "${mod}+b" = "splith";
@ -568,5 +582,46 @@ in {
style.package = pkgs.libsForQt5.qtstyleplugins; style.package = pkgs.libsForQt5.qtstyleplugins;
style.name = "gtk2"; style.name = "gtk2";
}; };
programs.mangohud.enable = true; 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" ]; };
};
};
} }