blob: da02a419fc71c0c01d694c4e185694371c3c0af8 [file] [log] [blame]
Skyler Turnerdb486c92022-03-06 10:48:24 +00001{ ... }: {
Skyler Turner7b93a372022-03-06 23:29:07 +00002 programs.waybar = {
3 enable = true;
Skyler Turner730f6422022-03-07 22:33:35 +00004 settings = [
5 {
6 modules-left = ["sway/mode" "sway/workspaces"];
Skyler Turnera8cc07a2022-03-07 22:09:09 +00007
Skyler Turner730f6422022-03-07 22:33:35 +00008 modules-center = ["sway/window"];
Skyler Turnera8cc07a2022-03-07 22:09:09 +00009
Skyler Turner730f6422022-03-07 22:33:35 +000010 modules-right = ["battery" "clock"];
11 battery.bat = "BAT0";
12 }
13 ];
Skyler Turner0ac86a22022-03-07 20:58:14 +000014 style = ''
15 window#waybar {
Skyler Turnerc61c9302022-03-07 21:21:03 +000016 background: rgba(0, 0, 0, 0);
Skyler Turnereedfa632022-03-07 21:26:05 +000017 }
18
Skyler Turner3cc09652022-03-07 21:45:32 +000019 window#waybar * * * * {
Skyler Turner500e68c2022-03-07 21:55:00 +000020 background: alpha(@theme_base_color, 0.6);
Skyler Turnereedfa632022-03-07 21:26:05 +000021 color: @theme_text_color;
Skyler Turnerfd265092022-03-07 21:31:38 +000022 padding-left: 10px;
23 padding-right: 10px;
Skyler Turner58712ec2022-03-07 21:30:52 +000024 border-radius: 5px;
Skyler Turner80724b22022-03-07 21:44:04 +000025 margin: 10px 0;
Skyler Turnere77c6422022-03-07 21:43:01 +000026 }
27
Skyler Turner3cc09652022-03-07 21:45:32 +000028 window#waybar * * *:first-child * {
Skyler Turnere77c6422022-03-07 21:43:01 +000029 margin-left: 10px;
30 }
31
Skyler Turner3cc09652022-03-07 21:45:32 +000032 window#waybar * * *:last-child * {
Skyler Turnere77c6422022-03-07 21:43:01 +000033 margin-right: 10px;
Skyler Turner0ac86a22022-03-07 20:58:14 +000034 }
Skyler Turner6cfeaa22022-03-07 21:35:22 +000035
Skyler Turner3cc09652022-03-07 21:45:32 +000036 window#waybar * * * * * {
Skyler Turner6cfeaa22022-03-07 21:35:22 +000037 margin: 0;
Skyler Turnerb6746eb2022-03-07 21:53:50 +000038 background: rgba(0, 0, 0, 0);
Skyler Turner6cfeaa22022-03-07 21:35:22 +000039 }
Skyler Turner0ac86a22022-03-07 20:58:14 +000040 '';
Skyler Turner7b93a372022-03-06 23:29:07 +000041
42 systemd = {
43 enable = true;
Skyler Turner99c87b02022-03-06 23:30:23 +000044 # target = "sway-session.target";
Skyler Turner7b93a372022-03-06 23:29:07 +000045 };
46 };
Skyler Turner650440c2022-03-07 00:20:56 +000047
Skyler Turner741201f2022-03-07 00:30:50 +000048 systemd.user.targets.sway.Unit.Wants = [ "waybar.service" ];
Skyler Turnerdb486c92022-03-06 10:48:24 +000049}