waybar redo
This commit is contained in:
parent
0b21647b2b
commit
f5a8935507
14 changed files with 223 additions and 72 deletions
|
|
@ -17,16 +17,20 @@ in
|
|||
config = lib.mkIf config.modules.waybar.enabled.${name}.enable {
|
||||
programs.waybar = {
|
||||
settings.mainBar.${name} = {
|
||||
exec = ''${pkgs.playerctl}/bin/playerctl metadata --player=spotify -F -f "{{ status }}: {{ artist }} - {{ title }}"'';
|
||||
exec = ''${lib.meta.getExe pkgs.playerctl} metadata --player=spotify -F -f "{{ status }}: {{ artist }} - {{ title }}"'';
|
||||
format = "{}";
|
||||
on-click = "${pkgs.playerctl}/bin/playerctl --player=spotify play-pause";
|
||||
on-scroll-up = "${pkgs.playerctl}/bin/playerctl --player=spotify volume 0.01+";
|
||||
on-scroll-down = "${pkgs.playerctl}/bin/playerctl --player=spotify volume 0.01-";
|
||||
on-click = "${lib.meta.getExe pkgs.playerctl} --player=spotify play-pause";
|
||||
on-click-middle = lib.meta.getExe' pkgs.spotify "spotify";
|
||||
on-scroll-up = "${lib.meta.getExe pkgs.playerctl} --player=spotify volume 0.01+";
|
||||
on-scroll-down = "${lib.meta.getExe pkgs.playerctl} --player=spotify volume 0.01-";
|
||||
};
|
||||
style = ''
|
||||
#custom-spotify {
|
||||
color: #${config.colorScheme.palette.base14};
|
||||
margin-right: 10px;
|
||||
margin: 5px 0px;
|
||||
padding: 0 8px;
|
||||
background-color: #${config.colorScheme.palette.taskbarBackground};
|
||||
border-radius: 0 999px 999px 0;
|
||||
}
|
||||
'';
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue