Waybar : Restyle a bit.

This commit is contained in:
Dmitry Voronin 2024-05-02 12:59:31 +03:00
parent 42c8679067
commit 3ba1edb4bc
Signed by: voronind
SSH key fingerprint: SHA256:3kBb4iV2ahufEBNq+vFbUe4QYfHt98DHQjN7QaptY9k
6 changed files with 11 additions and 22 deletions

View file

@ -2,5 +2,6 @@
fonts.packages = with pkgs; [
(pkgs.callPackage ./applefont {})
(nerdfonts.override { fonts = [ "Terminus" ]; })
font-awesome
];
}

View file

@ -6,11 +6,11 @@
"position": "top", // Waybar position (top|bottom|left|right)
"height": 30, // Waybar height (to be removed for auto height)
"spacing": 4, // Gaps between modules (4px)
"mode": "dock",
// "mode": "dock",
"exclusive": false,
"start_hidden": true,
"modules-left": [
"sway/workspaces",
"sway/mode",
"sway/scratchpad",
],
"modules-right": [

View file

@ -2,7 +2,7 @@
text = ''
* {
/* `otf-font-awesome` is required to be installed for icons */
font-family: "${style.font.serif.name}", FontAwesome, Roboto, Helvetica, Arial, sans-serif;
font-family: "${style.font.serif.name}", FontAwesome;
font-size: ${toString(style.font.size.desktop)}px;
}
'';

View file

@ -2,23 +2,10 @@
text = ''
#clock,
#battery,
#cpu,
#memory,
#disk,
#temperature,
#backlight,
#network,
#pulseaudio,
#wireplumber,
#custom-media,
#tray,
#mode,
#idle_inhibitor,
#scratchpad,
#mpd {
margin: 2px;
padding-left: 4px;
padding-right: 4px;
#language {
padding: 8px 12px;
}
#clock {

View file

@ -1,13 +1,14 @@
{ style, ... }: {
text = ''
#workspaces button {
padding: 0 5px;
padding: 0 4px;
color: #${style.color.fg.light};
border-top: 2px solid transparent;
background-color: transparent;
background-color: rgba(${style.color.bg-r},${style.color.bg-g},${style.color.bg-b},${toString(style.opacity.desktop)});
}
#workspaces button.focused {
background-color: rgba(${style.color.bg-r},${style.color.bg-g},${style.color.bg-b},${toString(style.opacity.desktop)});
border-top: 2px solid #${style.color.accent};
}
'';

View file

@ -37,7 +37,7 @@
seek = "C";
wait = "z";
exit = "Z";
launch = "Space";
launch = "r";
repeat = ".";
};
@ -104,7 +104,7 @@
sway = {
launch.terminal = "Escape";
mod = "Mod4";
bar = "r";
bar = "space";
notification = {
dismiss = "shift+N";
restore = "n";