confix/home-manager/dots/waybar.nix

79 lines
1.7 KiB
Nix
Raw Normal View History

2024-01-15 22:30:48 -05:00
{ pkgs, config, ... }:
{
2024-01-16 22:43:56 -05:00
xdg.configFile = {
"waybar/config" = {
enable = true;
executable = false;
text = ''
2024-02-07 23:32:44 -05:00
[{
2024-01-16 22:43:56 -05:00
"exclusive": false,
2024-02-07 23:32:44 -05:00
"position": "top",
"height": 20,
2024-01-16 22:43:56 -05:00
"fixed-center": false,
2024-02-07 23:32:44 -05:00
"modules-left": [
"user"
],
2024-01-16 22:43:56 -05:00
"modules-right": [
"clock"
],
"user": {
2024-02-07 23:32:44 -05:00
"format": "{work_d}:{work_H}:{work_M}:{work_S}",
"interval": 1
2024-01-16 22:43:56 -05:00
},
"clock": {
"format": "{:%H:%M:%S}",
"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
"format-alt": "{:%Y-%m-%d}",
"interval": 1
2024-02-07 23:32:44 -05:00
}
},
{
"exclusive": false,
"position": "bottom",
"height": 20,
2024-02-07 23:32:44 -05:00
"fixed-center": false,
"modules-left": [
"river/mode"
],
"modules-right": [
"tray"
],
"tray": {
"icon-size": 16,
2024-02-07 23:32:44 -05:00
"spacing": 4,
"show-passive-items": true,
"reverse-direction": true
2024-01-16 22:43:56 -05:00
}
2024-02-07 23:32:44 -05:00
}]
'';
};
"waybar/style.css" = {
enable = true;
executable = false;
text = ''
* {
background: transparent;
color: #F2F2F8;
font-size: 16px;
2024-02-07 23:32:44 -05:00
}
#user {
background: #282A36;
padding: 0 8 0 8;
}
#clock {
background: #282A36;
padding: 0 8 0 8;
}
#mode {
background: #282A36;
padding: 0 8 0 8;
}
#tray {
background: #282A36;
padding: 0 4 0 8;
2024-01-16 22:43:56 -05:00
}
'';
};
2024-01-15 22:30:48 -05:00
};
}