Many things

This commit is contained in:
Andrea Ciceri 2022-11-02 22:51:05 +01:00
parent 3b11f01f84
commit 6b3c9e83f7
No known key found for this signature in database
GPG key ID: A1FC89532D1C5654
17 changed files with 139 additions and 28 deletions

View file

@ -1,3 +1,18 @@
{pkgs, ...}: {
home.packages = [pkgs.element-desktop];
systemd.user.services.element-desktop = {
Install.WantedBy = ["graphical-session.target"];
Unit = {
Description = "Element";
PartOf = ["graphical-session.target"];
};
Service = {
ExecStart = "${pkgs.element-desktop}/bin/element-desktop";
Restart = "on-failure";
RestartSec = 3;
};
};
}

View file

@ -0,0 +1,18 @@
{pkgs, ...}: {
home.packages = [pkgs.franz];
systemd.user.services.franz = {
Install.WantedBy = ["graphical-session.target"];
Unit = {
Description = "Franz";
PartOf = ["graphical-session.target"];
};
Service = {
ExecStart = "${pkgs.franz}/bin/franz";
Restart = "on-failure";
RestartSec = 3;
};
};
}

View file

@ -34,6 +34,7 @@
"-c"
];
content.pdfjs = true;
scrolling.smooth = true;
fonts = {
default_size = "11pt";
tabs = {

View file

@ -59,6 +59,13 @@
command = "${pkgs.waybar}/bin/waybar";
}
];
assigns = {
"1" = [{title = ".*Mozilla Firefox$";} {title = ".*qutebrowser$";}];
"2" = [{title = ".*Emacs$";}];
"3" = [{title = "Slack.*";}];
"8" = [{title = "^Franz$";}];
"9" = [{title = "^Element.*";}];
};
floating.criteria = [
{title = "MetaMask Notification.*";}
{title = "Volume Control";} # pavucontrol

View file

@ -1,7 +1,7 @@
* {
border: none;
font-family: "Fira Code, Symbols Nerd Font";
font-weight: bold;
font-weight: normal;
font-size: 9pt;
min-height: 0;
}
@ -14,7 +14,7 @@ window#waybar {
transition-duration: .5s;
}
window .modules-right * {
window .modules-right :not(image) { /* :not(image) excluded tray icon */
margin: 0 1rem;
}
@ -28,6 +28,10 @@ window#waybar.hidden {
color: #ffffff;
}
#workspaces button label {
font-size: 25px;
}
/* https://github.com/Alexays/Waybar/wiki/FAQ#the-workspace-buttons-have-a-strange-hover-effect */
#workspaces button:hover {
background: rgba(0, 0, 0, 0.2);

View file

@ -27,13 +27,26 @@
"sway/workspaces" = {
all-outputs = true;
disable-scroll-wraparound = true;
active-only = true;
format = "{icon}";
on-click = "activate";
format-icons = {
"1" = "";
"2" = "";
"3" = "";
"8" = "";
"9" = "";
urgent = "";
default = "";
};
sort-by-number = true;
};
"sway/mode" = {tooltip = false;};
"sway/window" = {max_length = 50;};
tray = {
spacing = "1px";
spacing = 10;
};
battery = {
format = "{capacity}% {icon}";

View file

@ -0,0 +1,3 @@
{
programs.zathura.enable = true;
}